Changeset 1935 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2009-08-08T15:59:57+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JosmAction.java
r1820 r1935 56 56 * Use this super constructor to setup your action. It takes 5 parameters: 57 57 * 58 * name -the action's text as displayed on the menu (if it is added to a menu)59 * iconName -the filename of the icon to use60 * tooltip -a longer description of the action that will be displayed in the tooltip. Please note61 * that html is not supported for menu action on some platforms 62 * shortcut -a ready-created shortcut object or null if you don't want a shortcut. But you always63 * do want a shortcut, remember you can alway register it with group=none, so you 64 * won't be assigned a sh urtcut unless the user configures one. If you pass null here,58 * @param name the action's text as displayed on the menu (if it is added to a menu) 59 * @param iconName the filename of the icon to use 60 * @param tooltip a longer description of the action that will be displayed in the tooltip. Please note 61 * that html is not supported for menu actions on some platforms. 62 * @param shortcut a ready-created shortcut object or null if you don't want a shortcut. But you always 63 * do want a shortcut, remember you can always register it with group=none, so you 64 * won't be assigned a shortcut unless the user configures one. If you pass null here, 65 65 * the user CANNOT configure a shortcut for your action. 66 * register -register this action for the toolbar preferences?66 * @param register register this action for the toolbar preferences? 67 67 */ 68 68 public JosmAction(String name, String iconName, String tooltip, Shortcut shortcut, boolean register) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r1865 r1935 102 102 if(!Main.map.mapView.isActiveLayerVisible()) 103 103 return; 104 105 // request focus in order to enable the expected keyboard shortcuts 106 // 107 Main.map.mapView.requestFocus(); 108 104 109 boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0; 105 110 boolean shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0; -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r1912 r1935 307 307 if(!Main.map.mapView.isActiveLayerDrawable()) 308 308 return; 309 // request focus in order to enable the expected keyboard shortcuts 310 // 311 Main.map.mapView.requestFocus(); 309 312 310 313 if(e.getClickCount() > 1 && mousePos != null && mousePos.equals(oldMousePos)) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r1862 r1935 351 351 if(!Main.map.mapView.isActiveLayerVisible()) 352 352 return; 353 // request focus in order to enable the expected keyboard shortcuts 354 // 355 Main.map.mapView.requestFocus(); 353 356 354 357 cancelDrawMode = false;
Note:
See TracChangeset
for help on using the changeset viewer.