Changeset 3248 in josm for trunk/src


Ignore:
Timestamp:
2010-05-15T13:57:16+02:00 (15 years ago)
Author:
stoecker
Message:

don't allow plugins for applet josm

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainApplet.java

    r3239 r3248  
    105105        Main.preConstructorInit(args);
    106106
    107         Main.applet = true;
    108107        Main.pref = new ServerSidePreferences(getCodeBase());
    109108        ((ServerSidePreferences)Main.pref).download(username, password);
     
    138137
    139138    public static void main(String[] args) {
     139        Main.applet = true;
    140140        MainApplet applet = new MainApplet();
    141141        applet.setStub(new AppletStub() {
  • trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java

    r2990 r3248  
    244244        settingsFactory.add(new MapPaintPreference.Factory());
    245245        settingsFactory.add(new TaggingPresetPreference.Factory());
    246         settingsFactory.add(new PluginPreference.Factory());
     246        if(!Main.applet)
     247            settingsFactory.add(new PluginPreference.Factory());
    247248        settingsFactory.add(Main.toolbar);
    248249        settingsFactory.add(new AudioPreference.Factory());
Note: See TracChangeset for help on using the changeset viewer.