summaryrefslogtreecommitdiffstats
path: root/ajbrowser/src
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-04-30 02:32:39 +0000
committerwisberg <wisberg>2003-04-30 02:32:39 +0000
commit632ce1e11ac421e2cdfbe51582ccf3f4968eddc3 (patch)
tree86927ccf3e99a4ec7da6dc90919d4207afd53221 /ajbrowser/src
parentbe81a579eef4485384942fc8d34a39fd45dc632d (diff)
downloadaspectj-632ce1e11ac421e2cdfbe51582ccf3f4968eddc3.tar.gz
aspectj-632ce1e11ac421e2cdfbe51582ccf3f4968eddc3.zip
support shift-key to rebuild-all in incremental mode
Diffstat (limited to 'ajbrowser/src')
-rw-r--r--ajbrowser/src/org/aspectj/tools/ajbrowser/TopFrame.java19
1 files changed, 16 insertions, 3 deletions
diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/TopFrame.java b/ajbrowser/src/org/aspectj/tools/ajbrowser/TopFrame.java
index 2b7b66ebf..d8bf0416b 100644
--- a/ajbrowser/src/org/aspectj/tools/ajbrowser/TopFrame.java
+++ b/ajbrowser/src/org/aspectj/tools/ajbrowser/TopFrame.java
@@ -43,6 +43,7 @@ import javax.swing.border.Border;
import javax.swing.filechooser.FileFilter;
import org.aspectj.ajde.Ajde;
+import org.aspectj.ajde.ui.EditorManager;
import org.aspectj.ajde.ui.swing.AJButtonMenuCombo;
import org.aspectj.ajde.ui.swing.AjdeUIManager;
import org.aspectj.ajde.ui.swing.BuildConfigPopupMenu;
@@ -203,7 +204,11 @@ public class TopFrame extends JFrame {
public void keyPressed(KeyEvent e) {
if (e.getModifiers() == java.awt.Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()) {
if (e.getKeyCode() == KeyEvent.VK_F11) {
- Ajde.getDefault().getBuildManager().build();
+ if (e.isShiftDown()) {
+ Ajde.getDefault().getBuildManager().buildFresh();
+ } else {
+ Ajde.getDefault().getBuildManager().build();
+ }
} else if (e.getKeyCode() == KeyEvent.VK_S) {
Ajde.getDefault().getEditorManager().saveContents();
} else if (e.getKeyCode() == KeyEvent.VK_P) {
@@ -466,7 +471,11 @@ public class TopFrame extends JFrame {
void projectBuild_menuItem_actionPerformed(ActionEvent e) {
BrowserManager.getDefault().saveAll();
- Ajde.getDefault().getBuildManager().build();
+ if (EditorManager.isShiftDown(e.getModifiers())) {
+ Ajde.getDefault().getBuildManager().buildFresh();
+ } else {
+ Ajde.getDefault().getBuildManager().build();
+ }
}
void run_button_actionPerformed(ActionEvent e) {
@@ -479,7 +488,11 @@ public class TopFrame extends JFrame {
void build_button_actionPerformed(ActionEvent e) {
BrowserManager.getDefault().saveAll();
- Ajde.getDefault().getBuildManager().build();
+ if (EditorManager.isShiftDown(e.getModifiers())) {
+ Ajde.getDefault().getBuildManager().buildFresh();
+ } else {
+ Ajde.getDefault().getBuildManager().build();
+ }
}
void options_button_actionPerformed(ActionEvent e) {