Ignore:
Timestamp:
30.08.2009 19:07:24 (3 years ago)
Author:
Gubaer
Message:

removed OptionPaneUtil
cleanup of deprecated Layer API
cleanup of deprecated APIs in OsmPrimitive and Way
cleanup of imports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java

    r1990 r2017  
    3232import org.openstreetmap.josm.data.osm.visitor.Visitor; 
    3333import org.openstreetmap.josm.gui.DefaultNameFormatter; 
    34 import org.openstreetmap.josm.gui.OptionPaneUtil; 
    3534import org.openstreetmap.josm.tools.Shortcut; 
    3635 
     
    6665 
    6766        if (!checkSelection(selection)) { 
    68             OptionPaneUtil.showMessageDialog( 
     67            JOptionPane.showMessageDialog( 
    6968                    Main.parent, 
    7069                    tr("The current selection cannot be used for splitting."), 
     
    123122            } 
    124123            if (wayOccurenceCounter.isEmpty()) { 
    125                 OptionPaneUtil.showMessageDialog(Main.parent, 
     124                JOptionPane.showMessageDialog(Main.parent, 
    126125                        trn("The selected node is not in the middle of any way.", 
    127126                                "The selected nodes are not in the middle of any way.", 
     
    135134                if (entry.getValue().equals(selectedNodes.size())) { 
    136135                    if (selectedWay != null) { 
    137                         OptionPaneUtil.showMessageDialog(Main.parent, 
     136                        JOptionPane.showMessageDialog(Main.parent, 
    138137                                trn("There is more than one way using the node you selected. Please select the way also.", 
    139138                                        "There is more than one way using the nodes you selected. Please select the way also.", 
     
    148147 
    149148            if (selectedWay == null) { 
    150                 OptionPaneUtil.showMessageDialog(Main.parent, 
     149                JOptionPane.showMessageDialog(Main.parent, 
    151150                        tr("The selected nodes do not share the same way."), 
    152151                        tr("Warning"), 
     
    163162            } 
    164163            if (!nds.isEmpty()) { 
    165                 OptionPaneUtil.showMessageDialog(Main.parent, 
     164                JOptionPane.showMessageDialog(Main.parent, 
    166165                        trn("The selected way does not contain the selected node.", 
    167166                                "The selected way does not contain all the selected nodes.", 
     
    233232                && !nodeSet.contains(wayChunks.get(0).get(0))) { 
    234233            if (wayChunks.size() == 2) { 
    235                 OptionPaneUtil.showMessageDialog( 
     234                JOptionPane.showMessageDialog( 
    236235                        Main.parent, 
    237236                        tr("You must select two or more nodes to split a circular way."), 
     
    248247        if (wayChunks.size() < 2) { 
    249248            if(wayChunks.get(0).get(0) == wayChunks.get(0).get(wayChunks.get(0).size()-1)) { 
    250                 OptionPaneUtil.showMessageDialog( 
     249                JOptionPane.showMessageDialog( 
    251250                        Main.parent, 
    252251                        tr("You must select two or more nodes to split a circular way."), 
     
    254253                        JOptionPane.WARNING_MESSAGE); 
    255254            } else { 
    256                 OptionPaneUtil.showMessageDialog( 
     255                JOptionPane.showMessageDialog( 
    257256                        Main.parent, 
    258257                        tr("The way cannot be split at the selected nodes. (Hint: Select nodes in the middle of the way.)"), 
     
    342341        } 
    343342        if(warnmerole) { 
    344             OptionPaneUtil.showMessageDialog( 
     343            JOptionPane.showMessageDialog( 
    345344                    Main.parent, 
    346345                    tr("<html>A role based relation membership was copied to all new ways.<br>You should verify this and correct it when necessary.</html>"), 
     
    348347                    JOptionPane.WARNING_MESSAGE); 
    349348        } else if(warnme) { 
    350             OptionPaneUtil.showMessageDialog( 
     349            JOptionPane.showMessageDialog( 
    351350                    Main.parent, 
    352351                    tr("<html>A relation membership was copied to all new ways.<br>You should verify this and correct it when necessary.</html>"), 
Note: See TracChangeset for help on using the changeset viewer.