Changeset 27761 in osm for applications/editors/josm/plugins/utilsplugin2
- Timestamp:
- 2012-02-15T19:01:41+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin2
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/build.xml
r27751 r27761 30 30 <project name="utilsplugin2" default="dist" basedir="."> 31 31 <!-- enter the SVN commit message --> 32 <property name="commit.message" value="Utilsplugin2: moved SplitObject to ctrl-P"/>32 <property name="commit.message" value="Utilsplugin2: fixing shortcut deprecation"/> 33 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 <property name="plugin.main.version" value="4 847"/>34 <property name="plugin.main.version" value="4937"/> 35 35 <!-- 36 36 ************************************************ -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/AddIntersectionsAction.java
r25898 r27761 29 29 public AddIntersectionsAction() { 30 30 super(tr("Add nodes at intersections"), "addintersect", tr("Add missing nodes at intersections of selected ways."), 31 Shortcut.registerShortcut("tools:addintersect", tr("Tool: {0}", tr("Add nodes at intersections")), KeyEvent.VK_I, Shortcut.GROUP_EDI T, Shortcut.SHIFT_DEFAULT), true);31 Shortcut.registerShortcut("tools:addintersect", tr("Tool: {0}", tr("Add nodes at intersections")), KeyEvent.VK_I, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true); 32 32 putValue("help", ht("/Action/AddIntersections")); 33 33 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/ExtractPointAction.java
r27410 r27761 34 34 tr("Extracts node from a way"), 35 35 Shortcut.registerShortcut("tools:extnode", tr("Tool: {0}","Extract node"), 36 KeyEvent.VK_J, Shortcut.GROUP_ EDIT, KeyEvent.ALT_DOWN_MASK), true);36 KeyEvent.VK_J, Shortcut.GROUP_DIRECT2 ), true); 37 37 putValue("help", ht("/Action/ExtractNode")); 38 38 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/LatLonAction.java
r27443 r27761 31 31 public LatLonAction() { 32 32 super(tr("Lat Lon tool"), "latlon", tr("Create geometry by entering lat lon coordinates for it."), 33 Shortcut.registerShortcut("latlon", tr("Edit: {0}", tr("Lat Lon tool")), KeyEvent.VK_L, Shortcut.GROUP_HOTKEY, 34 Shortcut.SHIFT_DEFAULT), true); 33 Shortcut.registerShortcut("latlon", tr("Edit: {0}", tr("Lat Lon tool")), KeyEvent.VK_L, Shortcut.GROUP_DIRECT3), true); 35 34 putValue("help", ht("/Action/AddNode")); 36 35 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/SymmetryAction.java
r26603 r27761 36 36 super(tr("Symmetry"), "symmetry", tr("Mirror selected nodes and ways."), 37 37 Shortcut.registerShortcut("tools:symmetry", tr("Tool: {0}", tr("Symmetry")), 38 KeyEvent.VK_S, Shortcut.GROUP _EDIT, KeyEvent.SHIFT_DOWN_MASK|KeyEvent.ALT_DOWN_MASK), true);38 KeyEvent.VK_S, Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT2), true); 39 39 putValue("help", ht("/Action/Symmetry")); 40 40 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/UnGlueRelationAction.java
r24236 r27761 43 43 public UnGlueRelationAction() { 44 44 super(tr("UnGlue Relation"), "ungluerelations", tr("Duplicate nodes, ways and relations that are used by multiple relations."), 45 Shortcut.registerShortcut("tools:ungluerelation", tr("Tool: {0}", tr("UnGlue Relations")), KeyEvent.VK_G, Shortcut.GROUP _EDIT,Shortcut.SHIFT_DEFAULT), true);45 Shortcut.registerShortcut("tools:ungluerelation", tr("Tool: {0}", tr("UnGlue Relations")), KeyEvent.VK_G, Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT2 ), true); 46 46 putValue("help", ht("/Action/UnGlueRelation")); 47 47 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/curves/CurveAction.java
r27618 r27761 31 31 super(tr("Circle arc"), "circlearc", tr("Create a circle arc"), 32 32 Shortcut.registerShortcut("tools:createcurve", tr("Tool: {0}", tr("Create a circle arc")), KeyEvent.VK_C, 33 Shortcut.GROUP _EDIT,Shortcut.SHIFT_DEFAULT), true);33 Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true); 34 34 putValue("help", ht("/Action/CreateCircleArc")); 35 35 updatePreferences(); -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/customurl/ChooseURLAction.java
r27426 r27761 29 29 public ChooseURLAction() { 30 30 super(tr("Select custom URL"), "selecturl", tr("Select custom URL"),null,true,true); 31 putValue("toolbar", "action/selectURL");32 31 } 33 32 … … 62 61 } 63 62 final JLabel label1=new JLabel(tr("Please select one of custom URLs (configured in Preferences)")); 64 final JList list1=new JList(names); 63 final JList<String> list1=new JList<String>(names); 65 64 final JTextField editField=new JTextField(); 66 65 final JCheckBox check1=new JCheckBox(tr("Ask every time")); -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/customurl/OpenPageAction.java
r27426 r27761 36 36 tr("Opens specified URL browser"), 37 37 Shortcut.registerShortcut("tools:openurl", tr("Tool: {0}", tr("Open custom URL")), 38 KeyEvent.VK_H, Shortcut.GROUP _EDIT,Shortcut.SHIFT_DEFAULT), true);38 KeyEvent.VK_H, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true); 39 39 putValue("help", ht("/Action/OpenPage")); 40 40 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/AlignWayNodesAction.java
r27564 r27761 23 23 public AlignWayNodesAction() { 24 24 super(TITLE, "dumbutils/alignwaynodes", tr("Align nodes in a way"), 25 Shortcut.registerShortcut("tools:alignwaynodes", tr("Tool: {0}", tr("Align Way Nodes")), KeyEvent.VK_L, Shortcut.GROUP _EDIT,Shortcut.SHIFT_DEFAULT)25 Shortcut.registerShortcut("tools:alignwaynodes", tr("Tool: {0}", tr("Align Way Nodes")), KeyEvent.VK_L, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT) 26 26 , true); 27 27 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/PasteRelationsAction.java
r27564 r27761 21 21 public PasteRelationsAction() { 22 22 super(TITLE, "dumbutils/pasterelations", tr("Paste relation membership from objects in the buffer onto selected object(s)"), 23 Shortcut.registerShortcut("tools:pasterelations", tr("Tool: {0}", tr("Paste Relations")), KeyEvent.VK_V, Shortcut.GROUP _MENU, KeyEvent.ALT_DOWN_MASK | KeyEvent.CTRL_DOWN_MASK), true);23 Shortcut.registerShortcut("tools:pasterelations", tr("Tool: {0}", tr("Paste Relations")), KeyEvent.VK_V, Shortcut.GROUPS_ALT2+Shortcut.GROUP_MENU), true); 24 24 } 25 25 -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/ReplaceGeometryAction.java
r27750 r27761 33 33 public ReplaceGeometryAction() { 34 34 super(TITLE, "dumbutils/replacegeometry", tr("Replace geometry of selected object with a new one"), 35 Shortcut.registerShortcut("tools:replacegeometry", tr("Tool: {0}", tr("Replace Geometry")), KeyEvent.VK_G, Shortcut.GROUP _HOTKEY,Shortcut.SHIFT_DEFAULT)35 Shortcut.registerShortcut("tools:replacegeometry", tr("Tool: {0}", tr("Replace Geometry")), KeyEvent.VK_G, Shortcut.GROUPS_ALT1+Shortcut.GROUP_MENU) 36 36 , true); 37 37 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/TagBufferAction.java
r27564 r27761 24 24 public TagBufferAction() { 25 25 super(TITLE, "dumbutils/tagbuffer", tr("Pastes tags of previously selected object(s)"), 26 Shortcut.registerShortcut("tools:tagbuffer", tr("Tool: {0}", tr("Copy tags from previous selection")), KeyEvent.VK_R, Shortcut.GROUP _EDIT,Shortcut.SHIFT_DEFAULT)26 Shortcut.registerShortcut("tools:tagbuffer", tr("Tool: {0}", tr("Copy tags from previous selection")), KeyEvent.VK_R, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT) 27 27 , true); 28 28 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/dumbutils/TagSourceAction.java
r27564 r27761 24 24 public TagSourceAction() { 25 25 super(TITLE, "dumbutils/sourcetag", tr("Add remembered source tag"), 26 Shortcut.registerShortcut("tools:sourcetag", tr("Tool: {0}", tr("Add Source Tag")), KeyEvent.VK_S, Shortcut.GROUP _MENU, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK)26 Shortcut.registerShortcut("tools:sourcetag", tr("Tool: {0}", tr("Add Source Tag")), KeyEvent.VK_S, Shortcut.GROUPS_ALT2+Shortcut.GROUP_MENU) 27 27 , true); 28 28 source = Main.pref.get("sourcetag.value"); -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/AdjacentWaysAction.java
r26509 r27761 26 26 tr("Adjacent ways will be selected. Nodes will be deselected."), 27 27 Shortcut.registerShortcut("tools:adjways", tr("Tool: {0}","Adjacent ways"), 28 KeyEvent.VK_E, Shortcut.GROUP _EDIT,Shortcut.SHIFT_DEFAULT), true);28 KeyEvent.VK_E, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true); 29 29 putValue("help", ht("/Action/AdjacentWays")); 30 30 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/ConnectedWaysAction.java
r25876 r27761 23 23 super(tr("All connected ways"), "adjwaysall", tr("Select all connected ways"), 24 24 Shortcut.registerShortcut("tools:adjwaysall", tr("Tool: {0}","All connected ways"), 25 KeyEvent.VK_E, Shortcut.GROUP _MENU,Shortcut.SHIFT_DEFAULT), true);25 KeyEvent.VK_E, Shortcut.GROUPS_ALT1+Shortcut.GROUP_MENU), true); 26 26 putValue("help", ht("/Action/SelectConnectedWays")); 27 27 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/IntersectedWaysRecursiveAction.java
r26644 r27761 25 25 super(tr("All intersecting ways"), "intwayall", tr("Select all intersecting ways"), 26 26 Shortcut.registerShortcut("tools:intwayall", tr("Tool: {0}","All intersecting ways"), 27 KeyEvent.VK_I, Shortcut.GROUP _MENU, KeyEvent.CTRL_DOWN_MASK|KeyEvent.ALT_DOWN_MASK), true);27 KeyEvent.VK_I, Shortcut.GROUPS_ALT2+Shortcut.GROUP_MENU), true); 28 28 putValue("help", ht("/Action/SelectAllIntersectingWays")); 29 29 -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/MiddleNodesAction.java
r26049 r27761 27 27 super(tr("Middle nodes"), "midnodes", tr("Select middle nodes"), 28 28 Shortcut.registerShortcut("tools:midnodes", tr("Tool: {0}","Middle nodes"), 29 KeyEvent.VK_E, Shortcut.GROUP _EDIT, KeyEvent.SHIFT_DOWN_MASK|KeyEvent.ALT_DOWN_MASK), true);29 KeyEvent.VK_E, Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT2), true); 30 30 putValue("help", ht("/Action/MiddleNodes")); 31 31 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectAllInsideAction.java
r27318 r27761 29 29 super(tr("All inside [testing]"), "selinside", tr("Select all inside selected polygons"), 30 30 Shortcut.registerShortcut("tools:selinside", tr("Tool: {0}","All inside"), 31 KeyEvent.VK_I, Shortcut.GROUP _EDIT ,KeyEvent.ALT_DOWN_MASK|KeyEvent.SHIFT_DOWN_MASK), true);31 KeyEvent.VK_I, Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT2), true); 32 32 putValue("help", ht("/Action/SelectAllInside")); 33 33 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectBoundaryAction.java
r27318 r27761 36 36 super(tr("Area boundary [testing]"), "selboundary", tr("Select relation or all ways that forms area boundary"), 37 37 Shortcut.registerShortcut("tools:selboundary", tr("Tool: {0}","Area boundary [testing]"), 38 KeyEvent.VK_SLASH, Shortcut.GROUP _EDIT ,Shortcut.SHIFT_DEFAULT), true);38 KeyEvent.VK_SLASH, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true); 39 39 putValue("help", ht("/Action/SelectAreaBoundary")); 40 40 } … … 91 91 if (selectedRelation!=null) { 92 92 int idx = rels.indexOf(selectedRelation); 93 System.out.println("idx="+idx);94 93 // selectedRelation has number idx in active relation list 95 94 if (idx>=0) { -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectHighwayAction.java
r26801 r27761 24 24 super(tr("Select Highway"), "selecthighway", tr("Select highway for the name/ref given"), 25 25 Shortcut.registerShortcut("tools:selecthighway", tr("Tool: {0}","Select Highway"), 26 KeyEvent.VK_W, Shortcut.GROUP _MENU,Shortcut.SHIFT_DEFAULT), true);26 KeyEvent.VK_W, Shortcut.GROUPS_ALT2+Shortcut.GROUP_MENU), true); 27 27 } 28 28 -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectModNodesAction.java
r26494 r27761 28 28 tr("Select last modified nodes"), 29 29 Shortcut.registerShortcut("tools:selmodnodes", tr("Tool: {0}","Select last modified nodes"), 30 KeyEvent.VK_Z, , Shortcut.SHIFT_DEFAULT), true);30 KeyEvent.VK_Z, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true); 31 31 putValue("help", ht("/Action/SelectLastModifiedNodes")); 32 32 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectModWaysAction.java
r26494 r27761 1 1 // License: GPL. Copyright 2011 by Alexei Kasatkin and Martin Ždila 2 2 package utilsplugin2.selection; 3 4 import org.openstreetmap.josm.command.Command;5 import static org.openstreetmap.josm.gui.help.HelpUtil.ht;6 import static org.openstreetmap.josm.tools.I18n.tr;7 3 8 4 import java.awt.event.ActionEvent; … … 13 9 import org.openstreetmap.josm.Main; 14 10 import org.openstreetmap.josm.actions.JosmAction; 15 import org.openstreetmap.josm.data.osm.*; 16 11 import org.openstreetmap.josm.command.Command; 12 import org.openstreetmap.josm.data.osm.Node; 13 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 import org.openstreetmap.josm.data.osm.Way; 15 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 16 import static org.openstreetmap.josm.tools.I18n.tr; 17 17 import org.openstreetmap.josm.tools.Shortcut; 18 18 … … 28 28 tr("Select last modified ways"), 29 29 Shortcut.registerShortcut("tools:selmodways", tr("Tool: {0}","Select last modified ways"), 30 KeyEvent.VK_Z, Shortcut.GROUP_ EDIT, KeyEvent.ALT_MASK), true);30 KeyEvent.VK_Z, Shortcut.GROUP_DIRECT2), true); 31 31 putValue("help", ht("/Action/SelectLastModifiedWays")); 32 32 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectWayNodesAction.java
r25876 r27761 31 31 public SelectWayNodesAction() { 32 32 super(tr("Select Way Nodes"),"selectwaynodes" , tr("Select all nodes of a selected way."), 33 Shortcut.registerShortcut("tools:selectwaynodes", tr("Tool: {0}", tr("Select Way Nodes")), KeyEvent.VK_N, Shortcut.GROUP _MENU,Shortcut.SHIFT_DEFAULT), true);33 Shortcut.registerShortcut("tools:selectwaynodes", tr("Tool: {0}", tr("Select Way Nodes")), KeyEvent.VK_N, Shortcut.GROUPS_ALT1+Shortcut.GROUP_MENU), true); 34 34 putValue("help", ht("/Action/SelectWayNodes")); 35 35 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/UndoSelectionAction.java
r25913 r27761 27 27 tr("Reselect last added object or selection form history"), 28 28 Shortcut.registerShortcut("tools:undoselection", tr("Tool: {0}","Undo selection"), 29 KeyEvent.VK_Z, Shortcut.GROUP _MENU,Shortcut.SHIFT_DEFAULT), true);29 KeyEvent.VK_Z, Shortcut.GROUPS_ALT1+Shortcut.GROUP_MENU), true); 30 30 putValue("help", ht("/Action/UndoSelection")); 31 31 } -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/UnselectNodesAction.java
r27417 r27761 24 24 tr("Removes all nodes from selection"), 25 25 Shortcut.registerShortcut("tools:unsnodes", tr("Tool: {0}","Unselect nodes"), 26 KeyEvent.VK_U, Shortcut.GROUP _EDIT,Shortcut.SHIFT_DEFAULT), true);26 KeyEvent.VK_U, Shortcut.GROUPS_ALT1+Shortcut.GROUP_EDIT), true); 27 27 putValue("help", ht("/Action/UnselectNodes")); 28 28 }
Note:
See TracChangeset
for help on using the changeset viewer.