Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2012-07-16 09:57:06 -0400
committerHenrik Rentz-Reichert2012-07-16 09:57:06 -0400
commit82ce12062451bc2106172f4537e3ad3b1964ce7f (patch)
treea909d9829ba4ef3e6e0a6c4f38f0d9143232d1b2 /plugins/org.eclipse.etrice.ui.structure
parent26da83a0bf17a9a95b945153fa8a30b9d97fbc64 (diff)
downloadorg.eclipse.etrice-82ce12062451bc2106172f4537e3ad3b1964ce7f.tar.gz
org.eclipse.etrice-82ce12062451bc2106172f4537e3ad3b1964ce7f.tar.xz
org.eclipse.etrice-82ce12062451bc2106172f4537e3ad3b1964ce7f.zip
[*] migration to Juno part 1
- xtend2 imports - IEncoderProvider - many warnings removed
Diffstat (limited to 'plugins/org.eclipse.etrice.ui.structure')
-rw-r--r--plugins/org.eclipse.etrice.ui.structure/plugin.xml2
-rw-r--r--plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureEditor.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.etrice.ui.structure/plugin.xml b/plugins/org.eclipse.etrice.ui.structure/plugin.xml
index 18b39d6d0..04177e711 100644
--- a/plugins/org.eclipse.etrice.ui.structure/plugin.xml
+++ b/plugins/org.eclipse.etrice.ui.structure/plugin.xml
@@ -32,7 +32,7 @@
extensions="structure"
icon="icons/Structure.gif"
id="org.eclipse.etrice.ui.structure.editor.StructureEditor"
- matchingStrategy="org.eclipse.graphiti.ui.editor.DiagramEditorFactory$DiagramEditorMatchingStrategy"
+ matchingStrategy="org.eclipse.graphiti.ui.editor.DiagramEditorMatchingStrategy"
name="ROOM Structure Editor">
<contentTypeBinding
contentTypeId="org.eclipse.graphiti.content.diagram">
diff --git a/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureEditor.java b/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureEditor.java
index 9b3411909..da37854c3 100644
--- a/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureEditor.java
+++ b/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureEditor.java
@@ -18,7 +18,6 @@ import org.eclipse.etrice.ui.common.editor.RoomDiagramEditor;
import org.eclipse.etrice.ui.structure.Activator;
import org.eclipse.graphiti.mm.pictograms.Diagram;
import org.eclipse.graphiti.services.Graphiti;
-import org.eclipse.graphiti.ui.editor.DiagramEditorInput;
import org.eclipse.swt.graphics.Image;
@@ -39,7 +38,7 @@ public class StructureEditor extends RoomDiagramEditor {
* @return the actor class of this editor
*/
public StructureClass getStructureClass() {
- Diagram diagram = ((DiagramEditorInput)getEditorInput()).getDiagram();
+ Diagram diagram = getDiagramTypeProvider().getDiagram();
EObject bo = Graphiti.getLinkService().getBusinessObjectForLinkedPictogramElement(diagram);
if (bo instanceof StructureClass)
return (StructureClass) bo;

Back to the top