Changeset 3969 in josm
- Timestamp:
- 2011-03-09T20:10:10+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DuplicateAction.java
r2323 r3969 9 9 import java.awt.event.KeyEvent; 10 10 import java.util.Collection; 11 import org.openstreetmap.josm.Main; 11 12 12 13 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 24 25 25 26 public void actionPerformed(ActionEvent e) { 26 new PasteAction().pasteData(new PrimitiveDeepCopy(getCurrentDataSet().getSelected()), getEditLayer(), e);27 Main.main.menu.paste.pasteData(new PrimitiveDeepCopy(getCurrentDataSet().getSelected()), getEditLayer(), e); 27 28 } 28 29 -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r3954 r3969 124 124 public final RedoAction redo = new RedoAction(); 125 125 public final JosmAction copy = new CopyAction(); 126 public final JosmAction paste = new PasteAction();126 public final PasteAction paste = new PasteAction(); 127 127 public final JosmAction pasteTags = new PasteTagsAction(); 128 128 public final JosmAction duplicate = new DuplicateAction(); … … 133 133 public final JosmAction selectAll = new SelectAllAction(); 134 134 public final JosmAction unselectAll = new UnselectAllAction(); 135 /* crashes when loading data, if using JosmAction for search */136 135 public final JosmAction search = new SearchAction(); 137 136 public final JosmAction preferences = new PreferencesAction(); -
trunk/src/org/openstreetmap/josm/gui/mappaint/MultiCascade.java
r3893 r3969 38 38 // Everything that is not on the default layer is assumed to 39 39 // be a modifier. Can be overridden in style definition. 40 if (!layer.equals("default") ) {40 if (!layer.equals("default") && !layer.equals("*")) { 41 41 c.put("modifier", true); 42 42 } … … 59 59 if (c == null) { 60 60 c = new Cascade(); 61 if (!layer.equals("default") ) {61 if (!layer.equals("default") && !layer.equals("*")) { 62 62 c.put("modifier", true); 63 63 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/NodeElemStyle.java
r3968 r3969 126 126 MultiCascade mc = new MultiCascade(); 127 127 Cascade c = mc.getOrCreateCascade("default"); 128 c.put("text", "auto");128 c.put("text", Keyword.AUTO); 129 129 SIMPLE_NODE_ELEMSTYLE = create(new Environment(null, mc, "default", null), true); 130 130 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r3902 r3969 160 160 } 161 161 } 162 } else { 163 env.layer = sub; 164 for (Instruction i : r.declaration) { 165 i.execute(env); 166 } 162 } 163 env.layer = sub; 164 for (Instruction i : r.declaration) { 165 i.execute(env); 167 166 } 168 167 }
Note:
See TracChangeset
for help on using the changeset viewer.