Changeset 288 in josm


Ignore:
Timestamp:
2007-07-11T23:41:04+02:00 (17 years ago)
Author:
imi
Message:
  • added plugins - tab in the about dialog to show all loaded plugins
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/actions/AboutAction.java

    r266 r288  
    2626
    2727import org.openstreetmap.josm.Main;
     28import org.openstreetmap.josm.plugins.PluginProxy;
    2829import org.openstreetmap.josm.tools.GBC;
    2930import org.openstreetmap.josm.tools.ImageProvider;
     
    6667                JTextArea readme = loadFile(Main.class.getResource("/README"));
    6768                JTextArea contribution = loadFile(Main.class.getResource("/CONTRIBUTION"));
     69                JTextArea plugins = loadFile(null);
    6870
    6971                JPanel info = new JPanel(new GridBagLayout());
     
    100102                info.add(new UrlLabel("http://www.opengeodata.org/?cat=17"), GBC.eol());
    101103
     104                StringBuilder pluginsStr = new StringBuilder();
     105                for (PluginProxy p : Main.plugins)
     106                        pluginsStr.append(p.info.name + "\n");
     107                plugins.setText(pluginsStr.toString());
     108                plugins.setCaretPosition(0);
     109
    102110                about.addTab(tr("Info"), info);
    103111                about.addTab(tr("Readme"), createScrollPane(readme));
    104112                about.addTab(tr("Revision"), createScrollPane(revision));
    105113                about.addTab(tr("Contribution"), createScrollPane(contribution));
     114                about.addTab(tr("Plugins"), createScrollPane(plugins));
    106115
    107116                about.setPreferredSize(new Dimension(500,300));
Note: See TracChangeset for help on using the changeset viewer.