Author: kono
Date: 2011-01-31 12:06:39 -0800 (Mon, 31 Jan 2011)
New Revision: 23982

Modified:
   
core3/vizmap-gui-impl/branches/bypass/src/main/java/org/cytoscape/view/vizmap/gui/internal/bypass/BypassManager.java
Log:
Minor changes only.

Modified: 
core3/vizmap-gui-impl/branches/bypass/src/main/java/org/cytoscape/view/vizmap/gui/internal/bypass/BypassManager.java
===================================================================
--- 
core3/vizmap-gui-impl/branches/bypass/src/main/java/org/cytoscape/view/vizmap/gui/internal/bypass/BypassManager.java
        2011-01-31 19:10:36 UTC (rev 23981)
+++ 
core3/vizmap-gui-impl/branches/bypass/src/main/java/org/cytoscape/view/vizmap/gui/internal/bypass/BypassManager.java
        2011-01-31 20:06:39 UTC (rev 23982)
@@ -35,12 +35,14 @@
        private static final String PARENT_MENU_ITEM = "Visual Bypass";
 
        private final CyServiceRegistrar registrar;
-       
+
        private final EditorManager editorManager;
-       
+
        private final SelectedVisualStyleManager selectedManager;
 
-       public BypassManager(final CyServiceRegistrar registrar, final 
EditorManager editorManager, final SelectedVisualStyleManager selectedManager) {
+       public BypassManager(final CyServiceRegistrar registrar,
+                       final EditorManager editorManager,
+                       final SelectedVisualStyleManager selectedManager) {
                this.registrar = registrar;
                this.editorManager = editorManager;
                this.selectedManager = selectedManager;
@@ -73,15 +75,21 @@
                                // Leaf
                                final Dictionary<String, String> vpProp = new 
Hashtable<String, String>();
                                vpProp.put(MENU_KEY, newMenu);
+                               vpProp.put("useCheckBoxMenuItem", "true");
 
                                if 
(vp.getTargetDataType().equals(CyNode.class)) {
-                                       final NodeViewTaskFactory ntf = new 
NodeBypassMenuTaskFactory(null, vp, 
editorManager.getValueEditor(vp.getRange().getType()), selectedManager);
-                                       registrar.registerService(ntf, 
NodeViewTaskFactory.class, vpProp);
+                                       final NodeViewTaskFactory ntf = new 
NodeBypassMenuTaskFactory(
+                                                       null, vp, 
editorManager.getValueEditor(vp
+                                                                       
.getRange().getType()), selectedManager);
+                                       registrar.registerService(ntf, 
NodeViewTaskFactory.class,
+                                                       vpProp);
                                } else if 
(vp.getTargetDataType().equals(CyEdge.class)) {
                                        final EdgeViewTaskFactory etf = new 
EdgeBypassMenuTaskFactory();
-                                       registrar.registerService(etf, 
EdgeViewTaskFactory.class, vpProp);
+                                       registrar.registerService(etf, 
EdgeViewTaskFactory.class,
+                                                       vpProp);
                                }
-                               logger.debug("Bypass context menu registered: " 
+ vp.getDisplayName());
+                               logger.debug("Bypass context menu registered: "
+                                               + vp.getDisplayName());
                        } else {
                                depthFirst(newMenu, child);
                        }

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to