Changeset 4223 in josm
- Timestamp:
- 2011-07-10T22:46:41+02:00 (13 years ago)
- Location:
- trunk
- Files:
-
- 43 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/event/DataSetListener.java
r3210 r4223 34 34 * @param added A collection of newly-visible primitives 35 35 */ 36 void prim tivesAdded(PrimitivesAddedEvent event);36 void primitivesAdded(PrimitivesAddedEvent event); 37 37 38 38 /** … … 42 42 * @param removed A collection of newly-invisible primitives 43 43 */ 44 void prim tivesRemoved(PrimitivesRemovedEvent event);44 void primitivesRemoved(PrimitivesRemovedEvent event); 45 45 46 46 /** -
trunk/src/org/openstreetmap/josm/data/osm/event/DataSetListenerAdapter.java
r3083 r4223 28 28 } 29 29 30 public void prim tivesAdded(PrimitivesAddedEvent event) {30 public void primitivesAdded(PrimitivesAddedEvent event) { 31 31 listener.processDatasetEvent(event); 32 32 } 33 33 34 public void prim tivesRemoved(PrimitivesRemovedEvent event) {34 public void primitivesRemoved(PrimitivesRemovedEvent event) { 35 35 listener.processDatasetEvent(event); 36 36 } -
trunk/src/org/openstreetmap/josm/data/osm/event/PrimitivesAddedEvent.java
r3083 r4223 23 23 @Override 24 24 public void fire(DataSetListener listener) { 25 listener.prim tivesAdded(this);25 listener.primitivesAdded(this); 26 26 } 27 27 -
trunk/src/org/openstreetmap/josm/data/osm/event/PrimitivesRemovedEvent.java
r3083 r4223 23 23 @Override 24 24 public void fire(DataSetListener listener) { 25 listener.prim tivesRemoved(this);25 listener.primitivesRemoved(this); 26 26 } 27 27 -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueResolutionDecision.java
r3083 r4223 223 223 * Applies this resolution to a collection of primitives 224 224 * 225 * @param prim tives the collection of primitives226 * @throws IllegalStateException thrown if this resolution is not resolved yet 227 */ 228 public void applyTo(Collection<? extends OsmPrimitive> prim tives) throws IllegalStateException {229 if (prim tives == null) return;230 for (OsmPrimitive primitive: prim tives) {225 * @param primitives the collection of primitives 226 * @throws IllegalStateException thrown if this resolution is not resolved yet 227 */ 228 public void applyTo(Collection<? extends OsmPrimitive> primitives) throws IllegalStateException { 229 if (primitives == null) return; 230 for (OsmPrimitive primitive: primitives) { 231 231 if (primitive == null) { 232 232 continue; -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterDialog.java
r4072 r4223 275 275 } 276 276 277 public void prim tivesAdded(PrimitivesAddedEvent event) {277 public void primitivesAdded(PrimitivesAddedEvent event) { 278 278 filterModel.executeFilters(event.getPrimitives()); 279 279 } 280 280 281 public void prim tivesRemoved(PrimitivesRemovedEvent event) {281 public void primitivesRemoved(PrimitivesRemovedEvent event) { 282 282 filterModel.executeFilters(); 283 283 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r4221 r4223 831 831 public void wayNodesChanged(WayNodesChangedEvent event) {/* irrelevant in this context */} 832 832 833 public void prim tivesAdded(final PrimitivesAddedEvent event) {833 public void primitivesAdded(final PrimitivesAddedEvent event) { 834 834 model.addRelations(event.getPrimitives()); 835 835 model.updateTitle(); 836 836 } 837 837 838 public void prim tivesRemoved(final PrimitivesRemovedEvent event) {838 public void primitivesRemoved(final PrimitivesRemovedEvent event) { 839 839 model.removeRelations(event.getPrimitives()); 840 840 model.updateTitle(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r4191 r4223 739 739 } 740 740 741 public void prim tivesAdded(PrimitivesAddedEvent event) {/* ignored - handled by SelectionChangeListener */}742 public void prim tivesRemoved(PrimitivesRemovedEvent event) {/* ignored - handled by SelectionChangeListener*/}741 public void primitivesAdded(PrimitivesAddedEvent event) {/* ignored - handled by SelectionChangeListener */} 742 public void primitivesRemoved(PrimitivesRemovedEvent event) {/* ignored - handled by SelectionChangeListener*/} 743 743 } 744 744 -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetsInActiveDataLayerListModel.java
r3083 r4223 36 36 } 37 37 38 public void prim tivesAdded(PrimitivesAddedEvent event) {38 public void primitivesAdded(PrimitivesAddedEvent event) { 39 39 for (OsmPrimitive primitive:event.getPrimitives()) { 40 40 addChangeset(new Changeset(primitive.getChangesetId())); … … 42 42 } 43 43 44 public void prim tivesRemoved(PrimitivesRemovedEvent event) {44 public void primitivesRemoved(PrimitivesRemovedEvent event) { 45 45 for (OsmPrimitive primitive:event.getPrimitives()) { 46 46 removeChangeset(new Changeset(primitive.getChangesetId())); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r4221 r4223 279 279 memberTable.addMouseListener(new MemberTableDblClickAdapter()); 280 280 memberTableModel.addMemberModelListener(memberTable); 281 // setup a cell editor with a small border282 final JTextField cellEditorTextField = new JTextField();283 cellEditorTextField.setBorder(BorderFactory.createEmptyBorder(1,1,1,1));284 cellEditorTextField.addFocusListener(285 new FocusAdapter() {286 @Override public void focusGained(FocusEvent e) {287 cellEditorTextField.selectAll();288 }289 }290 );291 DefaultCellEditor cellEditor = new DefaultCellEditor(cellEditorTextField);292 cellEditor.setClickCountToStart(1);293 memberTable.getColumnModel().getColumn(0).setCellEditor(cellEditor);294 memberTable.setRowHeight(cellEditorTextField.getPreferredSize().height);295 281 296 282 final JScrollPane scrollPane = new JScrollPane(memberTable); … … 361 347 ); 362 348 tfRole.setEnabled(memberTable.getSelectedRowCount() > 0); 349 memberTable.setRowHeight(tfRole.getPreferredSize().height); 363 350 SideButton btnApply = new SideButton(setRoleAction); 364 351 btnApply.setPreferredSize(new Dimension(20,20)); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java
r3928 r4223 107 107 108 108 public void nodeMoved(NodeMovedEvent event) {/* ignore */} 109 public void prim tivesAdded(PrimitivesAddedEvent event) {/* ignore */}110 111 public void prim tivesRemoved(PrimitivesRemovedEvent event) {109 public void primitivesAdded(PrimitivesAddedEvent event) {/* ignore */} 110 111 public void primitivesRemoved(PrimitivesRemovedEvent event) { 112 112 // ignore - the relation in the editor might become out of sync with the relation 113 113 // in the dataset. We will deal with it when the relation editor is closed or -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r4191 r4223 780 780 } 781 781 782 public void prim tivesAdded(PrimitivesAddedEvent event) {782 public void primitivesAdded(PrimitivesAddedEvent event) { 783 783 for (OsmPrimitive p: event.getPrimitives()) { 784 784 if (canShowAsLatest(p)) { … … 788 788 } 789 789 790 public void prim tivesRemoved(PrimitivesRemovedEvent event) {790 public void primitivesRemoved(PrimitivesRemovedEvent event) { 791 791 for (OsmPrimitive p: event.getPrimitives()) { 792 792 if (!p.isNew() && p.getId() == history.getId()) { -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionManager.java
r3479 r4223 282 282 **/ 283 283 284 public void prim tivesAdded(PrimitivesAddedEvent event) {284 public void primitivesAdded(PrimitivesAddedEvent event) { 285 285 if (dirty) 286 286 return; … … 288 288 } 289 289 290 public void prim tivesRemoved(PrimitivesRemovedEvent event) {290 public void primitivesRemoved(PrimitivesRemovedEvent event) { 291 291 dirty = true; 292 292 }
Note:
See TracChangeset
for help on using the changeset viewer.