Changeset 5604 in josm


Ignore:
Timestamp:
2012-11-27T23:56:02+01:00 (7 years ago)
Author:
Don-vip
Message:

Allow plugins to interact with projection preferences tab in preferences dialog

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

Legend:

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

    r5068 r5604  
    8585        // smaller screen than before, this will reset the stored preference.
    8686        this.setMaximumSize( Toolkit.getDefaultToolkit().getScreenSize());
     87    }
     88   
     89    /**
     90     * Replies the preferences tabbed pane.
     91     * @return The preferences tabbed pane, or null if the dialog is not yet initialized.
     92     * @since 5604
     93     */
     94    public PreferenceTabbedPane getTabbedPane() {
     95        return tpPreferences;
    8796    }
    8897
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java

    r5553 r5604  
    453453        return gui.getMapPreference();
    454454    }
     455   
     456    /**
     457     * Selects the given projection.
     458     * @param projection The projection to select.
     459     * @since 5604
     460     */
     461    public void selectProjection(ProjectionChoice projection) {
     462        if (projectionCombo != null && projection != null) {
     463            projectionCombo.setSelectedItem(projection);
     464        }
     465    }
    455466}
Note: See TracChangeset for help on using the changeset viewer.