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/FiltroExtension.java
FiltroExtension.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
import javax.swing.JOptionPane; |
27 | 27 |
|
28 |
import org.gvsig.andami.IconThemeHelper; |
|
28 | 29 |
import org.gvsig.andami.PluginServices; |
29 | 30 |
import org.gvsig.andami.messages.NotificationManager; |
30 | 31 |
import org.gvsig.andami.plugins.Extension; |
... | ... | |
56 | 57 |
} |
57 | 58 |
|
58 | 59 |
private void registerIcons() { |
59 |
PluginServices.getIconTheme().registerDefault("table-filter", |
|
60 |
this.getClass().getClassLoader().getResource("images/Filtro.png")); |
|
60 |
IconThemeHelper.registerIcon("action", "table-filter", this); |
|
61 | 61 |
} |
62 | 62 |
|
63 | 63 |
public void execute(String actionCommand) { |
64 |
if ("FILTRO".equals(actionCommand)) {
|
|
64 |
if ("table-filter".equals(actionCommand)) {
|
|
65 | 65 |
IWindow v = PluginServices.getMDIManager().getActiveWindow(); |
66 | 66 |
|
67 | 67 |
if (v instanceof FeatureTableDocumentPanel) { |
Also available in: Unified diff