X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.charts%2Fsrc%2Forg%2Fsimantics%2Fcharts%2Feditor%2FHideItemsAction.java;fp=bundles%2Forg.simantics.charts%2Fsrc%2Forg%2Fsimantics%2Fcharts%2Feditor%2FHideItemsAction.java;h=6e573282ffcd5a074cda241e02bef85763420e17;hp=f99fbb957d112e312e823ac515772d2d2859c5de;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.charts/src/org/simantics/charts/editor/HideItemsAction.java b/bundles/org.simantics.charts/src/org/simantics/charts/editor/HideItemsAction.java index f99fbb957..6e573282f 100644 --- a/bundles/org.simantics.charts/src/org/simantics/charts/editor/HideItemsAction.java +++ b/bundles/org.simantics.charts/src/org/simantics/charts/editor/HideItemsAction.java @@ -1,36 +1,36 @@ -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 chartItems; - - public HideItemsAction(String name, boolean hide, List 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)); - } - } - +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 chartItems; + + public HideItemsAction(String name, boolean hide, List 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