import org.simantics.browsing.ui.common.node.AbstractNode;\r
import org.simantics.browsing.ui.common.node.DeleteException;\r
import org.simantics.browsing.ui.common.node.IDeletableNode;\r
+import org.simantics.browsing.ui.common.node.IDoubleClickableNode;\r
import org.simantics.browsing.ui.common.node.IModifiableNode;\r
import org.simantics.browsing.ui.content.Labeler.Modifier;\r
import org.simantics.browsing.ui.graph.impl.LabelModifier;\r
import org.simantics.ui.SimanticsUI;\r
import org.simantics.utils.ui.ExceptionUtils;\r
\r
-public class ModelNode extends AbstractNode<Resource> implements IDeletableNode, IModifiableNode {\r
+public class ModelNode extends AbstractNode<Resource> implements IDoubleClickableNode, IDeletableNode, IModifiableNode {\r
\r
Listener<String> configurationNameSynchronizer;\r
private boolean disposed = false;\r
\r
}\r
\r
+ @Override\r
+ public boolean handleDoubleClick() {\r
+ return true;\r
+ }\r
+\r
}\r
package org.simantics.sysdyn.ui.browser.nodes;\r
\r
+import org.simantics.browsing.ui.common.node.IDoubleClickableNode;\r
import org.simantics.db.Resource;\r
\r
-public class ModuleNode extends ConfigurationNode<Resource> {\r
+public class ModuleNode extends ConfigurationNode<Resource> implements IDoubleClickableNode {\r
\r
public ModuleNode(Resource resource) {\r
super(resource);\r
}\r
+\r
+ @Override\r
+ public boolean handleDoubleClick() {\r
+ return true;\r
+ }\r
}\r
import org.simantics.browsing.ui.common.node.AbstractNode;\r
import org.simantics.browsing.ui.common.node.DeleteException;\r
import org.simantics.browsing.ui.common.node.IDeletableNode;\r
+import org.simantics.browsing.ui.common.node.IDoubleClickableNode;\r
import org.simantics.browsing.ui.common.node.IModifiableNode;\r
import org.simantics.browsing.ui.content.Labeler.Modifier;\r
import org.simantics.browsing.ui.graph.impl.LabelModifier;\r
import org.simantics.db.exception.CancelTransactionException;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.sysdyn.SysdynResource;\r
+import org.simantics.sysdyn.ui.handlers.ToggleResultActivation;\r
import org.simantics.ui.SimanticsUI;\r
import org.simantics.utils.ui.ExceptionUtils;\r
\r
-public class SimulationResultNode extends AbstractNode<Resource> implements IDeletableNode, IModifiableNode {\r
+public class SimulationResultNode extends AbstractNode<Resource> implements IDoubleClickableNode, IDeletableNode, IModifiableNode {\r
\r
public SimulationResultNode(Resource resource) {\r
super(resource);\r
parent.delete();\r
}\r
}\r
+\r
+\r
+ @Override\r
+ public boolean handleDoubleClick() {\r
+ Resource[] resources = {data};\r
+ ToggleResultActivation.toggleActivation(resources);\r
+ return true;\r
+ }\r
}\r
return null;\r
}\r
\r
- private void toggleActivation(final Resource[] resources) {\r
+ public static void toggleActivation(final Resource[] resources) {\r
try {\r
SimanticsUI.getSession().syncRequest(new WriteRequest() {\r
\r