Ticket #5216: multishort.patch
| File multishort.patch, 1.8 KB (added by , 15 years ago) |
|---|
-
src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java
33 33 * 34 34 * New relation with type=multipolygon is created 35 35 * 36 * If one or more of ways is already in relation with type=multipolygon or the 37 * way is not closed, then error is reported and no relation is created 36 * All ways must be either closed, or must form a closed loop along with 37 * some other ways that are to form a multipolygon 38 * Otherwise error is reported and no relation is created 38 39 * 39 40 * The "inner" and "outer" roles are guessed automatically. First, bbox is 40 * calculated for each way. then the largest area is assumed to be outside and 41 * the rest inside. In cases with one "outside" area and several cut-ins, the 41 * calculated for each way (or set of ways forming a loop). 42 * Then the largest area is assumed to be outside and the rest inside. 43 * In cases with one "outside" area and several cut-ins, the 42 44 * guess should be always good ... In more complex (multiple outer areas) or 43 45 * buggy (inner and outer ways intersect) scenarios the result is likely to be 44 46 * wrong. … … 48 50 public CreateMultipolygonAction() { 49 51 super(tr("Create multipolygon"), "multipoly_create", tr("Create multipolygon."), 50 52 Shortcut.registerShortcut("tools:multipoly", tr("Tool: {0}", tr("Create multipolygon")), 51 KeyEvent.VK_ A, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true);53 KeyEvent.VK_M, Shortcut.GROUP_EDIT, KeyEvent.ALT_DOWN_MASK), true); 52 54 } 53 55 /** 54 56 * The action button has been clicked
