[sikuli] 147/385: revised purging of Image cache entries in IDE on Save, SaveAs and Close

Gilles Filippini pini at moszumanska.debian.org
Sun Jun 29 19:26:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

pini pushed a commit to tag upstream/1.1.0_beta1
in repository sikuli.

commit cb089033d20369c63d8bb2f9a5ab61da3fee3477
Author: Raimund Hocke <rmhdevelop at me.com>
Date:   Thu Jan 9 16:22:13 2014 +0100

    revised purging of Image cache entries in IDE on Save, SaveAs and Close
---
 IDE/src/main/java/org/sikuli/ide/EditorPane.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/IDE/src/main/java/org/sikuli/ide/EditorPane.java b/IDE/src/main/java/org/sikuli/ide/EditorPane.java
index 9176461..2bf0a22 100755
--- a/IDE/src/main/java/org/sikuli/ide/EditorPane.java
+++ b/IDE/src/main/java/org/sikuli/ide/EditorPane.java
@@ -193,7 +193,7 @@ public class EditorPane extends JTextPane implements KeyListener, CaretListener
     if (_editingFile == null) {
       return saveAsFile(Settings.isMac());
     } else {
-      Image.purge(_srcBundlePath);
+      ImagePath.remove(_srcBundlePath);
       writeSrcFile();
       return getCurrentShortFilename();
     }
@@ -258,7 +258,7 @@ public class EditorPane extends JTextPane implements KeyListener, CaretListener
       FileManager.deleteTempDir(_srcBundlePath);
       _srcBundleTemp = false;
     }
-    Image.purge(_srcBundlePath);
+    ImagePath.remove(_srcBundlePath);
     setSrcBundle(bundlePath);
     _editingFile = createSourceFile(bundlePath, ".py");
     Debug.log(2, "save to bundle: " + getSrcBundle());
@@ -339,7 +339,7 @@ public class EditorPane extends JTextPane implements KeyListener, CaretListener
       setDirty(false);
     }
     if (_srcBundlePath != null) {
-      Image.purge(_srcBundlePath);
+      ImagePath.remove(_srcBundlePath);
     }
     return true;
   }
@@ -443,7 +443,7 @@ public class EditorPane extends JTextPane implements KeyListener, CaretListener
   }
   
   public Image getImageInBundle(String filename) {
-      return Image.create(filename);
+      return Image.createThumbNail(filename);
   }
 
 //</editor-fold>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sikuli.git



More information about the pkg-java-commits mailing list