Author: kono
Date: 2011-04-06 19:09:17 -0700 (Wed, 06 Apr 2011)
New Revision: 24696

Modified:
   core3/editor-impl/trunk/pom.xml
   
core3/editor-impl/trunk/src/main/java/org/cytoscape/editor/internal/DropNetworkViewTask.java
Log:
Fixed bugs related to VisualLexicon refactoring.

Modified: core3/editor-impl/trunk/pom.xml
===================================================================
--- core3/editor-impl/trunk/pom.xml     2011-04-07 01:26:23 UTC (rev 24695)
+++ core3/editor-impl/trunk/pom.xml     2011-04-07 02:09:17 UTC (rev 24696)
@@ -105,27 +105,22 @@
                <dependency>
                        <groupId>org.cytoscape</groupId>
                        <artifactId>presentation-api</artifactId>
-                       <version>3.0.0-alpha2</version>
+                       <version>3.0.0-alpha3-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>org.cytoscape</groupId>
-                       <artifactId>viewmodel-api</artifactId>
-                       <version>3.0.0-alpha3</version>
-               </dependency>
-               <dependency>
-                       <groupId>org.cytoscape</groupId>
                        <artifactId>dnd-api</artifactId>
-                       <version>3.0.0-alpha1</version>
+                       <version>3.0.0-alpha2-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>org.cytoscape</groupId>
                        <artifactId>swing-application-api</artifactId>
-                       <version>3.0.0-alpha1</version>
+                       <version>3.0.0-alpha2-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>org.cytoscape</groupId>
                        <artifactId>core-task-api</artifactId>
-                       <version>3.0.0-alpha2</version>
+                       <version>3.0.0-alpha3-SNAPSHOT</version>
                </dependency>
 
        </dependencies>

Modified: 
core3/editor-impl/trunk/src/main/java/org/cytoscape/editor/internal/DropNetworkViewTask.java
===================================================================
--- 
core3/editor-impl/trunk/src/main/java/org/cytoscape/editor/internal/DropNetworkViewTask.java
        2011-04-07 01:26:23 UTC (rev 24695)
+++ 
core3/editor-impl/trunk/src/main/java/org/cytoscape/editor/internal/DropNetworkViewTask.java
        2011-04-07 02:09:17 UTC (rev 24696)
@@ -10,7 +10,7 @@
 import org.cytoscape.view.model.View;
 import org.cytoscape.work.TaskMonitor;
 
-import org.cytoscape.view.presentation.property.TwoDVisualLexicon;
+import org.cytoscape.view.presentation.property.MinimalVisualLexicon;
 import org.cytoscape.model.CyNetwork;
 import org.cytoscape.model.CyNode;
 
@@ -42,8 +42,8 @@
                CyNetwork net = view.getModel();
                CyNode n = net.addNode();
                View<CyNode> nv = view.getNodeView(n);
-               
nv.setVisualProperty(TwoDVisualLexicon.NODE_X_LOCATION,xformPt.getX());
-               
nv.setVisualProperty(TwoDVisualLexicon.NODE_Y_LOCATION,xformPt.getY());
+               
nv.setVisualProperty(MinimalVisualLexicon.NODE_X_LOCATION,xformPt.getX());
+               
nv.setVisualProperty(MinimalVisualLexicon.NODE_Y_LOCATION,xformPt.getY());
                view.updateView();
        }
 }

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