Changeset 14125 in osm for applications/editors/josm/plugins/usertools/src
- Timestamp:
- 2009-03-19T09:24:41+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins
- Property svn:ignore deleted
-
applications/editors/josm/plugins/usertools/src/usertools/UserToolsPlugin.java
r13497 r14125 1 1 package usertools; 2 2 3 import static org.openstreetmap.josm.tools.I18n.marktr; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 4 5 … … 7 8 import java.io.UnsupportedEncodingException; 8 9 9 import javax.swing.*; 10 import javax.swing.JMenu; 11 import javax.swing.JMenuItem; 12 import javax.swing.JOptionPane; 13 import javax.swing.JViewport; 14 import javax.swing.JScrollPane; 15 import javax.swing.JTable; 10 16 11 17 import org.openstreetmap.josm.actions.JosmAction; 12 //import org.openstreetmap.josm.actions.search.*;13 18 import org.openstreetmap.josm.actions.search.SearchAction; 14 19 import org.openstreetmap.josm.gui.dialogs.UserListDialog; … … 65 70 MainMenu menu = Main.main.menu; 66 71 67 if (userJMenu == null) { 68 userJMenu = new JMenu(tr("User")); 69 menu.add(userJMenu, KeyEvent.VK_U, "user"); 70 menu.add(userJMenu, 5); 71 } else { 72 if (userJMenu == null) 73 userJMenu = menu.addMenu(marktr("User"), KeyEvent.VK_U, menu.defaultMenuPos); 74 else 72 75 userJMenu.removeAll(); 73 } 76 74 77 JosmAction a = new JosmAction(tr("Show Author Panel"), 75 78 "dialogs/userlist", tr("Show Author Panel"), null, false) { … … 90 93 }; 91 94 a.putValue("toolbar", "usertools_show"); 92 userJMenu .add(new JMenuItem(a));95 menu.add(userJMenu,a); 93 96 94 97 userJMenu.addSeparator(); … … 105 108 }; 106 109 a.putValue("toolbar", "usertools_open"); 107 userJMenu .add(new JMenuItem(a));110 menu.add(userJMenu,a); 108 111 109 112 a = new JosmAction(tr("Select User's Data"), … … 118 121 }; 119 122 a.putValue("toolbar", "usertools_search"); 120 userJMenu .add(new JMenuItem(a));123 menu.add(userJMenu,a); 121 124 122 125 setEnabledAll(false);
Note:
See TracChangeset
for help on using the changeset viewer.