Ignore:
Timestamp:
2017-09-05T10:46:58+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15182 - see #15229 - remove GUI dependence in NoteData

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/NoteData.java

    r12630 r12734  
    1515import org.openstreetmap.josm.data.notes.NoteComment;
    1616import org.openstreetmap.josm.gui.JosmUserIdentityManager;
    17 import org.openstreetmap.josm.gui.MainApplication;
    18 import org.openstreetmap.josm.gui.MapFrame;
    1917import org.openstreetmap.josm.tools.ListenerList;
    2018import org.openstreetmap.josm.tools.Logging;
     
    10199    public void setSelectedNote(Note note) {
    102100        selectedNote = note;
    103         MapFrame map = MainApplication.getMap();
    104         if (map != null) {
    105             map.noteDialog.selectionChanged();
    106         }
    107101        listeners.fireEvent(l -> l.selectedNoteChanged(this));
    108102    }
     
    236230
    237231    private void dataUpdated() {
    238         if (MainApplication.isDisplayingMapView()) {
    239             MainApplication.getMap().noteDialog.setNotes(getSortedNotes());
    240         }
    241232        listeners.fireEvent(l -> l.noteDataUpdated(this));
    242233    }
Note: See TracChangeset for help on using the changeset viewer.