Revision 9949 trunk/libraries/libCorePlugin/src/com/iver/core/menus/ToolbarMenus.java
ToolbarMenus.java | ||
---|---|---|
22 | 22 |
public class ToolbarMenus extends Extension implements ActionListener { |
23 | 23 |
private final String ACTIONCOMMANDBASE = "CHANGE_VISIBILITY-"; |
24 | 24 |
private final String MENUBASE = "Ver/Toolbars/"; |
25 |
private final String ENABLEDIMAGE = "images/enabled.png"; |
|
25 | 26 |
|
26 | 27 |
/* (non-Javadoc) |
27 | 28 |
* @see com.iver.andami.plugins.Extension#execute(java.lang.String) |
... | ... | |
59 | 60 |
|
60 | 61 |
boolean oldVisibility = PluginServices.getMainFrame().getToolbarVisibility(toolbarName); |
61 | 62 |
if (oldVisibility==false) { |
62 |
URL icon = PluginServices.getPluginServices(this).getClassLoader().getResource("images/gtk-apply.png");
|
|
63 |
URL icon = PluginServices.getPluginServices(this).getClassLoader().getResource(ENABLEDIMAGE);
|
|
63 | 64 |
menu.setIcon(new ImageIcon(icon)); |
64 | 65 |
persistStatus(toolbarName, !oldVisibility); |
65 | 66 |
} |
... | ... | |
84 | 85 |
//menu.setTooltip(PluginServices.getText(this, "muestra_oculta_la_toolbar")); |
85 | 86 |
menu.setText(MENUBASE+toolBars[i].getName()); |
86 | 87 |
if (toolBars[i].getAndamiVisibility()) |
87 |
menu.setIcon("images/enabled.png");
|
|
88 |
menu.setIcon(ENABLEDIMAGE);
|
|
88 | 89 |
PluginServices.getMainFrame().addMenu(menu, this, PluginServices.getPluginServices(this).getClassLoader()); |
89 | 90 |
} |
90 | 91 |
|
Also available in: Unified diff