Changeset 21024 in osm for applications/editors


Ignore:
Timestamp:
2010-04-29T18:00:23+02:00 (14 years ago)
Author:
bastik
Message:

'Updating to JOSM 3141'

Location:
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/TagEditorDialog.java

    r20058 r21024  
    3131import org.openstreetmap.josm.data.osm.DataSet;
    3232import org.openstreetmap.josm.data.osm.OsmPrimitive;
    33 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionCache;
     33import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager;
    3434import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList;
    3535import org.openstreetmap.josm.plugins.tageditor.ac.AutoCompletionListViewer;
     
    7777
    7878        /** the cache of auto completion values used by the tag editor */
    79         private AutoCompletionCache acCache = null;
     79        private AutoCompletionManager autocomplete = null;
    8080
    8181        private OKAction okAction = null;
     
    115115                aclViewer = new AutoCompletionListViewer(autoCompletionList);
    116116                tagEditor.setAutoCompletionList(autoCompletionList);
    117                 tagEditor.setAutoCompletionCache(acCache);
    118117                aclViewer.addAutoCompletionListListener(tagEditor);
    119118                tagEditor.addComponentNotStoppingCellEditing(aclViewer);
     
    252251         */
    253252        protected TagEditorDialog() {
    254                 acCache = new AutoCompletionCache();   
    255253                build();
    256254        }
     
    280278                tagEditor.getModel().clearAppliedPresets();
    281279                tagEditor.getModel().initFromJOSMSelection();
    282                 //acCache.initFromJOSMDataset();
     280                autocomplete = Main.main.getEditLayer().data.getAutoCompletionManager();
     281                tagEditor.setAutoCompletionManager(autocomplete);
    283282                getModel().ensureOneTag();
    284283        }
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/editor/TagEditor.java

    r20530 r21024  
    1616
    1717import org.openstreetmap.josm.gui.tagging.TagTable;
    18 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionCache;
     18import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager;
    1919import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList;
    2020import org.openstreetmap.josm.plugins.tageditor.ac.IAutoCompletionListListener;
     
    179179        }
    180180
    181         public void setAutoCompletionCache(AutoCompletionCache acCache) {
    182                 tblTagEditor.setAutoCompletionCache(acCache);
     181        public void setAutoCompletionManager(AutoCompletionManager autocomplete) {
     182                tblTagEditor.setAutoCompletionManager(autocomplete);
    183183        }
    184184
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/editor/TagSpecificationAwareTagCellEditor.java

    r20058 r21024  
    1111import org.openstreetmap.josm.plugins.tageditor.tagspec.TagSpecifications;
    1212
    13 public class TagSpecificationAwareTagCellEditor extends TagCellEditor{
     13public class TagSpecificationAwareTagCellEditor extends TagCellEditor {
    1414        private static final Logger logger = Logger.getLogger(TagCellEditor.class.getName());
    1515
     
    4242                // add the list of keys in the current data set
    4343                //
    44                 acCache.populateWithKeys(autoCompletionList, false /* don't append */);
     44                autocomplete.populateWithKeys(autoCompletionList);
    4545                AutoCompletionContext context = new AutoCompletionContext();
    4646                try {
     
    7777                }
    7878                autoCompletionList.clear();
    79                 acCache.populateWithTagValues(autoCompletionList, forKey, false /* don't append */);
     79                autocomplete.populateWithTagValues(autoCompletionList, forKey);
    8080               
    8181                AutoCompletionContext context = new AutoCompletionContext();
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/preset/ui/TabularPresetSelector.java

    r15319 r21024  
    129129                JPanel pnl = new JPanel();
    130130                pnl.setLayout(new FlowLayout(FlowLayout.LEFT));
    131                 btnApply = new JButton("Apply");
     131                btnApply = new JButton(tr("Apply"));
    132132                pnl.add(btnApply);
    133133                btnApply.addActionListener(
Note: See TracChangeset for help on using the changeset viewer.