Changeset 23155 in osm for applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySaw.java
- Timestamp:
- 2010-09-14T14:50:20+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySaw.java
r23141 r23155 26 26 27 27 resetMask(); 28 29 dlg.cbM01TypeOfMark.setSelectedIndex(SAFE_WATER); 28 30 29 31 dlg.cbM01StyleOfMark.removeAllItems(); … … 37 39 dlg.lM01StyleOfMark.setVisible(true); 38 40 39 refreshLights();40 41 41 setBuoyIndex(SAFE_WATER); 42 42 setColour(SeaMark.RED_WHITE); … … 74 74 } 75 75 76 if (keys.containsKey("seamark:light:colour")) { //$NON-NLS-1$ 77 str = keys.get("seamark:light:colour"); //$NON-NLS-1$ 78 79 if (keys.containsKey("seamark:light:character")) { //$NON-NLS-1$ 80 setLightGroup(keys); 81 String c = keys.get("seamark:light:character"); //$NON-NLS-1$ 82 if (getLightGroup() != "") //$NON-NLS-1$ 83 c = c + "(" + getLightGroup() + ")"; //$NON-NLS-1$ //$NON-NLS-2$ 84 setLightChar(c); 85 setLightPeriod(keys); 86 } 87 88 if (str.equals("white")) { //$NON-NLS-1$ 89 setFired(true); 90 setLightColour("W"); //$NON-NLS-1$ 91 } 92 } 93 76 if (getStyleIndex() >= dlg.cbM01StyleOfMark.getItemCount()) 77 setStyleIndex(0); 78 dlg.cbM01StyleOfMark.setSelectedIndex(getStyleIndex()); 79 94 80 if (keys.containsKey("seamark:topmark:shape") //$NON-NLS-1$ 95 81 || keys.containsKey("seamark:topmark:colour")) { //$NON-NLS-1$ 96 82 setTopMark(true); 97 83 } 84 85 parseLights(keys); 86 refreshLights(); 98 87 } 99 88 … … 104 93 dlg.cbM01Kennung.addItem("Oc"); //$NON-NLS-1$ 105 94 dlg.cbM01Kennung.addItem("LFl"); //$NON-NLS-1$ 106 dlg.cbM01Kennung.addItem("Mo ()"); //$NON-NLS-1$95 dlg.cbM01Kennung.addItem("Mo"); //$NON-NLS-1$ 107 96 dlg.cbM01Kennung.setSelectedIndex(0); 108 97 }
Note:
See TracChangeset
for help on using the changeset viewer.