Changeset 8443 in josm for trunk/src/org/openstreetmap/josm/actions/ZoomToAction.java
- Timestamp:
- 2015-06-02T16:40:38+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ZoomToAction.java
r7937 r8443 24 24 25 25 private final OsmPrimitivesTable table; 26 26 27 27 private final String descriptionNominal; 28 28 private final String descriptionInactiveLayer; 29 29 private final String descriptionNoSelection; 30 30 31 31 public ZoomToAction(OsmPrimitivesTable table, String descriptionNominal, String descriptionInactiveLayer, String descriptionNoSelection) { 32 32 CheckParameterUtil.ensureParameterNotNull(table); … … 39 39 updateEnabledState(); 40 40 } 41 41 42 42 public ZoomToAction(MemberTable table) { 43 this(table, 43 this(table, 44 44 tr("Zoom to the object the first selected member refers to"), 45 45 tr("Zooming disabled because layer of this relation is not active"), 46 46 tr("Zooming disabled because there is no selected member")); 47 47 } 48 48 49 49 public ZoomToAction(RelationMemberTable table) { 50 this(table, 50 this(table, 51 51 tr("Zoom to the object the first selected member refers to"), 52 52 tr("Zooming disabled because layer of this relation is not active"), 53 53 tr("Zooming disabled because there is no selected member")); 54 54 } 55 55 56 56 public ZoomToAction(NodeListTable table) { 57 this(table, 57 this(table, 58 58 tr("Zoom to the first selected node"), 59 59 tr("Zooming disabled because layer of this way is not active"), … … 63 63 @Override 64 64 public void actionPerformed(ActionEvent e) { 65 if (! 65 if (!isEnabled()) 66 66 return; 67 67 int[] rows = this.table.getSelectedRows();
Note:
See TracChangeset
for help on using the changeset viewer.