Changeset 17359 in osm for applications/editors/josm/plugins/usertools/src
- Timestamp:
- 2009-08-30T17:34:52+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/usertools/src/usertools/UserToolsPlugin.java
r14125 r17359 79 79 public void actionPerformed(ActionEvent ev) { 80 80 int dialogIndex = 100; 81 for (int i = 0; i < Main.map.toggleDialogs.getComponentCount(); i++) { 82 83 if (Main.map.toggleDialogs.getComponent(i).getClass() 84 .getSimpleName().equals("UserListDialog")) { 85 86 dialogIndex = i; 87 } 88 } 89 UserListDialog uld = (UserListDialog) Main.map.toggleDialogs.getComponent(dialogIndex); 90 81 UserListDialog uld = Main.map.getToggleDialog(UserListDialog.class); 91 82 uld.setVisible(true); 92 83 } … … 128 119 public static String getSelectedUser(){ 129 120 int dialogIndex = 100; 130 for (int i = 0; i < Main.map.toggleDialogs.getComponentCount(); i++) { 131 132 // System.out.println(Main.map.toggleDialogs.getComponent(i) 133 // .getClass().getSimpleName()); 134 135 if (Main.map.toggleDialogs.getComponent(i).getClass() 136 .getSimpleName().equals("UserListDialog")) { 137 dialogIndex = i; 138 } 139 } 140 UserListDialog uld = (UserListDialog) Main.map.toggleDialogs.getComponent(dialogIndex); 121 122 UserListDialog uld = Main.map.getToggleDialog(UserListDialog.class); 141 123 142 124 //these are hard coded, probably better to search, like above
Note:
See TracChangeset
for help on using the changeset viewer.