Changeset 6070 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
- Timestamp:
- 2013-07-17T00:01:49+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r6061 r6070 144 144 */ 145 145 protected JCheckBoxMenuItem windowMenuItem; 146 146 147 147 /** 148 148 * The linked preferences class (optional). If set, accessible from the title bar with a dedicated button … … 152 152 /** 153 153 * Constructor 154 * 154 * 155 155 * @param name the name of the dialog 156 156 * @param iconName the name of the icon to be displayed … … 493 493 add(buttonsHide); 494 494 } 495 495 496 496 // show the pref button if applicable 497 497 if (preferenceClass != null) { … … 558 558 return lblTitle.getText(); 559 559 } 560 560 561 561 public class DialogPopupMenu extends JPopupMenu { 562 562 public final JMenu buttonHidingMenu = new JMenu(tr("Side buttons")); … … 589 589 } 590 590 } 591 591 592 592 public void registerMouseListener() { 593 593 addMouseListener(new MouseEventHandler()); 594 594 } 595 595 596 596 class MouseEventHandler extends PopupMenuLauncher { 597 597 public MouseEventHandler() { … … 864 864 buttonsHide.setVisible(false); 865 865 } 866 866 867 867 // Register title bar mouse listener only after buttonActions has been initialized to have a complete popup menu 868 868 titleBar.registerMouseListener(); 869 869 870 870 return data; 871 871 }
Note:
See TracChangeset
for help on using the changeset viewer.