Changeset 32398 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/EditChosenRelationAction.java
- Timestamp:
- 2016-06-25T11:56:57+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/EditChosenRelationAction.java
r32395 r32398 25 25 26 26 public EditChosenRelationAction(ChosenRelation rel) { 27 super();28 // putValue(NAME, "E");29 27 putValue(SMALL_ICON, ImageProvider.get("dialogs/mappaint", "pencil")); 30 28 putValue(SHORT_DESCRIPTION, tr("Open relation editor for the chosen relation")); … … 37 35 public void actionPerformed(ActionEvent e) { 38 36 Relation relation = rel.get(); 39 if (relation == null 40 RelationEditor.getEditor(Main. main.getEditLayer(), relation, null).setVisible(true);37 if (relation == null) return; 38 RelationEditor.getEditor(Main.getLayerManager().getEditLayer(), relation, null).setVisible(true); 41 39 } 42 40
Note:
See TracChangeset
for help on using the changeset viewer.