Revision 38564 branches/v2_0_0_prep/extensions/org.gvsig.selectiontools.app/org.gvsig.selectiontools.app.extension/src/main/java/org/gvsig/selectiontools/app/extension/SelectByPolylineExtension.java
SelectByPolylineExtension.java | ||
---|---|---|
22 | 22 |
* |
23 | 23 |
*/ |
24 | 24 |
|
25 |
import org.gvsig.andami.IconThemeHelper; |
|
25 | 26 |
import org.gvsig.andami.PluginServices; |
26 | 27 |
import org.gvsig.andami.plugins.Extension; |
27 | 28 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
... | ... | |
54 | 55 |
* @see com.iver.andami.plugins.IExtension#initialize() |
55 | 56 |
*/ |
56 | 57 |
public void initialize() { |
57 |
registerIcons(); |
|
58 |
IconThemeHelper.registerIcon("action", "selection-select-by-polyline", this); |
|
59 |
IconThemeHelper.registerIcon("cursor", "cursor-select-by-polyline", this); |
|
58 | 60 |
} |
59 | 61 |
|
60 |
private void registerIcons() { |
|
61 |
PluginServices.getIconTheme().registerDefault("polyline-cursor-icon", |
|
62 |
this.getClass() |
|
63 |
.getClassLoader() |
|
64 |
.getResource("images/polyline-cursor-icon.png")); |
|
65 |
|
|
66 |
PluginServices.getIconTheme() |
|
67 |
.registerDefault("select-by-polyline-icon", |
|
68 |
this.getClass() |
|
69 |
.getClassLoader() |
|
70 |
.getResource("images/select-by-polyline-icon.png")); |
|
71 |
} |
|
72 |
|
|
73 | 62 |
/* |
74 | 63 |
* (non-Javadoc) |
75 | 64 |
* |
Also available in: Unified diff