Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2012-07-31 12:02:54 -0400
committerHenrik Rentz-Reichert2012-07-31 12:02:54 -0400
commit1d2f9401bdfff1fc6507fa4552745f37f6d0d3df (patch)
tree83426c890c0c7c202f22ebc118ea6c4d3dff06d0 /plugins/org.eclipse.etrice.ui.structure
parentb6fcee9bc8458368b2beb7579efb7ac53ee7284a (diff)
downloadorg.eclipse.etrice-1d2f9401bdfff1fc6507fa4552745f37f6d0d3df.tar.gz
org.eclipse.etrice-1d2f9401bdfff1fc6507fa4552745f37f6d0d3df.tar.xz
org.eclipse.etrice-1d2f9401bdfff1fc6507fa4552745f37f6d0d3df.zip
[core.room, ui.*] introduced RefinedTransition
and bug fix in auto update of transitions
Diffstat (limited to 'plugins/org.eclipse.etrice.ui.structure')
-rw-r--r--plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/DiagramAccess.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/DiagramAccess.java b/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/DiagramAccess.java
index 2861cad51..c1e230736 100644
--- a/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/DiagramAccess.java
+++ b/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/DiagramAccess.java
@@ -17,9 +17,13 @@ import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.etrice.ui.common.DiagramAccessBase;
import org.eclipse.etrice.ui.common.commands.UpdateCommand;
+import org.eclipse.etrice.ui.common.support.AutoUpdateFeature;
import org.eclipse.etrice.ui.structure.commands.PopulateDiagramCommand;
import org.eclipse.etrice.ui.structure.editor.StructureEditor;
+import org.eclipse.graphiti.dt.IDiagramTypeProvider;
+import org.eclipse.graphiti.features.IFeatureProvider;
import org.eclipse.graphiti.mm.pictograms.Diagram;
+import org.eclipse.graphiti.ui.services.GraphitiUi;
import org.eclipse.etrice.core.room.StructureClass;
@@ -50,7 +54,9 @@ public class DiagramAccess extends DiagramAccessBase {
*/
@Override
protected Command getUpdateCommand(Diagram diagram, TransactionalEditingDomain editingDomain) {
- UpdateCommand cmd = new UpdateCommand(diagram, editingDomain, DiagramTypeProvider.PROVIDER_ID);
+ IDiagramTypeProvider dtp = GraphitiUi.getExtensionManager().createDiagramTypeProvider(diagram, DiagramTypeProvider.PROVIDER_ID); //$NON-NLS-1$
+ IFeatureProvider featureProvider = dtp.getFeatureProvider();
+ UpdateCommand cmd = new UpdateCommand(diagram, editingDomain, new AutoUpdateFeature(featureProvider));
if (cmd.updateNeeded())
return cmd;

Back to the top