Changeset 27632 in osm


Ignore:
Timestamp:
2012-01-26T18:50:55+01:00 (13 years ago)
Author:
hind
Message:

Correct plugin dir path for CommandLine

Location:
applications/editors/josm/plugins/CommandLine/src/CommandLine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandAction.java

    r25044 r27632  
    4040                if (!parentCommand.icon.equals("")) {
    4141                        try {
    42                                 putValue(Action.SMALL_ICON, ImageProvider.get("/../plugins/CommandLine/", parentCommand.icon));
    43                                 putValue(Action.LARGE_ICON_KEY, ImageProvider.get("/../plugins/CommandLine/", parentCommand.icon));
     42                                putValue(Action.SMALL_ICON, ImageProvider.get(parentPlugin.pluginDir, parentCommand.icon));
     43                                putValue(Action.LARGE_ICON_KEY, ImageProvider.get(parentPlugin.pluginDir, parentCommand.icon));
    4444                        }
    4545                        catch (NullPointerException e) {
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java

    r27242 r27632  
    7979        protected MapFrame currentMapFrame;
    8080        protected MapMode previousMode;
     81
     82        static final String pluginDir = Main.pref.getPluginsDirectory().getAbsolutePath() + "/CommandLine/";
    8183
    8284        public CommandLine(PluginInformation info) {
Note: See TracChangeset for help on using the changeset viewer.