Revision 2260 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.impl/src/main/java/org/gvsig/tools/swing/impl/ToolsSwingDefaultImplLibrary.java
ToolsSwingDefaultImplLibrary.java | ||
---|---|---|
85 | 85 |
|
86 | 86 |
JWebBrowserSimpleFactory.selfRegister(); |
87 | 87 |
|
88 |
registerDataTypeIcons();
|
|
88 |
registerIcons(); |
|
89 | 89 |
} |
90 | 90 |
|
91 | 91 |
@Override |
... | ... | |
93 | 93 |
|
94 | 94 |
} |
95 | 95 |
|
96 |
private void registerDataTypeIcons() {
|
|
96 |
private void registerIcons() { |
|
97 | 97 |
String[][] iconNames = new String[][] { |
98 |
new String[] { "DataTypes", "datatype-any" }, |
|
99 |
new String[] { "DataTypes", "datatype-binary" }, |
|
100 |
new String[] { "DataTypes", "datatype-boolean" }, |
|
101 |
new String[] { "DataTypes", "datatype-byte" }, |
|
102 |
new String[] { "DataTypes", "datatype-bytearray" }, |
|
103 |
new String[] { "DataTypes", "datatype-date" }, |
|
104 |
new String[] { "DataTypes", "datatype-double" }, |
|
105 |
new String[] { "DataTypes", "datatype-decimal" }, |
|
106 |
new String[] { "DataTypes", "datatype-float" }, |
|
107 |
new String[] { "DataTypes", "datatype-image" }, |
|
108 |
new String[] { "DataTypes", "datatype-integer" }, |
|
109 |
new String[] { "DataTypes", "datatype-locale" }, |
|
110 |
new String[] { "DataTypes", "datatype-long" }, |
|
111 |
new String[] { "DataTypes", "datatype-object" }, |
|
112 |
new String[] { "DataTypes", "datatype-string" }, |
|
113 |
new String[] { "DataTypes", "datatype-text" }, |
|
114 |
new String[] { "DataTypes", "datatype-time" }, |
|
115 |
new String[] { "DataTypes", "datatype-timestamp" } |
|
98 |
new String[] { "datatypes/images/", "DataTypes", "datatype-any" }, |
|
99 |
new String[] { "datatypes/images/", "DataTypes", "datatype-binary" }, |
|
100 |
new String[] { "datatypes/images/", "DataTypes", "datatype-boolean" }, |
|
101 |
new String[] { "datatypes/images/", "DataTypes", "datatype-byte" }, |
|
102 |
new String[] { "datatypes/images/", "DataTypes", "datatype-bytearray" }, |
|
103 |
new String[] { "datatypes/images/", "DataTypes", "datatype-date" }, |
|
104 |
new String[] { "datatypes/images/", "DataTypes", "datatype-double" }, |
|
105 |
new String[] { "datatypes/images/", "DataTypes", "datatype-decimal" }, |
|
106 |
new String[] { "datatypes/images/", "DataTypes", "datatype-float" }, |
|
107 |
new String[] { "datatypes/images/", "DataTypes", "datatype-image" }, |
|
108 |
new String[] { "datatypes/images/", "DataTypes", "datatype-integer" }, |
|
109 |
new String[] { "datatypes/images/", "DataTypes", "datatype-locale" }, |
|
110 |
new String[] { "datatypes/images/", "DataTypes", "datatype-long" }, |
|
111 |
new String[] { "datatypes/images/", "DataTypes", "datatype-object" }, |
|
112 |
new String[] { "datatypes/images/", "DataTypes", "datatype-string" }, |
|
113 |
new String[] { "datatypes/images/", "DataTypes", "datatype-text" }, |
|
114 |
new String[] { "datatypes/images/", "DataTypes", "datatype-time" }, |
|
115 |
new String[] { "datatypes/images/", "DataTypes", "datatype-timestamp" }, |
|
116 |
new String[] { "common/", "Common", "common-applychanges" }, |
|
117 |
new String[] { "common/", "Common", "common-filter" }, |
|
118 |
new String[] { "common/", "Common", "common-more" }, |
|
119 |
new String[] { "common/", "Common", "common-sortdown" }, |
|
120 |
new String[] { "common/", "Common", "common-sortup" } |
|
116 | 121 |
}; |
117 | 122 |
IconTheme theme = ToolsSwingLocator.getIconThemeManager().getCurrent(); |
118 | 123 |
for (String[] icon : iconNames) { |
119 |
URL url = ToolsSwingDefaultImplLibrary.class.getResource("datatypes/images/"+icon[1]+".png");
|
|
120 |
theme.registerDefault("DataTypes", icon[0], icon[1], null, url);
|
|
124 |
URL url = ToolsSwingDefaultImplLibrary.class.getResource(icon[0]+icon[2]+".png");
|
|
125 |
theme.registerDefault("ToolsSwing", icon[1], icon[2], null, url);
|
|
121 | 126 |
} |
127 |
|
|
128 |
|
|
122 | 129 |
} |
123 | 130 |
} |
Also available in: Unified diff