Changeset 30145 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext
- Timestamp:
- 2013-12-22T12:27:11+01:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/reltoolbox/src/relcontext
- Files:
-
- 6 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 } -
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DownloadChosenRelationAction.java
r25695 r30145 62 62 protected void downloadMembers( Relation rel ) { 63 63 if( !rel.isNew() ) { 64 Main.worker.submit(new DownloadRelationTask(Collections.singletonList(rel), Main.ma p.mapView.getEditLayer()));64 Main.worker.submit(new DownloadRelationTask(Collections.singletonList(rel), Main.main.getEditLayer())); 65 65 } 66 66 } … … 71 71 ret.addAll(rel.getIncompleteMembers()); 72 72 if( ret.isEmpty() ) return; 73 Main.worker.submit(new DownloadRelationMemberTask(Collections.singletonList(rel), ret, Main.ma p.mapView.getEditLayer()));73 Main.worker.submit(new DownloadRelationMemberTask(Collections.singletonList(rel), ret, Main.main.getEditLayer())); 74 74 } 75 75 } -
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DownloadParentsAction.java
r29535 r30145 37 37 this.rel = rel; 38 38 rel.addChosenRelationListener(this); 39 setEnabled(rel.get() != null && Main.ma p.mapView.getEditLayer() != null);39 setEnabled(rel.get() != null && Main.main.getEditLayer() != null); 40 40 } 41 41 … … 46 46 objects.add(relation); 47 47 objects.addAll(relation.getMemberPrimitives()); 48 Main.worker.submit(new DownloadReferrersTask(Main.ma p.mapView.getEditLayer(), objects));48 Main.worker.submit(new DownloadReferrersTask(Main.main.getEditLayer(), objects)); 49 49 } 50 50 51 51 public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) { 52 setEnabled(newRelation != null && Main.ma p.mapView.getEditLayer() != null);52 setEnabled(newRelation != null && Main.main.getEditLayer() != null); 53 53 } 54 54 55 55 protected void downloadMembers( Relation rel ) { 56 56 if( !rel.isNew() ) { 57 Main.worker.submit(new DownloadRelationTask(Collections.singletonList(rel), Main.ma p.mapView.getEditLayer()));57 Main.worker.submit(new DownloadRelationTask(Collections.singletonList(rel), Main.main.getEditLayer())); 58 58 } 59 59 } … … 64 64 ret.addAll(rel.getIncompleteMembers()); 65 65 if( ret.isEmpty() ) return; 66 Main.worker.submit(new DownloadRelationMemberTask(Collections.singletonList(rel), ret, Main.ma p.mapView.getEditLayer()));66 Main.worker.submit(new DownloadRelationMemberTask(Collections.singletonList(rel), ret, Main.main.getEditLayer())); 67 67 } 68 68 } -
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/EditChosenRelationAction.java
r25711 r30145 32 32 Relation relation = rel.get(); 33 33 if( relation == null ) return; 34 RelationEditor.getEditor(Main.ma p.mapView.getEditLayer(), relation, null).setVisible(true);34 RelationEditor.getEditor(Main.main.getEditLayer(), relation, null).setVisible(true); 35 35 } 36 36 -
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectMembersAction.java
r25711 r30145 22 22 23 23 public void actionPerformed( ActionEvent e ) { 24 Main.ma p.mapView.getEditLayer().data.setSelected(rel.get() == null ? null : rel.get().getMemberPrimitives());24 Main.main.getEditLayer().data.setSelected(rel.get() == null ? null : rel.get().getMemberPrimitives()); 25 25 } 26 26 -
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectRelationAction.java
r25711 r30145 23 23 24 24 public void actionPerformed( ActionEvent e ) { 25 Main.ma p.mapView.getEditLayer().data.setSelected(rel.get() == null ? null : rel.get());25 Main.main.getEditLayer().data.setSelected(rel.get() == null ? null : rel.get()); 26 26 } 27 27
Note:
See TracChangeset
for help on using the changeset viewer.