]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.workbench/src/org/simantics/workbench/internal/contributions/e4/ActivatePartHandler.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.workbench / src / org / simantics / workbench / internal / contributions / e4 / ActivatePartHandler.java
index 975afe7cce71c2bf71fe1500131a718e273bf43a..d978eb7e9c7e77a8b8940f31f466250cccc2e16f 100644 (file)
@@ -1,31 +1,31 @@
-package org.simantics.workbench.internal.contributions.e4;\r
-\r
-import org.eclipse.e4.core.di.annotations.CanExecute;\r
-import org.eclipse.e4.core.di.annotations.Execute;\r
-import org.eclipse.e4.ui.model.application.MApplication;\r
-import org.eclipse.e4.ui.model.application.ui.basic.MPart;\r
-import org.eclipse.e4.ui.model.application.ui.basic.MPartStack;\r
-import org.eclipse.e4.ui.model.application.ui.basic.MStackElement;\r
-import org.eclipse.e4.ui.workbench.modeling.EModelService;\r
-import org.eclipse.e4.ui.workbench.modeling.EPartService;\r
-import org.simantics.ui.workbench.e4.E4WorkbenchUtils;\r
-\r
-public class ActivatePartHandler {\r
-\r
-    @CanExecute\r
-    public boolean canExecute(MApplication app, EModelService modelService) {\r
-        MPartStack partStack = E4WorkbenchUtils.getEditorPartStack(modelService, app);\r
-        if (partStack.getChildren().size() > 0)\r
-            return true;\r
-        return false;\r
-    }\r
-\r
-    @Execute\r
-    public void activatePart(MApplication app, EModelService modelService, EPartService partService) {\r
-        MPartStack partStack = E4WorkbenchUtils.getEditorPartStack(modelService, app);\r
-        MStackElement elem = partStack.getSelectedElement();\r
-        MPart part = (MPart) elem;\r
-        partService.activate(part);\r
-    }\r
-\r
-}\r
+package org.simantics.workbench.internal.contributions.e4;
+
+import org.eclipse.e4.core.di.annotations.CanExecute;
+import org.eclipse.e4.core.di.annotations.Execute;
+import org.eclipse.e4.ui.model.application.MApplication;
+import org.eclipse.e4.ui.model.application.ui.basic.MPart;
+import org.eclipse.e4.ui.model.application.ui.basic.MPartStack;
+import org.eclipse.e4.ui.model.application.ui.basic.MStackElement;
+import org.eclipse.e4.ui.workbench.modeling.EModelService;
+import org.eclipse.e4.ui.workbench.modeling.EPartService;
+import org.simantics.ui.workbench.e4.E4WorkbenchUtils;
+
+public class ActivatePartHandler {
+
+    @CanExecute
+    public boolean canExecute(MApplication app, EModelService modelService) {
+        MPartStack partStack = E4WorkbenchUtils.getEditorPartStack(modelService, app);
+        if (partStack.getChildren().size() > 0)
+            return true;
+        return false;
+    }
+
+    @Execute
+    public void activatePart(MApplication app, EModelService modelService, EPartService partService) {
+        MPartStack partStack = E4WorkbenchUtils.getEditorPartStack(modelService, app);
+        MStackElement elem = partStack.getSelectedElement();
+        MPart part = (MPart) elem;
+        partService.activate(part);
+    }
+
+}