Ignore:
Timestamp:
2010-09-14T17:05:10+02:00 (14 years ago)
Author:
malcolmh
Message:

light parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java

    r23156 r23158  
    520520                                }
    521521
    522                                 c = getLightChar();
     522                                c = LightChar[0];
    523523
    524524                                if (c.contains("+")) {
     
    528528                                }
    529529
    530                                 if (!getLightGroup().isEmpty())
    531                                         c = c + "(" + getLightGroup() + ")";
     530                                if (!LightGroup[0].isEmpty())
     531                                        c = c + "(" + LightGroup[0] + ")";
    532532                                if (tmp != null)
    533533                                        c = c + tmp;
    534534
    535                                 c = c + " " + getLightColour();
    536                                 lp = getLightPeriod();
     535                                c = c + " " + LightColour[0];
     536                                lp = LightPeriod[0];
    537537                                if (!lp.isEmpty())
    538538                                        c = c + " " + lp + "s";
     
    544544                                dlg.lM01Group.setVisible(true);
    545545                                dlg.tfM01Group.setVisible(true);
     546                                dlg.tfM01Group.setText(getLightGroup());
    546547                                dlg.lM01RepeatTime.setVisible(true);
    547548                                dlg.tfM01RepeatTime.setVisible(true);
    548549                                if (isSectored()) {
     550                                        dlg.rbM01Fired1.setSelected(false);
     551                                        dlg.rbM01FiredN.setSelected(true);
    549552                                        if ((getSectorIndex() != 0) && (!LightChar[0].isEmpty()))
    550553                                                dlg.cbM01Kennung.setEnabled(false);
     
    593596                                        }
    594597                                } else {
     598                                        dlg.rbM01FiredN.setSelected(false);
     599                                        dlg.rbM01Fired1.setSelected(true);
    595600                                        dlg.cbM01Kennung.setEnabled(true);
    596601                                        dlg.tfM01Group.setEnabled(true);
Note: See TracChangeset for help on using the changeset viewer.