Author: jflesch
Date: 2007-07-11 21:06:20 +0000 (Wed, 11 Jul 2007)
New Revision: 14035
Modified:
trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java
Log:
Add some shortcuts in the index tree:
- Alt-R : Refresh the selected index
- Alt-B : Blacklist the selected index
Modified: trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
2007-07-11 20:42:38 UTC (rev 14034)
+++ trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
2007-07-11 21:06:20 UTC (rev 14035)
@@ -274,7 +274,7 @@
/**
* In fact, this dialog allows to change various settings related to
the index
- * THIS DIALOG BECOME REALLY DIRTY ! TO REWRITE !
+ * THIS DIALOG BECOMES REALLY DIRTY ! TO REWRITE !
*/
public static class KeyAsker implements ActionListener, MouseListener {
private Index index;
Modified: trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java 2007-07-11
20:42:38 UTC (rev 14034)
+++ trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java 2007-07-11
21:06:20 UTC (rev 14035)
@@ -317,6 +317,7 @@
button = new JButton(IconBox.refreshAction);
button.setToolTipText(I18n.getMessage("thaw.plugin.index.downloadIndexes"));
+ button.setMnemonic(KeyEvent.VK_R);
action = new
IndexManagementHelper.IndexDownloader(queueManager, indexBrowser, button);
action.setTarget(getRoot());
toolbarModifier.addButtonToTheToolbar(button);
@@ -350,6 +351,21 @@
toolbarModifier.addButtonToTheToolbar(button);
toolbarActions.add(action);
+ button = new JButton(IconBox.copy);
+
button.setToolTipText(I18n.getMessage("thaw.plugin.index.copyKeys"));
+ action = new IndexManagementHelper.PublicKeyCopier(button);
+ action.setTarget(null);
+ toolbarModifier.addButtonToTheToolbar(button);
+ toolbarActions.add(action);
+
+ button = new JButton(IconBox.stop);
+
button.setToolTipText(I18n.getMessage("thaw.plugin.index.addToBlackList"));
+ button.setMnemonic(KeyEvent.VK_B);
+ action = new
IndexManagementHelper.IndexBlackLister(indexBrowser, button);
+ action.setTarget(getRoot());
+ toolbarModifier.addButtonToTheToolbar(button);
+ toolbarActions.add(action);
+
button = new JButton(IconBox.delete);
button.setToolTipText(I18n.getMessage("thaw.plugin.index.delete"));
action = new IndexManagementHelper.IndexDeleter(indexBrowser,
button);