]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.charts/src/org/simantics/charts/editor/HideItemsAction.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.charts / src / org / simantics / charts / editor / HideItemsAction.java
index f99fbb957d112e312e823ac515772d2d2859c5de..6e573282ffcd5a074cda241e02bef85763420e17 100644 (file)
@@ -1,36 +1,36 @@
-package org.simantics.charts.editor;\r
-\r
-import java.util.List;\r
-\r
-import org.eclipse.core.runtime.IStatus;\r
-import org.eclipse.core.runtime.Status;\r
-import org.eclipse.jface.action.Action;\r
-import org.simantics.charts.Activator;\r
-import org.simantics.charts.query.HideChartItems;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class HideItemsAction extends Action {\r
-\r
-    private final boolean hide;\r
-    private final List<Resource> chartItems;\r
-\r
-    public HideItemsAction(String name, boolean hide, List<Resource> chartItems) {\r
-        super(name);\r
-        this.hide = hide;\r
-        this.chartItems = chartItems;\r
-    }\r
-\r
-    @Override\r
-    public void run() {\r
-        try {\r
-            HideChartItems.hideChartItems(hide, chartItems);\r
-        } catch (DatabaseException e) {\r
-            Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Failed to hide chart item.", e));\r
-        }\r
-    }\r
-\r
+package org.simantics.charts.editor;
+
+import java.util.List;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.action.Action;
+import org.simantics.charts.Activator;
+import org.simantics.charts.query.HideChartItems;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class HideItemsAction extends Action {
+
+    private final boolean hide;
+    private final List<Resource> chartItems;
+
+    public HideItemsAction(String name, boolean hide, List<Resource> chartItems) {
+        super(name);
+        this.hide = hide;
+        this.chartItems = chartItems;
+    }
+
+    @Override
+    public void run() {
+        try {
+            HideChartItems.hideChartItems(hide, chartItems);
+        } catch (DatabaseException e) {
+            Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Failed to hide chart item.", e));
+        }
+    }
+
 }
\ No newline at end of file