Changeset 30643 in osm for applications


Ignore:
Timestamp:
2014-09-15T03:36:33+02:00 (10 years ago)
Author:
donvip
Message:

[josm_terracer] fix #josm6311 - remember window geometry

Location:
applications/editors/josm/plugins/terracer/src/terracer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/terracer/src/terracer/HouseNumberInputDialog.java

    r30614 r30643  
    3737import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionListItem;
    3838import org.openstreetmap.josm.tools.GBC;
     39import org.openstreetmap.josm.tools.WindowGeometry;
    3940
    4041/**
     
    118119        getRootPane().setDefaultButton(defaultButton);
    119120        pack();
     121        setRememberWindowGeometry(getClass().getName() + ".geometry", WindowGeometry.centerInWindow(Main.parent, getPreferredSize()));
    120122        lo.requestFocusInWindow();
    121123    }
  • applications/editors/josm/plugins/terracer/src/terracer/HouseNumberInputHandler.java

    r30614 r30643  
    213213                dialog.segments.setText(String.valueOf(steps));
    214214                dialog.segments.setEditable(false);
    215 
    216215            }
    217216        }
     
    310309                    }
    311310
    312                     this.dialog.dispose();
     311                    this.dialog.setVisible(false);
    313312                }
    314313            } else if (tr("Cancel").equals(button.getActionCommand())) {
    315                 this.dialog.dispose();
     314                this.dialog.setVisible(false);
    316315            }
    317316        } else {
     
    328327     */
    329328    public Integer stepSize() {
    330         return (dialog.interpolation.getSelectedItem().equals(tr("All"))) ? 1
    331                 : 2;
     329        return (dialog.interpolation.getSelectedItem().equals(tr("All"))) ? 1 : 2;
    332330    }
    333331
Note: See TracChangeset for help on using the changeset viewer.