Changeset 30145 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java
- Timestamp:
- 2013-12-22T12:27:11+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java
r29535 r30145 243 243 Relation relation = (Relation)relationsData.getValueAt(row, 0); 244 244 if( e.getClickCount() > 1 ) { 245 Main.ma p.mapView.getEditLayer().data.setSelected(relation);245 Main.main.getEditLayer().data.setSelected(relation); 246 246 } 247 247 } … … 487 487 public void mouseClicked( MouseEvent e ) { 488 488 if( e.isControlDown() || !(e.getComponent() instanceof JComboBox ) ) // do not use left click handler on combo box 489 if( SwingUtilities.isLeftMouseButton(e) && chosenRelation.get() != null && Main.ma p.mapView.getEditLayer() != null ) {490 Main.ma p.mapView.getEditLayer().data.setSelected(chosenRelation.get());489 if( SwingUtilities.isLeftMouseButton(e) && chosenRelation.get() != null && Main.main.getEditLayer() != null ) { 490 Main.main.getEditLayer().data.setSelected(chosenRelation.get()); 491 491 } 492 492 }
Note:
See TracChangeset
for help on using the changeset viewer.