- Timestamp:
- 2010-01-12T19:30:02+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java
r2719 r2831 147 147 */ 148 148 static public boolean showConfirmationDialog(String preferenceKey, Component parent, Object message, String title, int optionType, int messageType, int trueOption) throws HeadlessException { 149 boolean donotshow = getDialogShowingEnabled(preferenceKey); 150 if (donotshow && (getDialogReturnValue(preferenceKey) >= 0)) 149 if (!getDialogShowingEnabled(preferenceKey) && (getDialogReturnValue(preferenceKey) >= 0)) 151 150 return getDialogReturnValue(preferenceKey) == trueOption; 152 MessagePanel pnl = new MessagePanel( donotshow, message);151 MessagePanel pnl = new MessagePanel(false, message); 153 152 int ret = JOptionPane.showConfirmDialog(parent, pnl, title, optionType, messageType); 154 153 if ((ret >= 0) && !pnl.getDialogShowingEnabled()) {
Note:
See TracChangeset
for help on using the changeset viewer.