Author: mmichaud
Date: 2009-04-02 07:58:43 -0700 (Thu, 02 Apr 2009)
New Revision: 16426
Modified:
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/FilePropHandler.java
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/LoadPropsInterceptor.java
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/PropHandlerFactory.java
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/StorePropsInterceptor.java
Log:
Modified:
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/FilePropHandler.java
===================================================================
---
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/FilePropHandler.java
2009-04-02 14:58:34 UTC (rev 16425)
+++
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/FilePropHandler.java
2009-04-02 14:58:43 UTC (rev 16426)
@@ -7,18 +7,17 @@
import org.cytoscape.work.AbstractPropHandler;
import org.cytoscape.work.Tunable;
-import org.cytoscape.work.util.myFile;
public class FilePropHandler extends AbstractPropHandler {
- myFile file;
+ File file;
List<String> list;
public FilePropHandler(Field f, Object o, Tunable t) {
super(f,o,t);
try{
- file = (myFile) f.get(o);
+ file = (File) f.get(o);
}catch(Exception e){e.printStackTrace();}
}
@@ -31,7 +30,6 @@
public void add(Properties p) {
//list = new ArrayList<String>();
//list.add(0,"");
- file.setPath("");
//infile = new File("");
//System.out.println("path = " + file.getAbsolutePath());
try{
@@ -46,7 +44,7 @@
if ( p.containsKey( propKey ) ) {
Object val = p.get( propKey );
if ( val != null )
- file.setPath((String) val);
+ //file.setPath((String) val);
f.set(o, file);
}
} catch (IllegalAccessException iae) {
Modified:
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/LoadPropsInterceptor.java
===================================================================
---
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/LoadPropsInterceptor.java
2009-04-02 14:58:34 UTC (rev 16425)
+++
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/LoadPropsInterceptor.java
2009-04-02 14:58:43 UTC (rev 16426)
@@ -1,5 +1,6 @@
package org.cytoscape.work.internal.props;
+import java.awt.Component;
import java.util.*;
import org.cytoscape.work.AbstractTunableInterceptor;
@@ -14,7 +15,7 @@
}
- public int createUI(Object... objs) {
+ public boolean createUI(Object... objs) {
java.util.List<PropHandler> lh = new ArrayList<PropHandler>();
for ( Object o : objs ) {
if ( !handlerMap.containsKey( o ) )
@@ -25,7 +26,7 @@
for (PropHandler p : lh) {
p.add(inputProps);
}
- return 0;
+ return false;
}
}
\ No newline at end of file
Modified:
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/PropHandlerFactory.java
===================================================================
---
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/PropHandlerFactory.java
2009-04-02 14:58:34 UTC (rev 16425)
+++
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/PropHandlerFactory.java
2009-04-02 14:58:43 UTC (rev 16426)
@@ -1,5 +1,6 @@
package org.cytoscape.work.internal.props;
+import java.io.File;
import java.lang.reflect.Field;
import java.net.URL;
@@ -11,7 +12,6 @@
import org.cytoscape.work.util.BoundedLong;
import org.cytoscape.work.util.ListMultipleSelection;
import org.cytoscape.work.util.ListSingleSelection;
-import org.cytoscape.work.util.myFile;
public class PropHandlerFactory<T> implements HandlerFactory<PropHandler> {
@@ -43,7 +43,7 @@
return new ListSinglePropHandler<T>(f,o,t);
else if (type == ListMultipleSelection.class)
return new ListMultiplePropHandler<T>(f,o,t);
- else if (type == myFile.class)
+ else if (type == File.class)
return new FilePropHandler(f,o,t);
// else if(type == URL.class)
// return new URLPropHandler(f,o,t);
Modified:
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/StorePropsInterceptor.java
===================================================================
---
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/StorePropsInterceptor.java
2009-04-02 14:58:34 UTC (rev 16425)
+++
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/props/StorePropsInterceptor.java
2009-04-02 14:58:43 UTC (rev 16426)
@@ -1,5 +1,6 @@
package org.cytoscape.work.internal.props;
+import java.awt.Component;
import java.util.*;
import org.cytoscape.work.AbstractTunableInterceptor;
@@ -13,7 +14,7 @@
this.inputProps = inputProps;
}
- public int createUI(Object... objs) {
+ public boolean createUI(Object... objs) {
java.util.List<PropHandler> lh = new ArrayList<PropHandler>();
for ( Object o : objs ) {
if ( !handlerMap.containsKey( o ) )
@@ -23,7 +24,7 @@
for (PropHandler p : lh) {
inputProps.putAll(p.getProps());
}
- return 0;
+ return false;
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---