Revision 38564 branches/v2_0_0_prep/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/extension/ClearSelectionExtension.java
ClearSelectionExtension.java | ||
---|---|---|
21 | 21 |
*/ |
22 | 22 |
package org.gvsig.app.extension; |
23 | 23 |
|
24 |
import org.gvsig.andami.IconThemeHelper; |
|
24 | 25 |
import org.gvsig.andami.PluginServices; |
25 | 26 |
import org.gvsig.andami.messages.NotificationManager; |
26 | 27 |
import org.gvsig.andami.plugins.Extension; |
... | ... | |
37 | 38 |
public class ClearSelectionExtension extends Extension { |
38 | 39 |
|
39 | 40 |
public void execute(String s) { |
40 |
if (s.compareTo("DEL_SELECTION") == 0) {
|
|
41 |
if (s.compareTo("selection-clear-table") == 0) {
|
|
41 | 42 |
IWindow activeWindow = |
42 | 43 |
PluginServices.getMDIManager().getActiveWindow(); |
43 | 44 |
|
... | ... | |
83 | 84 |
} |
84 | 85 |
|
85 | 86 |
public void initialize() { |
86 |
registerIcons();
|
|
87 |
IconThemeHelper.registerIcon("action", "selection-clear", this);
|
|
87 | 88 |
} |
88 | 89 |
|
89 |
private void registerIcons() { |
|
90 |
PluginServices.getIconTheme().registerDefault( |
|
91 |
"table-clear-selection", |
|
92 |
this.getClass().getClassLoader() |
|
93 |
.getResource("images/delselection.png")); |
|
94 |
} |
|
95 | 90 |
} |
Also available in: Unified diff