Changeset 32395 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectRelationAction.java
- Timestamp:
- 2016-06-24T09:10:57+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectRelationAction.java
r30145 r32395 1 // License: GPL. For details, see LICENSE file. 1 2 package relcontext.actions; 2 3 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 4 6 import java.awt.event.ActionEvent; 7 5 8 import javax.swing.AbstractAction; 9 6 10 import org.openstreetmap.josm.Main; 7 11 import org.openstreetmap.josm.data.osm.Relation; 8 12 import org.openstreetmap.josm.tools.ImageProvider; 13 9 14 import relcontext.ChosenRelation; 10 15 import relcontext.ChosenRelationListener; … … 13 18 private ChosenRelation rel; 14 19 15 public SelectRelationAction( ChosenRelation rel) {20 public SelectRelationAction(ChosenRelation rel) { 16 21 super(tr("Select relation")); 17 22 putValue(SHORT_DESCRIPTION, tr("Select relation in main selection.")); … … 22 27 } 23 28 24 public void actionPerformed( ActionEvent e ) { 29 @Override 30 public void actionPerformed(ActionEvent e) { 25 31 Main.main.getEditLayer().data.setSelected(rel.get() == null ? null : rel.get()); 26 32 } 27 33 28 public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) { 34 @Override 35 public void chosenRelationChanged(Relation oldRelation, Relation newRelation) { 29 36 setEnabled(newRelation != null); 30 37 }
Note:
See TracChangeset
for help on using the changeset viewer.