Author: kono
Date: 2012-07-02 12:09:33 -0700 (Mon, 02 Jul 2012)
New Revision: 29735

Modified:
   
core3/impl/trunk/editor-impl/src/main/java/org/cytoscape/editor/internal/CyActivator.java
Log:
fixes #1198 SIF Interpreter had been moved to editor context menu.

Modified: 
core3/impl/trunk/editor-impl/src/main/java/org/cytoscape/editor/internal/CyActivator.java
===================================================================
--- 
core3/impl/trunk/editor-impl/src/main/java/org/cytoscape/editor/internal/CyActivator.java
   2012-07-02 18:54:51 UTC (rev 29734)
+++ 
core3/impl/trunk/editor-impl/src/main/java/org/cytoscape/editor/internal/CyActivator.java
   2012-07-02 19:09:33 UTC (rev 29735)
@@ -34,16 +34,13 @@
                CyGroupManager cyGroupManagerServiceRef = getService(bc, 
CyGroupManager.class);
                CreateNetworkViewTaskFactory 
createNetworkViewTaskFactoryServiceRef = getService(bc, 
CreateNetworkViewTaskFactory.class);
 
-                       
                SIFInterpreterTaskFactory sifInterpreterTaskFactory = new 
SIFInterpreterTaskFactory();
                Properties sifInterpreterTaskFactoryProps = new Properties();
                sifInterpreterTaskFactoryProps.setProperty(ENABLE_FOR, 
"networkAndView");
-               // Setting preferredAction to OPEN registers this service for 
double clicks on
-               // the network canvas, something we don't want right now for 
this task!
-               
//sifInterpreterTaskFactoryProps.setProperty(PREFERRED_ACTION,"OPEN");
-               sifInterpreterTaskFactoryProps.setProperty(PREFERRED_MENU, 
"Tools");
-               sifInterpreterTaskFactoryProps.setProperty(MENU_GRAVITY, 
"5.0f");
-               sifInterpreterTaskFactoryProps.setProperty(TITLE, "SIF 
Interpreter");
+               sifInterpreterTaskFactoryProps.setProperty(PREFERRED_ACTION, 
"NEW");
+               sifInterpreterTaskFactoryProps.setProperty(PREFERRED_MENU, 
"Add");
+               sifInterpreterTaskFactoryProps.setProperty(MENU_GRAVITY, "1.2");
+               sifInterpreterTaskFactoryProps.setProperty(TITLE, "Add Edge (by 
SIF Syntax)");
                registerService(bc, sifInterpreterTaskFactory, 
NetworkViewTaskFactory.class, sifInterpreterTaskFactoryProps);
 
                NetworkViewLocationTaskFactory networkViewLocationTaskFactory = 
new AddNodeTaskFactory(cyEventHelperServiceRef, visualMappingManagerServiceRef);

-- 
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