Changeset 10384 in josm
- Timestamp:
- 2016-06-15T14:58:34+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/IconToggleButton.java
r9795 r10384 12 12 import org.openstreetmap.josm.actions.ExpertToggleAction; 13 13 import org.openstreetmap.josm.actions.ExpertToggleAction.ExpertModeChangeListener; 14 import org.openstreetmap.josm.tools.CheckParameterUtil; 14 15 import org.openstreetmap.josm.tools.Destroyable; 15 16 … … 41 42 public IconToggleButton(Action action, boolean isExpert) { 42 43 super(action); 44 CheckParameterUtil.ensureParameterNotNull(action, "action"); 43 45 this.isExpert = isExpert; 44 46 setText(null); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r10378 r10384 716 716 717 717 protected void rememberGeometry() { 718 if (detachedDialog != null ) {718 if (detachedDialog != null && detachedDialog.isShowing()) { 719 719 new WindowGeometry(detachedDialog).remember(preferencePrefix+".geometry"); 720 720 } -
trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java
r10378 r10384 9 9 import java.awt.GraphicsDevice; 10 10 import java.awt.GraphicsEnvironment; 11 import java.awt.IllegalComponentStateException; 11 12 import java.awt.Insets; 12 13 import java.awt.Point; … … 57 58 * 58 59 * @param window the window 60 * @throws IllegalComponentStateException if the window is not showing on the screen 59 61 */ 60 62 public WindowGeometry(Window window) {
Note:
See TracChangeset
for help on using the changeset viewer.