Revision 47426 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/export/swing/impl/ExportSwingLibraryImpl.java
ExportSwingLibraryImpl.java | ||
---|---|---|
52 | 52 |
|
53 | 53 |
@Override |
54 | 54 |
protected void doPostInitialize() throws LibraryException { |
55 |
String[][] iconNames = new String[][] { |
|
56 |
new String[] { "action", "column-query-calculated" }, |
|
57 |
new String[] { "action", "column-table-calculated" }, |
|
58 |
new String[] { "action", "column-true" } |
|
59 |
}; |
|
60 |
IconTheme theme = ToolsSwingLocator.getIconThemeManager().getCurrent(); |
|
61 |
for (String[] icon : iconNames) { |
|
62 |
URL url = this.getClass().getResource("/images/export-to/"+icon[1]+".png"); |
|
63 |
theme.registerDefault("Export", icon[0], icon[1], null, url); |
|
64 |
} |
|
65 |
|
|
55 |
// String[][] iconNames = new String[][] {
|
|
56 |
// new String[] { "action", "column-query-calculated" },
|
|
57 |
// new String[] { "action", "column-table-calculated" },
|
|
58 |
// new String[] { "action", "column-true" }
|
|
59 |
// };
|
|
60 |
// IconTheme theme = ToolsSwingLocator.getIconThemeManager().getCurrent();
|
|
61 |
// for (String[] icon : iconNames) {
|
|
62 |
// URL url = this.getClass().getResource("/images/export-to/"+icon[1]+".png");
|
|
63 |
// theme.registerDefault("Export", icon[0], icon[1], null, url);
|
|
64 |
// }
|
|
65 |
// |
|
66 | 66 |
} |
67 | 67 |
|
68 | 68 |
} |
Also available in: Unified diff