diff --git a/de.hftstuttgart.cityunits.feature/feature.xml b/de.hftstuttgart.cityunits.feature/feature.xml index c537e9d25b64d767591114cbb2e971933e385a4c..c666e393e7aaa70a27a8cca7a7ec943ea4703293 100644 --- a/de.hftstuttgart.cityunits.feature/feature.xml +++ b/de.hftstuttgart.cityunits.feature/feature.xml @@ -56,4 +56,11 @@ Certain units relevant to City simulations are also added. version="0.0.0" unpack="false"/> + <plugin + id="de.hftstuttgart.cityunits.model.edit" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + </feature> diff --git a/de.hftstuttgart.cityunits.model.edit/.classpath b/de.hftstuttgart.cityunits.model.edit/.classpath new file mode 100644 index 0000000000000000000000000000000000000000..2357e87572782def153db528d0f9a2a794b2b50d --- /dev/null +++ b/de.hftstuttgart.cityunits.model.edit/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-15"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/de.hftstuttgart.cityunits.model.edit/.project b/de.hftstuttgart.cityunits.model.edit/.project new file mode 100644 index 0000000000000000000000000000000000000000..7a219fb1232616d8b78f8ffc1eead872fcd2a0f1 --- /dev/null +++ b/de.hftstuttgart.cityunits.model.edit/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>de.hftstuttgart.cityunits.model.edit</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + </natures> +</projectDescription> diff --git a/de.hftstuttgart.cityunits.model.edit/META-INF/MANIFEST.MF b/de.hftstuttgart.cityunits.model.edit/META-INF/MANIFEST.MF new file mode 100644 index 0000000000000000000000000000000000000000..70a75b1ddce84a2f30ba0dd0db998386d4a38ab0 --- /dev/null +++ b/de.hftstuttgart.cityunits.model.edit/META-INF/MANIFEST.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: de.hftstuttgart.cityunits.model.edit;singleton:=true +Automatic-Module-Name: de.hftstuttgart.cityunits.model.edit +Bundle-Version: 1.0.0 +Bundle-ClassPath: . +Bundle-Activator: de.hftstuttgart.cityunits.model.quantities.provider.QuantitiesEditPlugin$Implementation +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Export-Package: de.hftstuttgart.cityunits.model.quantities.provider +Require-Bundle: org.eclipse.core.runtime, + de.hftstuttgart.cityunits.model;visibility:=reexport, + org.eclipse.emf.edit;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/de.hftstuttgart.cityunits.model.edit/build.properties b/de.hftstuttgart.cityunits.model.edit/build.properties new file mode 100644 index 0000000000000000000000000000000000000000..aa060dce6f6c6daa0d781bb9e93ed70aa3e8cd3c --- /dev/null +++ b/de.hftstuttgart.cityunits.model.edit/build.properties @@ -0,0 +1,9 @@ +# + +bin.includes = .,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src/ +output.. = bin/ diff --git a/de.hftstuttgart.cityunits.model.edit/plugin.properties b/de.hftstuttgart.cityunits.model.edit/plugin.properties new file mode 100644 index 0000000000000000000000000000000000000000..7181cbde3dbeeb4acb240d4220751a2ec801f2b2 --- /dev/null +++ b/de.hftstuttgart.cityunits.model.edit/plugin.properties @@ -0,0 +1,20 @@ +# + +pluginName = City Units Edit Support +providerName = HfT Stuttgart + +_UI_CreateChild_text = {0} +_UI_CreateChild_text2 = {1} {0} +_UI_CreateChild_text3 = {1} +_UI_CreateChild_tooltip = Create New {0} Under {1} Feature +_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. +_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. + +_UI_PropertyDescriptor_description = The {0} of the {1} + +_UI_Unknown_type = Object + +_UI_Unknown_datatype= Value + +_UI_Unknown_feature = Unspecified + diff --git a/de.hftstuttgart.cityunits.model.edit/plugin.xml b/de.hftstuttgart.cityunits.model.edit/plugin.xml new file mode 100644 index 0000000000000000000000000000000000000000..7ac51d150955177ceebcec9f6a8fc74f08eb3e92 --- /dev/null +++ b/de.hftstuttgart.cityunits.model.edit/plugin.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- +--> + +<plugin> + +</plugin> diff --git a/de.hftstuttgart.cityunits.model.edit/pom.xml b/de.hftstuttgart.cityunits.model.edit/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..40ae8f27e09d71bf85979d3fa843aadba80aa9ec --- /dev/null +++ b/de.hftstuttgart.cityunits.model.edit/pom.xml @@ -0,0 +1,18 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <artifactId>de.hftstuttgart.cityunits.model.edit</artifactId> + <packaging>eclipse-plugin</packaging> + + <version>1.0.0</version> + <name>City Units Edit</name> + <description>Project generated from ecore model.</description> + + <parent> + <groupId>de.hftstuttgart</groupId> + <artifactId>de.hftstuttgart.cityunits</artifactId> + <version>1.0.0</version> + </parent> + +</project> \ No newline at end of file diff --git a/de.hftstuttgart.cityunits.model.edit/src/de/hftstuttgart/cityunits/model/quantities/provider/QuantitiesEditPlugin.java b/de.hftstuttgart.cityunits.model.edit/src/de/hftstuttgart/cityunits/model/quantities/provider/QuantitiesEditPlugin.java new file mode 100644 index 0000000000000000000000000000000000000000..7fe892225c455c8e866bc94026b421b8e158294b --- /dev/null +++ b/de.hftstuttgart.cityunits.model.edit/src/de/hftstuttgart/cityunits/model/quantities/provider/QuantitiesEditPlugin.java @@ -0,0 +1,89 @@ +/** + */ +package de.hftstuttgart.cityunits.model.quantities.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +/** + * This is the central singleton for the Quantities edit plugin. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public final class QuantitiesEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final QuantitiesEditPlugin INSTANCE = new QuantitiesEditPlugin(); + + /** + * Keep track of the singleton. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public QuantitiesEditPlugin() { + super + (new ResourceLocator [] { + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse <b>Plugin</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/de.hftstuttgart.cityunits.model/model/Quantities.ecore b/de.hftstuttgart.cityunits.model/model/Quantities.ecore index 343c37f7b8a2ea7dc00fca96c7c7b557caf64fcd..9d54c0d0d983fbb762f83fe7a127930e7cb33c43 100644 --- a/de.hftstuttgart.cityunits.model/model/Quantities.ecore +++ b/de.hftstuttgart.cityunits.model/model/Quantities.ecore @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="quantities" nsURI="https://www.hftstuttgart.de/quantities" - nsPrefix="quant"> + xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="quantities" nsURI="https://www.hftstuttgart.de/quantities" nsPrefix="quant"> <eClassifiers xsi:type="ecore:EDataType" name="QuantityDouble" instanceClassName="de.hftstuttgart.cityunits.model.NullableQuantity"/> <eClassifiers xsi:type="ecore:EDataType" name="QuantityLong" instanceClassName="de.hftstuttgart.cityunits.model.NullableQuantity"/> </ecore:EPackage> diff --git a/de.hftstuttgart.cityunits.model/model/Quantities.genmodel b/de.hftstuttgart.cityunits.model/model/Quantities.genmodel index bb62e8fdeacbab3f8f450dc6eed578d43ae60f86..1b3b361822d09a4bd23433e31aa30855721d323e 100644 --- a/de.hftstuttgart.cityunits.model/model/Quantities.genmodel +++ b/de.hftstuttgart.cityunits.model/model/Quantities.genmodel @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" - modelDirectory="/de.hftstuttgart.cityunits.model/src" modelPluginID="de.hftstuttgart.cityunits.model" - modelName="Quantities" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" + modelDirectory="/de.hftstuttgart.cityunits.model/src" creationIcons="false" + modelPluginID="de.hftstuttgart.cityunits.model" modelName="Quantities" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" importerID="org.eclipse.emf.importer.ecore" complianceLevel="15.0" copyrightFields="false" operationReflection="true" importOrganizing="true"> <foreignModel>Quantities.ecore</foreignModel> diff --git a/pom.xml b/pom.xml index d0e04fb5981342a56bf052421e50c63379e8f7b5..601e4373596063c7614106c2ffb118e3600798ab 100644 --- a/pom.xml +++ b/pom.xml @@ -89,6 +89,7 @@ <module>de.hftstuttgart.cityunits.target</module> <module>de.hftstuttgart.cityunits.feature</module> <module>de.hftstuttgart.cityunits.model</module> + <module>de.hftstuttgart.cityunits.model.edit</module> <module>de.hftstuttgart.cityunits.ui.renderer</module> <module>de.hftstuttgart.cityunits.p2site</module> <module>de.hftstuttgart.cityunits.tests</module>