Changeset 23410 in osm for applications/editors/josm/plugins/toms/src
- Timestamp:
- 2010-09-30T09:36:20+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/toms/src/toms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r23372 r23410 382 382 if (keys.containsKey("seamark:type")) //$NON-NLS-1$ 383 383 type = keys.get("seamark:type"); //$NON-NLS-1$ 384 384 385 385 if (type.equals("buoy_lateral") || type.equals("beacon_lateral")) { //$NON-NLS-1$ //$NON-NLS-2$ 386 386 buoy = new BuoyLat(this, node); … … 833 833 834 834 case SeaMark.UNKNOWN_TYPE: 835 if (!(buoy instanceof BuoyUkn)) 835 if (!(buoy instanceof BuoyUkn)) { 836 buoy = null; 836 837 buoy = new BuoyUkn(dia, Messages.getString("SmpDialogAction.150")); //$NON-NLS-1$ 838 } 837 839 buoy.setBuoyIndex(0); 838 840 break; … … 840 842 case SeaMark.LATERAL: 841 843 if (!(buoy instanceof BuoyLat)) { 844 buoy = null; 842 845 buoy = new BuoyLat(dia, n); 843 846 buoy.setBuoyIndex(0); … … 847 850 case SeaMark.CARDINAL: 848 851 if (!(buoy instanceof BuoyCard)) { 852 buoy = null; 849 853 buoy = new BuoyCard(dia, n); 850 854 buoy.setBuoyIndex(0); … … 854 858 case SeaMark.SAFE_WATER: 855 859 if (!(buoy instanceof BuoySaw)) { 860 buoy = null; 856 861 buoy = new BuoySaw(dia, n); 857 862 } … … 861 866 case SeaMark.ISOLATED_DANGER: 862 867 if (!(buoy instanceof BuoyIsol)) { 868 buoy = null; 863 869 buoy = new BuoyIsol(dia, n); 864 870 } … … 868 874 case SeaMark.SPECIAL_PURPOSE: 869 875 if (!(buoy instanceof BuoySpec)) { 876 buoy = null; 870 877 buoy = new BuoySpec(dia, n); 871 878 } … … 875 882 case SeaMark.LIGHT: 876 883 if (!(buoy instanceof BuoyNota)) { 884 buoy = null; 877 885 buoy = new BuoyNota(dia, n); 878 886 buoy.setBuoyIndex(0); … … 881 889 } 882 890 883 buoy.refreshStyles();884 891 buoy.refreshLights(); 885 892 buoy.setLightColour(); -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyCard.java
r23375 r23410 142 142 } 143 143 144 public void refreshLights() { 144 public void refreshLights() { 145 145 dlg.cbM01Kennung.removeAllItems(); 146 146 dlg.cbM01Kennung.addItem(Messages.getString("SmpDialogAction.212")); //$NON-NLS-1$
Note:
See TracChangeset
for help on using the changeset viewer.