import org.simantics.db.layer0.SelectionHints;\r
import org.simantics.event.Activator;\r
import org.simantics.event.ontology.EventResource;\r
+import org.simantics.event.util.EventUtils;\r
import org.simantics.ui.contribution.DynamicMenuContribution;\r
import org.simantics.ui.workbench.action.PerformDefaultAction;\r
import org.simantics.utils.ui.ISelectionUtils;\r
}\r
\r
private IAction hideAction(List<Resource> input) {\r
- return tagAction("Hide", Activator.HIDE_ICON, EventResource.URIs.Hidden, true, input);\r
+ return contentChangingTagAction("Hide", Activator.HIDE_ICON, EventResource.URIs.Hidden, true, input);\r
}\r
\r
private IAction tagAction(String label, ImageDescriptor image, String tagURI, boolean tag, List<Resource> input) {\r
return new TagAction(label, image, VG_EXPERIMENTS, tagURI, tag, input);\r
}\r
\r
+ private IAction contentChangingTagAction(String label, ImageDescriptor image, String tagURI, boolean tag, List<Resource> input) {\r
+ return new ContentChangingTagAction(label, image, VG_EXPERIMENTS, tagURI, tag, input);\r
+ }\r
+\r
private IAction setBaseline(Resource eventLog, Resource event) {\r
return new SetBaseline(VG_EXPERIMENTS, eventLog, event);\r
}\r
return new PerformDefaultAction(title, null, input);\r
}\r
\r
+ private static class ContentChangingTagAction extends TagAction {\r
+ public ContentChangingTagAction(String label, ImageDescriptor image, String virtualGraphId, String tagURI, boolean tag, List<Resource> input) {\r
+ super(label, image, virtualGraphId, tagURI, tag, input);\r
+ }\r
+\r
+ @Override\r
+ public void postTagWrite(WriteGraph graph) throws DatabaseException {\r
+ EventUtils.bumpModificationCounter(graph, resources);\r
+ }\r
+ }\r
+\r
private static class ToClipboardAction extends Action {\r
private String text;\r
\r