minor patch: remember last exported jar filename
This commit is contained in:
parent
c0e115895d
commit
5ed294f001
1 changed files with 4 additions and 2 deletions
|
@ -24,7 +24,7 @@
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: GUI.java,v 1.153 2009/11/13 14:25:43 fros4943 Exp $
|
* $Id: GUI.java,v 1.154 2009/11/25 10:29:21 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja;
|
package se.sics.cooja;
|
||||||
|
@ -4263,7 +4263,8 @@ public class GUI extends Observable {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
fc.setFileFilter(jarFilter);
|
fc.setFileFilter(jarFilter);
|
||||||
fc.setSelectedFile(new File("cooja_simulation.jar"));
|
File suggest = new File(getExternalToolsSetting("EXECUTE_JAR_LAST", "cooja_simulation.jar"));
|
||||||
|
fc.setSelectedFile(suggest);
|
||||||
int returnVal = fc.showSaveDialog(GUI.getTopParentContainer());
|
int returnVal = fc.showSaveDialog(GUI.getTopParentContainer());
|
||||||
if (returnVal != JFileChooser.APPROVE_OPTION) {
|
if (returnVal != JFileChooser.APPROVE_OPTION) {
|
||||||
return;
|
return;
|
||||||
|
@ -4283,6 +4284,7 @@ public class GUI extends Observable {
|
||||||
}
|
}
|
||||||
|
|
||||||
final File finalOutputFile = outputFile;
|
final File finalOutputFile = outputFile;
|
||||||
|
setExternalToolsSetting("EXECUTE_JAR_LAST", outputFile.getPath());
|
||||||
new Thread() {
|
new Thread() {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue