[sikuli] 151/385: added a Reset option to the IDE Tab menu (to get a state as if one had stopped and restarted the IDE)
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 dabd3fecd8c74ec3be4cf1425aa602495106c915
Author: Raimund Hocke <rmhdevelop at me.com>
Date: Thu Jan 9 19:12:49 2014 +0100
added a Reset option to the IDE Tab menu (to get a state as if one had stopped and restarted the IDE)
---
IDE/src/main/java/org/sikuli/ide/SikuliIDEPopUpMenu.java | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/IDE/src/main/java/org/sikuli/ide/SikuliIDEPopUpMenu.java b/IDE/src/main/java/org/sikuli/ide/SikuliIDEPopUpMenu.java
index a51bc8c..ad513a9 100644
--- a/IDE/src/main/java/org/sikuli/ide/SikuliIDEPopUpMenu.java
+++ b/IDE/src/main/java/org/sikuli/ide/SikuliIDEPopUpMenu.java
@@ -8,6 +8,8 @@ import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
import org.sikuli.basics.Debug;
+import org.sikuli.script.Image;
+import org.sikuli.script.ImagePath;
public class SikuliIDEPopUpMenu extends JPopupMenu {
@@ -165,6 +167,8 @@ public class SikuliIDEPopUpMenu extends JPopupMenu {
addSeparator();
add(createMenuItem("Run", new PopTabAction(PopTabAction.RUN)));
add(createMenuItem("Run Slowly", new PopTabAction(PopTabAction.RUN_SLOW)));
+ addSeparator();
+ add(createMenuItem("Reset", new PopTabAction(PopTabAction.RESET)));
} catch (NoSuchMethodException ex) {
validMenu = false;
@@ -181,7 +185,8 @@ public class SikuliIDEPopUpMenu extends JPopupMenu {
static final String SAVE_AS = "doSaveAs";
static final String RUN = "doRun";
static final String RUN_SLOW = "doRunSlow";
-
+ static final String RESET = "doReset";
+
public PopTabAction() {
super();
}
@@ -260,7 +265,14 @@ public class SikuliIDEPopUpMenu extends JPopupMenu {
log(lvl, "doRunSlow: entered");
fireIDERunMenu("RUN_SLOWLY");
}
+
+ public void doReset(ActionEvent ae) throws NoSuchMethodException {
+ log(lvl, "Reset: entered");
+ Image.dump();
+ ImagePath.reset();
+ Image.dump();
}
+}
private void popImageMenu() {
try {
--
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