Changeset 33579 in osm for applications/editors/josm/plugins/tageditor
- Timestamp:
- 2017-08-27T22:22:31+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/tageditor
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tageditor/build.xml
r32680 r33579 2 2 <project name="tageditor" default="dist" basedir="."> 3 3 <property name="commit.message" value="Tageditor: help shortcut parser, rebuild"/> 4 <property name="plugin.main.version" value="1 0580"/>4 <property name="plugin.main.version" value="12678"/> 5 5 6 6 <property name="plugin.author" value="Karl Guggisberg"/> -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/TagEditorDialog.java
r33016 r33579 31 31 import org.openstreetmap.josm.data.osm.OsmPrimitive; 32 32 import org.openstreetmap.josm.data.osm.Tag; 33 import org.openstreetmap.josm.gui.MainApplication; 33 34 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList; 34 35 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager; 35 36 import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset; 37 import org.openstreetmap.josm.gui.util.WindowGeometry; 36 38 import org.openstreetmap.josm.plugins.tageditor.ac.AutoCompletionListViewer; 37 39 import org.openstreetmap.josm.plugins.tageditor.editor.TagEditor; … … 42 44 import org.openstreetmap.josm.plugins.tageditor.tagspec.ui.TabularTagSelector; 43 45 import org.openstreetmap.josm.tools.ImageProvider; 44 import org.openstreetmap.josm.tools.WindowGeometry;45 46 46 47 /** … … 282 283 tagEditor.getModel().clearAppliedPresets(); 283 284 tagEditor.getModel().initFromJOSMSelection(); 284 autocomplete = Main .getLayerManager().getEditLayer().data.getAutoCompletionManager();285 autocomplete = MainApplication.getLayerManager().getEditLayer().data.getAutoCompletionManager(); 285 286 tagEditor.setAutoCompletionManager(autocomplete); 286 287 getModel().ensureOneTag(); … … 319 320 setVisible(false); 320 321 tagEditor.getModel().updateJOSMSelection(); 321 DataSet ds = Main .getLayerManager().getEditDataSet();322 DataSet ds = MainApplication.getLayerManager().getEditDataSet(); 322 323 ds.fireSelectionChanged(); 323 324 Main.parent.repaint(); // repaint all - drawing could have been changed -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/TagEditorPlugin.java
r30488 r33579 2 2 package org.openstreetmap.josm.plugins.tageditor; 3 3 4 import org.openstreetmap.josm. Main;4 import org.openstreetmap.josm.gui.MainApplication; 5 5 import org.openstreetmap.josm.gui.MainMenu; 6 6 import org.openstreetmap.josm.plugins.Plugin; … … 9 9 public class TagEditorPlugin extends Plugin { 10 10 LaunchAction action; 11 11 12 12 /** 13 * constructor 13 * constructor 14 14 */ 15 15 public TagEditorPlugin(PluginInformation info) { 16 16 super(info); 17 17 action = new LaunchAction(); 18 MainMenu.add(Main .main.menu.editMenu, action);18 MainMenu.add(MainApplication.getMenu().editMenu, action); 19 19 } 20 20 } -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/ac/AutoCompletionContext.java
r32508 r33579 2 2 package org.openstreetmap.josm.plugins.tageditor.ac; 3 3 4 import org.openstreetmap.josm.Main;5 4 import org.openstreetmap.josm.data.osm.DataSet; 5 import org.openstreetmap.josm.gui.MainApplication; 6 6 7 7 public class AutoCompletionContext { … … 16 16 17 17 public void initFromJOSMSelection() { 18 DataSet ds = Main .getLayerManager().getEditDataSet();18 DataSet ds = MainApplication.getLayerManager().getEditDataSet(); 19 19 selectionIncludesNodes = !ds.getSelectedNodes().isEmpty(); 20 20 selectionIncludesWays = !ds.getSelectedWays().isEmpty(); -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/editor/TagEditorModel.java
r33016 r33579 10 10 import javax.swing.DefaultListSelectionModel; 11 11 12 import org.openstreetmap.josm.Main;13 12 import org.openstreetmap.josm.command.Command; 14 13 import org.openstreetmap.josm.command.SequenceCommand; 15 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; 16 15 import org.openstreetmap.josm.data.osm.Tag; 16 import org.openstreetmap.josm.gui.MainApplication; 17 17 import org.openstreetmap.josm.gui.tagging.TagModel; 18 18 import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset; … … 147 147 public void updateJOSMSelection() { 148 148 ArrayList<Command> commands = new ArrayList<>(); 149 Collection<OsmPrimitive> selection = Main .getLayerManager().getEditDataSet().getSelected();149 Collection<OsmPrimitive> selection = MainApplication.getLayerManager().getEditDataSet().getSelected(); 150 150 if (selection == null) 151 151 return; … … 167 167 168 168 // executes the commands and adds them to the undo/redo chains 169 Main .main.undoRedo.add(command);169 MainApplication.undoRedo.add(command); 170 170 } 171 171 … … 174 174 */ 175 175 public void initFromJOSMSelection() { 176 Collection<OsmPrimitive> selection = Main .getLayerManager().getEditDataSet().getSelected();176 Collection<OsmPrimitive> selection = MainApplication.getLayerManager().getEditDataSet().getSelected(); 177 177 clear(); 178 178 for (OsmPrimitive element : selection) {
Note:
See TracChangeset
for help on using the changeset viewer.