Changeset 23246 in osm for applications/editors/josm/plugins/toms
- Timestamp:
- 2010-09-18T12:03:10+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/toms/src/toms/seamarks/buoys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java
r23240 r23246 178 178 179 179 public void setLightChar(String lightChar) { 180 if (SectorIndex == 0) 180 if (SectorIndex == 0) { 181 181 LightChar = new String[10]; 182 LightChar[SectorIndex] = lightChar; 182 LightChar[0] = lightChar; 183 } else if (LightChar[0].isEmpty()) 184 LightChar[SectorIndex] = lightChar; 183 185 } 184 186 -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyLat.java
r23240 r23246 1074 1074 } 1075 1075 1076 public void setLightColour(String str) {1077 int cat = getBuoyIndex();1078 1079 if (str == null) {1080 return;1081 }1082 1083 switch (cat) {1084 case PORT_HAND:1085 case PREF_PORT_HAND:1086 if (getRegion() == IALA_A) {1087 if (str.equals("red")) { //$NON-NLS-1$1088 setFired(true);1089 super.setLightColour("R"); //$NON-NLS-1$1090 } else {1091 super.setLightColour(""); //$NON-NLS-1$1092 }1093 } else {1094 if (str.equals("green")) { //$NON-NLS-1$1095 setFired(true);1096 super.setLightColour("G"); //$NON-NLS-1$1097 } else {1098 super.setLightColour(""); //$NON-NLS-1$1099 }1100 }1101 break;1102 1103 case STARBOARD_HAND:1104 case PREF_STARBOARD_HAND:1105 if (getRegion() == IALA_A) {1106 if (str.equals("green")) { //$NON-NLS-1$1107 setFired(true);1108 super.setLightColour("G"); //$NON-NLS-1$1109 } else {1110 super.setLightColour(""); //$NON-NLS-1$1111 }1112 } else {1113 if (str.equals("red")) { //$NON-NLS-1$1114 setFired(true);1115 super.setLightColour("R"); //$NON-NLS-1$1116 } else {1117 super.setLightColour(""); //$NON-NLS-1$1118 }1119 }1120 break;1121 default:1122 }1123 }1124 1125 1076 }
Note:
See TracChangeset
for help on using the changeset viewer.