Changeset 23166 in osm for applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java
- Timestamp:
- 2010-09-14T22:08:03+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.