Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2015-10-27 11:55:54 -0400
committerCamille Letavernier2015-10-27 11:55:54 -0400
commit0f349394250d34f1a147130ca5abaf348fc7ee72 (patch)
tree0e89757f28b3fd3339a0b074808c1a82a536363a /plugins
parentb06cef0b9417f03a4d5a389c314f432f2d9b9e34 (diff)
downloadorg.eclipse.papyrus-0f349394250d34f1a147130ca5abaf348fc7ee72.tar.gz
org.eclipse.papyrus-0f349394250d34f1a147130ca5abaf348fc7ee72.tar.xz
org.eclipse.papyrus-0f349394250d34f1a147130ca5abaf348fc7ee72.zip
Fix compile error introduced by previous revert commit
Change-Id: I74d1caad89bfee6217632bea39e6496155d96ed7 Signed-off-by: Camille Letavernier <camille.letavernier@cea.fr>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/CreateViewCommand.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/CreateViewCommand.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/CreateViewCommand.java
index cdd7a64ee2f..c2c060482d0 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/CreateViewCommand.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/CreateViewCommand.java
@@ -20,6 +20,7 @@ import org.eclipse.gmf.runtime.diagram.ui.commands.CreateCommand;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest.ViewDescriptor;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
/**
* A replacement for CreateCommand that avoids that takes into account the incorrect
@@ -44,7 +45,7 @@ public class CreateViewCommand extends CreateCommand {
// Try to adapt the descriptor ElementAdapter in EObject
EObject element = EMFHelper.getEObject(viewDescriptor.getElementAdapter());
- IElementType elementType = (IElementType) viewDescriptor.getElementAdapter().getAdapter(IElementType.class);
+ IElementType elementType = viewDescriptor.getElementAdapter().getAdapter(IElementType.class);
SemanticElementAdapter semanticAdapter = new SemanticElementAdapter(element, elementType);

Back to the top