Author: ruschein
Date: 2010-08-16 13:33:44 -0700 (Mon, 16 Aug 2010)
New Revision: 21399

Modified:
   
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/tests/tunables/TunablesTestTask.java
Log:
Updated tunables test to test @ProvidesGUI.

Modified: 
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/tests/tunables/TunablesTestTask.java
===================================================================
--- 
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/tests/tunables/TunablesTestTask.java
   2010-08-16 20:31:22 UTC (rev 21398)
+++ 
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/tests/tunables/TunablesTestTask.java
   2010-08-16 20:33:44 UTC (rev 21399)
@@ -32,11 +32,15 @@
 
 import java.io.File;
 
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+
 import org.cytoscape.task.AbstractTask;
 import org.cytoscape.model.CyNetwork;
 import org.cytoscape.work.Task;
 import org.cytoscape.work.TaskMonitor;
 import org.cytoscape.work.Tunable;
+import org.cytoscape.work.ProvidesGUI;
 import org.cytoscape.work.TunableValidator;
 import org.cytoscape.work.util.BoundedDouble;
 import org.cytoscape.work.util.BoundedFloat;
@@ -137,4 +141,11 @@
                        return false;
                }
        }
+
+       @ProvidesGUI
+       public JPanel getGUI() {
+               final JPanel panel = new JPanel();
+               panel.add(new JLabel("Panel from an @ProvidesGUI-annotated 
class!"));
+               return panel;
+       }
 }

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