Changeset 23166 in osm for applications/editors/josm
- Timestamp:
- 2010-09-14T22:08:03+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
r23162 r23166 1141 1141 it = it.substring(0, i1) + it.substring(i2+1); 1142 1142 } 1143 System.out.println(it + " " + c);1144 1143 if (!c.isEmpty()) 1145 1144 buoy.setLightGroup(c);; -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java
r23162 r23166 525 525 tmp = c.substring(i1, c.length()); 526 526 c = c.substring(0, i1); 527 } 528 if (!getLightGroup().isEmpty()) 527 if (!getLightGroup().isEmpty()) { 528 c = c + "(" + getLightGroup() + ")"; 529 } 530 if (tmp != null) 531 c = c + tmp; 532 } 533 dlg.cbM01Kennung.setSelectedItem(c); 534 if ((dlg.cbM01Kennung.getSelectedIndex() == 0) && !getLightGroup().isEmpty()) { 529 535 c = c + "(" + getLightGroup() + ")"; 530 if (tmp != null) 531 c = c + tmp; 532 dlg.cbM01Kennung.setSelectedItem(c); 536 dlg.cbM01Kennung.setSelectedItem(c); 537 } 533 538 c = c + " " + getLightColour(); 534 539 lp = getLightPeriod(); … … 539 544 dlg.lM01Kennung.setVisible(true); 540 545 dlg.cbM01Kennung.setVisible(true); 541 dlg.lM01Group.setVisible(true); 542 dlg.tfM01Group.setVisible(true); 546 if (((String)dlg.cbM01Kennung.getSelectedItem()).contains("(")) { 547 dlg.tfM01Group.setVisible(false); 548 dlg.lM01Group.setVisible(false); 549 } else { 550 dlg.lM01Group.setVisible(true); 551 dlg.tfM01Group.setVisible(true); 552 } 543 553 dlg.tfM01Group.setText(getLightGroup()); 544 554 dlg.lM01RepeatTime.setVisible(true);
Note:
See TracChangeset
for help on using the changeset viewer.