Changeset 22828 in osm for applications/editors/josm/plugins/toms/src
- Timestamp:
- 2010-08-28T09:15:57+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r22816 r22828 171 171 String str = Main.pref.get("mappaint.style.sources"); 172 172 if (!str.contains("dev.openseamap.org")) { 173 if (!str.equals("")) str += new String(new char[] {0x1e}); 174 Main.pref.put("mappaint.style.sources", str + "http://dev.openseamap.org/josm/seamark_styles.xml"); 173 if (!str.equals("")) 174 str += new String(new char[] { 0x1e }); 175 Main.pref.put("mappaint.style.sources", str 176 + "http://dev.openseamap.org/josm/seamark_styles.xml"); 175 177 } 176 178 } … … 178 180 public void CloseDialog() { 179 181 onode = null; 180 DataSet.selListeners.remove(SmpListener); 181 // DataSet.removeSelectionListener(SmpListener); 182 DataSet.removeSelectionListener(SmpListener); 182 183 Selection = null; 183 184 … … 225 226 // siehe org.openstreetmap.josm.plugins.osb -> OsbLayer.java 226 227 // Einhängen des Listeners in die Eventqueue von josm 227 DataSet.selListeners.add(SmpListener); 228 // DataSet.addSelectionListener(SmpListener); 228 DataSet.addSelectionListener(SmpListener); 229 229 } 230 230 … … 444 444 PicRebuild(); 445 445 // Deaktivierung des Listeners 446 DataSet.selListeners.remove(SmpListener); 447 // DataSet.removeSelectionListener(SmpListener); 446 DataSet.removeSelectionListener(SmpListener); 448 447 Selection = null; 449 448 … … 817 816 PicRebuild(); 818 817 // Deaktivierung des Listeners 819 DataSet.selListeners.remove(SmpListener); 820 // DataSet.removeSelectionListener(SmpListener); 818 DataSet.removeSelectionListener(SmpListener); 821 819 Selection = null; 822 820 SmpItem.setEnabled(true);
Note:
See TracChangeset
for help on using the changeset viewer.