Revision 38608 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/gui/preferences/SnapConfigPage.java
SnapConfigPage.java | ||
---|---|---|
8 | 8 |
import javax.swing.ImageIcon; |
9 | 9 |
import javax.swing.JPanel; |
10 | 10 |
|
11 |
import org.gvsig.andami.IconThemeHelper; |
|
11 | 12 |
import org.gvsig.andami.PluginServices; |
12 | 13 |
import org.gvsig.andami.messages.NotificationManager; |
13 | 14 |
import org.gvsig.andami.preferences.AbstractPreferencePage; |
... | ... | |
34 | 35 |
*/ |
35 | 36 |
public class SnapConfigPage extends AbstractPreferencePage { |
36 | 37 |
private static Preferences prefs = Preferences.userRoot().node("snappers"); |
37 |
private ImageIcon icon; |
|
38 | 38 |
private SnapConfig snapConfig; |
39 | 39 |
private static boolean applySnappers=true; |
40 | 40 |
@SuppressWarnings("unchecked") |
... | ... | |
44 | 44 |
public SnapConfigPage() { |
45 | 45 |
super(); |
46 | 46 |
this.setLayout(new BorderLayout()); |
47 |
icon = new ImageIcon(this.getClass().getClassLoader().getResource("images/Snapper.png")); |
|
48 | 47 |
IWindow window=PluginServices.getMDIManager().getActiveWindow(); |
49 | 48 |
if (window instanceof DefaultViewPanel){ |
50 | 49 |
mc=((DefaultViewPanel)window).getMapControl(); |
... | ... | |
160 | 159 |
* @return DOCUMENT ME! |
161 | 160 |
*/ |
162 | 161 |
public ImageIcon getIcon() { |
163 |
return icon;
|
|
162 |
return IconThemeHelper.getImageIcon("preferences-snapper");
|
|
164 | 163 |
} |
165 | 164 |
|
166 | 165 |
/** |
Also available in: Unified diff