From bbcae8b07917e883b6cb3c1521997a97c251e921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Je=C5=99=C3=A1bek?= Date: Tue, 29 Mar 2016 13:49:39 +0200 Subject: [PATCH] Update polargraphcontroller.pde Change wrong case variablles, remove debugging code --- polargraphcontroller.pde | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/polargraphcontroller.pde b/polargraphcontroller.pde index c8e09e9..e8122d2 100644 --- a/polargraphcontroller.pde +++ b/polargraphcontroller.pde @@ -149,8 +149,8 @@ List machineMessageLog = new ArrayList(); List previewCommandList = new ArrayList(); long lastCommandQueueHash = 0L; -File LastImageDir = null; -File LastPrefDir = null; +File lastImageDir = null; +File lastPrefDir = null; String lastCommand = ""; String lastDrawingCommand = ""; @@ -1063,13 +1063,13 @@ void loadImageWithFileChooser() { public void run() { JFileChooser fc = new JFileChooser(); - if (LastImageDir != null) fc.setCurrentDirectory(LastImageDir); + if (lastImageDir != null) fc.setCurrentDirectory(LastImageDir); fc.setFileFilter(new ImageFileFilter()); fc.setDialogTitle("Choose an image file..."); int returned = fc.showOpenDialog(frame); - LastImageDir = fc.getCurrentDirectory(); + lastImageDir = fc.getCurrentDirectory(); if (returned == JFileChooser.APPROVE_OPTION) { @@ -1112,7 +1112,7 @@ void loadVectorWithFileChooser() public void run() { JFileChooser fc = new JFileChooser(); - if (LastImageDir != null) fc.setCurrentDirectory(LastImageDir); + if (lastImageDir != null) fc.setCurrentDirectory(LastImageDir); fc.setFileFilter(new VectorFileFilter()); @@ -1120,7 +1120,7 @@ void loadVectorWithFileChooser() int returned = fc.showOpenDialog(frame); - LastImageDir = fc.getCurrentDirectory(); + lastImageDir = fc.getCurrentDirectory(); if (returned == JFileChooser.APPROVE_OPTION) { @@ -1128,7 +1128,6 @@ void loadVectorWithFileChooser() if (file.exists()) { RShape shape = loadShapeFromFile(file.getPath()); - println(shape); if (shape != null) { setVectorFilename(file.getPath()); @@ -1167,14 +1166,14 @@ void loadNewPropertiesFilenameWithFileChooser() public void run() { JFileChooser fc = new JFileChooser(); - if (LastPrefDir != null) fc.setCurrentDirectory(LastPrefDir); + if (lastPrefDir != null) fc.setCurrentDirectory(lastPrefDir); fc.setFileFilter(new PropertiesFileFilter()); fc.setDialogTitle("Choose a config file..."); int returned = fc.showOpenDialog(frame); - LastPrefDir = fc.getCurrentDirectory(); + lastPrefDir = fc.getCurrentDirectory(); if (returned == JFileChooser.APPROVE_OPTION) { @@ -1219,7 +1218,7 @@ void saveNewPropertiesFileWithFileChooser() public void run() { JFileChooser fc = new JFileChooser(); - if (LastPrefDir != null) fc.setCurrentDirectory(LastPrefDir); + if (lastPrefDir != null) fc.setCurrentDirectory(lastPrefDir); fc.setFileFilter(new PropertiesFileFilter()); fc.setDialogTitle("Enter a config file name...");