Changeset 23410 in osm for applications/editors/josm


Ignore:
Timestamp:
2010-09-30T09:36:20+02:00 (14 years ago)
Author:
malcolmh
Message:

sync

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  
    382382                if (keys.containsKey("seamark:type")) //$NON-NLS-1$
    383383                        type = keys.get("seamark:type"); //$NON-NLS-1$
    384                
     384
    385385                if (type.equals("buoy_lateral") || type.equals("beacon_lateral")) { //$NON-NLS-1$ //$NON-NLS-2$
    386386                        buoy = new BuoyLat(this, node);
     
    833833
    834834                                        case SeaMark.UNKNOWN_TYPE:
    835                                                 if (!(buoy instanceof BuoyUkn))
     835                                                if (!(buoy instanceof BuoyUkn)) {
     836                                                        buoy = null;
    836837                                                        buoy = new BuoyUkn(dia, Messages.getString("SmpDialogAction.150")); //$NON-NLS-1$
     838                                                }
    837839                                                buoy.setBuoyIndex(0);
    838840                                                break;
     
    840842                                        case SeaMark.LATERAL:
    841843                                                if (!(buoy instanceof BuoyLat)) {
     844                                                        buoy = null;
    842845                                                        buoy = new BuoyLat(dia, n);
    843846                                                        buoy.setBuoyIndex(0);
     
    847850                                        case SeaMark.CARDINAL:
    848851                                                if (!(buoy instanceof BuoyCard)) {
     852                                                        buoy = null;
    849853                                                        buoy = new BuoyCard(dia, n);
    850854                                                        buoy.setBuoyIndex(0);
     
    854858                                        case SeaMark.SAFE_WATER:
    855859                                                if (!(buoy instanceof BuoySaw)) {
     860                                                        buoy = null;
    856861                                                        buoy = new BuoySaw(dia, n);
    857862                                                }
     
    861866                                        case SeaMark.ISOLATED_DANGER:
    862867                                                if (!(buoy instanceof BuoyIsol)) {
     868                                                        buoy = null;
    863869                                                        buoy = new BuoyIsol(dia, n);
    864870                                                }
     
    868874                                        case SeaMark.SPECIAL_PURPOSE:
    869875                                                if (!(buoy instanceof BuoySpec)) {
     876                                                        buoy = null;
    870877                                                        buoy = new BuoySpec(dia, n);
    871878                                                }
     
    875882                                        case SeaMark.LIGHT:
    876883                                                if (!(buoy instanceof BuoyNota)) {
     884                                                        buoy = null;
    877885                                                        buoy = new BuoyNota(dia, n);
    878886                                                        buoy.setBuoyIndex(0);
     
    881889                                        }
    882890
    883                                         buoy.refreshStyles();
    884891                                        buoy.refreshLights();
    885892                                        buoy.setLightColour();
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyCard.java

    r23375 r23410  
    142142        }
    143143
    144         public void refreshLights() {
     144                public void refreshLights() {
    145145                dlg.cbM01Kennung.removeAllItems();
    146146                dlg.cbM01Kennung.addItem(Messages.getString("SmpDialogAction.212")); //$NON-NLS-1$
Note: See TracChangeset for help on using the changeset viewer.