Changeset 4849 in josm


Ignore:
Timestamp:
2012-01-22T16:43:34+01:00 (8 years ago)
Author:
bastiK
Message:

make History- & Changeset-Toggle dialog expert (see #7299)

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

Legend:

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

    r4846 r4849  
    196196        addToggleDialog(new CommandStackDialog(this));
    197197        addToggleDialog(new UserListDialog());
    198         addToggleDialog(new HistoryDialog());
     198        addToggleDialog(new HistoryDialog(), true);
    199199        addToggleDialog(conflictDialog = new ConflictDialog());
    200200        addToggleDialog(validatorDialog = new ValidatorDialog());
    201201        addToggleDialog(filterDialog = new FilterDialog());
    202         addToggleDialog(new ChangesetDialog(this));
     202        addToggleDialog(new ChangesetDialog(this), true);
    203203        addToggleDialog(new MapPaintDialog());
    204204
     
    264264    }
    265265
     266    public IconToggleButton addToggleDialog(final ToggleDialog dlg) {
     267        return addToggleDialog(dlg, false);
     268    }
     269
    266270    /**
    267271     * Call this to add new toggle dialogs to the left button-list
    268272     * @param dlg The toggle dialog. It must not be in the list already.
    269273     */
    270     public IconToggleButton addToggleDialog(final ToggleDialog dlg) {
    271         final IconToggleButton button = new IconToggleButton(dlg.getToggleAction());
     274    public IconToggleButton addToggleDialog(final ToggleDialog dlg, boolean isExpert) {
     275        final IconToggleButton button = new IconToggleButton(dlg.getToggleAction(), isExpert);
    272276        button.setShowHideButtonListener(dlg);
    273277        addHideContextMenu(button);
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java

    r4203 r4849  
    1313 *
    1414 * BTW: THIS IS A STUB. See comments below for details.
     15 *
     16 * Don't write (Main.platform instanceof PlatformHookUnixoid) because other platform
     17 * hooks are subclasses of this class.
    1518 */
    1619public class PlatformHookUnixoid implements PlatformHook {
Note: See TracChangeset for help on using the changeset viewer.