Ignore:
Timestamp:
2009-01-01T18:28:53+01:00 (17 years ago)
Author:
stoecker
Message:

removed tab stop usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified applications/editors/josm/plugins/waypoints/src/WaypointPlugin.java ΒΆ

    r1495 r12778  
    1111
    1212
    13         public WaypointPlugin() {
    14                 JMenuItem waypointItem = new JMenuItem(new WaypointOpenAction());
    15                 int index = findFirstSeparator();
    16                 Main.main.menu.fileMenu.add(waypointItem,index<0 ? 0: index);
    17         }
     13    public WaypointPlugin() {
     14        JMenuItem waypointItem = new JMenuItem(new WaypointOpenAction());
     15        int index = findFirstSeparator();
     16        Main.main.menu.fileMenu.add(waypointItem,index<0 ? 0: index);
     17    }
    1818
    19         private int findFirstSeparator()
    20         {
    21                 Component[] components = Main.main.menu.fileMenu.getMenuComponents();
    22                 for(int count=0; count<components.length; count++)
    23                 {
    24                         if(components[count] instanceof JSeparator)
    25                                 return count;
    26                 }
    27                 return -1;
    28         }
     19    private int findFirstSeparator()
     20    {
     21        Component[] components = Main.main.menu.fileMenu.getMenuComponents();
     22        for(int count=0; count<components.length; count++)
     23        {
     24            if(components[count] instanceof JSeparator)
     25                return count;
     26        }
     27        return -1;
     28    }
    2929}
Note: See TracChangeset for help on using the changeset viewer.