Changeset 3351 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-06-28T08:03:42+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
r3338 r3351 30 30 31 31 public class ExtendedDialog extends JDialog { 32 private final boolean disposeOnClose; 32 33 private int result = 0; 33 34 public static final int DialogClosedOtherwise = 0; … … 85 86 */ 86 87 public ExtendedDialog(Component parent, String title, String[] buttonTexts) { 87 super(JOptionPane.getFrameForComponent(parent), title, true); 88 this.parent = parent; 89 bTexts = buttonTexts; 88 this(parent, title, buttonTexts, true, true); 90 89 } 91 90 … … 95 94 public ExtendedDialog(Component parent, String title, String[] buttonTexts, 96 95 boolean modal) { 96 this(parent, title, buttonTexts, modal, true); 97 } 98 99 public ExtendedDialog(Component parent, String title, String[] buttonTexts, 100 boolean modal, boolean disposeOnClose) { 97 101 super(JOptionPane.getFrameForComponent(parent), title, modal); 98 102 this.parent = parent; 99 103 bTexts = buttonTexts; 104 if (disposeOnClose) { 105 setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); 106 } 107 this.disposeOnClose = disposeOnClose; 100 108 } 101 109 … … 342 350 } 343 351 super.setVisible(visible); 352 353 if (!visible && disposeOnClose) { 354 dispose(); 355 } 344 356 } 345 357 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java
r3083 r3351 119 119 "", 120 120 new String[] { tr("Apply Changes"), tr("Cancel")}, 121 false, 121 122 false 122 123 ); -
trunk/src/org/openstreetmap/josm/gui/widgets/ComboBoxHistory.java
r3215 r3351 29 29 30 30 import java.util.ArrayList; 31 import java.util.Collections;32 31 import java.util.Iterator; 33 32 import java.util.List; … … 35 34 import javax.swing.DefaultComboBoxModel; 36 35 37 import org.openstreetmap.josm.gui.tagging.ac. *;36 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionListItem; 38 37 39 38 public class ComboBoxHistory extends DefaultComboBoxModel implements Iterable<AutoCompletionListItem> {
Note:
See TracChangeset
for help on using the changeset viewer.