Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureEditor.java')
-rw-r--r--plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureEditor.java98
1 files changed, 49 insertions, 49 deletions
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 8eddbc69e..9b6704ddb 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
@@ -1,49 +1,49 @@
-/*******************************************************************************
- * Copyright (c) 2010 protos software gmbh (http://www.protos.de).
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * CONTRIBUTORS:
- * Thomas Schuetz and Henrik Rentz-Reichert (initial contribution)
- *
- *******************************************************************************/
-
-package org.eclipse.etrice.ui.structure.editor;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.etrice.core.room.StructureClass;
-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.swt.graphics.Image;
-
-
-public class StructureEditor extends RoomDiagramEditor {
-
- public static final String STRUCTURE_EDITOR_ID = "org.eclipse.etrice.ui.structure.editor.StructureEditor";
-
- public StructureEditor() {
- super();
- }
-
- @Override
- public Image getDefaultImage() {
- return Activator.getImage("icons/Structure.gif");
- }
-
- /**
- * @return the actor class of this editor
- */
- public StructureClass getStructureClass() {
- Diagram diagram = getDiagramTypeProvider().getDiagram();
- EObject bo = Graphiti.getLinkService().getBusinessObjectForLinkedPictogramElement(diagram);
- if (bo instanceof StructureClass)
- return (StructureClass) bo;
-
- return null;
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2010 protos software gmbh (http://www.protos.de).
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * CONTRIBUTORS:
+ * Thomas Schuetz and Henrik Rentz-Reichert (initial contribution)
+ *
+ *******************************************************************************/
+
+package org.eclipse.etrice.ui.structure.editor;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.etrice.core.room.StructureClass;
+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.swt.graphics.Image;
+
+
+public class StructureEditor extends RoomDiagramEditor {
+
+ public static final String STRUCTURE_EDITOR_ID = "org.eclipse.etrice.ui.structure.editor.StructureEditor";
+
+ public StructureEditor() {
+ super();
+ }
+
+ @Override
+ public Image getDefaultImage() {
+ return Activator.getImage("icons/Structure.gif");
+ }
+
+ /**
+ * @return the actor class of this editor
+ */
+ public StructureClass getStructureClass() {
+ Diagram diagram = getDiagramTypeProvider().getDiagram();
+ EObject bo = Graphiti.getLinkService().getBusinessObjectForLinkedPictogramElement(diagram);
+ if (bo instanceof StructureClass)
+ return (StructureClass) bo;
+
+ return null;
+ }
+
+}

Back to the top