Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Brodt2014-06-26 13:21:58 -0400
committerBob Brodt2014-06-26 13:21:58 -0400
commit438788e73bc06a3bc52fe2e992b2f7c0aff0bc86 (patch)
tree8fd216b77387e8f95d42712bac92030a091bccee
parent80f0d9bffc84a12648311b2f8008d80a497240e6 (diff)
downloadorg.eclipse.bpmn2-modeler-438788e73bc06a3bc52fe2e992b2f7c0aff0bc86.tar.gz
org.eclipse.bpmn2-modeler-438788e73bc06a3bc52fe2e992b2f7c0aff0bc86.tar.xz
org.eclipse.bpmn2-modeler-438788e73bc06a3bc52fe2e992b2f7c0aff0bc86.zip
Fix a stupid mistake during Definitions construction.
-rw-r--r--plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/adapters/properties/DefinitionsPropertiesAdapter.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/adapters/properties/DefinitionsPropertiesAdapter.java b/plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/adapters/properties/DefinitionsPropertiesAdapter.java
index 5f1aa9a5..3414c947 100644
--- a/plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/adapters/properties/DefinitionsPropertiesAdapter.java
+++ b/plugins/org.eclipse.bpmn2.modeler.ui/src/org/eclipse/bpmn2/modeler/ui/adapters/properties/DefinitionsPropertiesAdapter.java
@@ -15,6 +15,7 @@ package org.eclipse.bpmn2.modeler.ui.adapters.properties;
import java.util.Hashtable;
+import org.eclipse.bpmn2.Bpmn2Factory;
import org.eclipse.bpmn2.Bpmn2Package;
import org.eclipse.bpmn2.Definitions;
import org.eclipse.bpmn2.ItemDefinition;
@@ -68,7 +69,7 @@ public class DefinitionsPropertiesAdapter extends ExtendedPropertiesAdapter<Defi
setObjectDescriptor(new ObjectDescriptor<Definitions>(this,object) {
@Override
public Definitions createObject(Resource resource, EClass eclass) {
- Definitions definitions = Bpmn2ModelerFactory.create(Definitions.class);
+ Definitions definitions = Bpmn2Factory.eINSTANCE.createDefinitions();
TargetRuntime rt = TargetRuntime.getCurrentRuntime();
definitions.setTypeLanguage(rt.getTypeLanguage());
definitions.setExpressionLanguage(rt.getExpressionLanguage());
@@ -96,17 +97,6 @@ public class DefinitionsPropertiesAdapter extends ExtendedPropertiesAdapter<Defi
return choices;
}
});
-
- setObjectDescriptor(new ObjectDescriptor<Definitions>(this,object) {
- @Override
- public Definitions createObject(Resource resource, EClass eclass) {
- Definitions definitions = Bpmn2ModelerFactory.create(Definitions.class);
- TargetRuntime rt = TargetRuntime.getCurrentRuntime();
- definitions.setTypeLanguage(rt.getTypeLanguage());
- definitions.setExpressionLanguage(rt.getExpressionLanguage());
- return definitions;
- }
- });
}
}

Back to the top