Author: ruschein
Date: 2011-07-01 16:06:07 -0700 (Fri, 01 Jul 2011)
New Revision: 26005
Modified:
core3/layout-impl/trunk/pom.xml
core3/layout-impl/trunk/src/main/java/org/cytoscape/view/layout/internal/algorithms/GridNodeLayout.java
Log:
Updated to track changes in work-api.
Modified: core3/layout-impl/trunk/pom.xml
===================================================================
--- core3/layout-impl/trunk/pom.xml 2011-07-01 23:02:19 UTC (rev 26004)
+++ core3/layout-impl/trunk/pom.xml 2011-07-01 23:06:07 UTC (rev 26005)
@@ -82,6 +82,11 @@
<dependencies>
<dependency>
<groupId>org.cytoscape</groupId>
+ <artifactId>work-api</artifactId>
+ <version>3.0.0-alpha4-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
<artifactId>layout-api</artifactId>
<version>3.0.0-alpha3-SNAPSHOT</version>
</dependency>
Modified:
core3/layout-impl/trunk/src/main/java/org/cytoscape/view/layout/internal/algorithms/GridNodeLayout.java
===================================================================
---
core3/layout-impl/trunk/src/main/java/org/cytoscape/view/layout/internal/algorithms/GridNodeLayout.java
2011-07-01 23:02:19 UTC (rev 26004)
+++
core3/layout-impl/trunk/src/main/java/org/cytoscape/view/layout/internal/algorithms/GridNodeLayout.java
2011-07-01 23:06:07 UTC (rev 26005)
@@ -45,6 +45,7 @@
import org.cytoscape.work.TaskIterator;
import org.cytoscape.work.Tunable;
import org.cytoscape.work.TunableValidator;
+import org.cytoscape.work.TunableValidator.ValidationState;
import org.cytoscape.work.undo.UndoSupport;
@@ -66,17 +67,18 @@
super(un,CyLayoutAlgorithmManager.DEFAULT_LAYOUT_NAME,"Grid
Layout", true);
}
- public boolean tunablesAreValid(final Appendable errMsg) {
+ @Override
+ public ValidationState getValidationState(final Appendable errMsg) {
if (nodeVerticalSpacing != 30.0 )
- return true;
+ return ValidationState.OK;
else {
try {
errMsg.append("This is a test : I don't want
30.0 for nodeVerticalSpacing value\nProvide something else!!!!");
} catch (IOException e) {
e.printStackTrace();
- return false;
+ return ValidationState.INVALID;
}
- return false;
+ return ValidationState.INVALID;
}
}
--
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.