Author: ulhume
Date: 2008-08-29 15:55:26 +0200 (Fri, 29 Aug 2008)
New Revision: 1637
Modified:
software_suite_v2/software/tools/tuxdroid-gadget-tester/trunk/tuxdroid-gadget-tester/
software_suite_v2/software/tools/tuxdroid-gadget-tester/trunk/tuxdroid-gadget-tester/sources/com/kysoh/tuxdroid/gadget/framework/tester/GadgetTester.java
software_suite_v2/software/tools/tuxdroid-gadget-tester/trunk/tuxdroid-gadget-tester/sources/com/kysoh/tuxdroid/gadget/framework/tester/GadgetTesterConfiguration.java
Log:
Remove directory chooser for container mode
Property changes on:
software_suite_v2/software/tools/tuxdroid-gadget-tester/trunk/tuxdroid-gadget-tester
___________________________________________________________________
Name: svn:ignore
+ gadgets
work
Modified:
software_suite_v2/software/tools/tuxdroid-gadget-tester/trunk/tuxdroid-gadget-tester/sources/com/kysoh/tuxdroid/gadget/framework/tester/GadgetTester.java
===================================================================
---
software_suite_v2/software/tools/tuxdroid-gadget-tester/trunk/tuxdroid-gadget-tester/sources/com/kysoh/tuxdroid/gadget/framework/tester/GadgetTester.java
2008-08-29 13:52:42 UTC (rev 1636)
+++
software_suite_v2/software/tools/tuxdroid-gadget-tester/trunk/tuxdroid-gadget-tester/sources/com/kysoh/tuxdroid/gadget/framework/tester/GadgetTester.java
2008-08-29 13:55:26 UTC (rev 1637)
@@ -261,19 +261,20 @@
} else if (getConfiguration().getMode() ==
GadgetTesterMode.gadget) {
logger.info("Using 'gadget' mode");
container.loadGadgets(getConfiguration().getPath());
- }
- if (getConfiguration().getPath().listFiles().length < 1) {
- JFileChooser chooser = new JFileChooser();
- chooser.setDialogTitle("Select unziped gadget
directory.");
-
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
- int option = chooser.showOpenDialog(null);
- if (option == JFileChooser.APPROVE_OPTION) {
- File newPath = chooser.getSelectedFile();
- if (newPath.exists()) {
- getConfiguration().setPath(newPath);
- container.loadGadgets(newPath);
+ if (getConfiguration().getPath().listFiles().length <
1) {
+ JFileChooser chooser = new JFileChooser();
+ chooser.setDialogTitle("Select unziped gadget
directory.");
+
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
+ int option = chooser.showOpenDialog(null);
+ if (option == JFileChooser.APPROVE_OPTION) {
+ File newPath =
chooser.getSelectedFile();
+ if (newPath.exists()) {
+
getConfiguration().setPath(newPath);
+ container.loadGadgets(newPath);
+ }
}
}
}
+
}
}
\ No newline at end of file
Modified:
software_suite_v2/software/tools/tuxdroid-gadget-tester/trunk/tuxdroid-gadget-tester/sources/com/kysoh/tuxdroid/gadget/framework/tester/GadgetTesterConfiguration.java
===================================================================
---
software_suite_v2/software/tools/tuxdroid-gadget-tester/trunk/tuxdroid-gadget-tester/sources/com/kysoh/tuxdroid/gadget/framework/tester/GadgetTesterConfiguration.java
2008-08-29 13:52:42 UTC (rev 1636)
+++
software_suite_v2/software/tools/tuxdroid-gadget-tester/trunk/tuxdroid-gadget-tester/sources/com/kysoh/tuxdroid/gadget/framework/tester/GadgetTesterConfiguration.java
2008-08-29 13:55:26 UTC (rev 1637)
@@ -45,7 +45,7 @@
this.mode = mode;
}
- public File path = new File("./targets/work");
+ public File path = new File("./work");
/**
* @return the workingPath
@@ -79,6 +79,6 @@
this.deployementPath = deployementPath;
}
- public File deployementPath = new File("./targets/gadgets");
+ public File deployementPath = new File("./gadgets");
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn