Ignore:
Timestamp:
2009-09-06T23:07:33+02:00 (15 years ago)
Author:
Gubaer
Message:

new: rewrite of CombineWay action
new: conflict resolution dialog for CombineWay, including conflicts for different relation memberships
cleanup: cleanup in OsmReader, reduces memory footprint and reduces parsing time
cleanup: made most of the public fields in OsmPrimitive @deprecated, added accessors and changed the code
cleanup: replaced usages of @deprecated constructors for ExtendedDialog
fixed #3208: Combine ways brokes relation order

WARNING: this changeset touches a lot of code all over the code base. "latest" might become slightly unstable in the next days. Also experience incompatibility issues with plugins in the next few days.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java

    r2008 r2070  
    148148        String msg = "";
    149149        switch(type) {
    150             case NODE: msg= trn("{0} node", "{0} nodes", count, count); break;
    151             case WAY: msg= trn("{0} way", "{0} ways", count, count); break;
    152             case RELATION: msg= trn("{0} relation", "{0} relations", count, count); break;
     150        case NODE: msg= trn("{0} node", "{0} nodes", count, count); break;
     151        case WAY: msg= trn("{0} way", "{0} ways", count, count); break;
     152        case RELATION: msg= trn("{0} relation", "{0} relations", count, count); break;
    153153        }
    154154        return msg;
     
    295295
    296296        public void propertyChange(PropertyChangeEvent evt) {
    297             if (evt.getPropertyName().equals(TagConflictResolverModel.RESOLVED_COMPLETELY_PROP)) {
     297            if (evt.getPropertyName().equals(TagConflictResolverModel.NUM_CONFLICTS_PROP)) {
    298298                updateEnabledState();
    299299            }
     
    324324
    325325    public void propertyChange(PropertyChangeEvent evt) {
    326         if (evt.getPropertyName().equals(TagConflictResolverModel.RESOLVED_COMPLETELY_PROP)) {
     326        if (evt.getPropertyName().equals(TagConflictResolverModel.NUM_CONFLICTS_PROP)) {
    327327            TagConflictResolverModel model = (TagConflictResolverModel)evt.getSource();
    328328            for (int i=0; i < tpResolvers.getTabCount();i++) {
     
    446446                String msg = "";
    447447                switch(type) {
    448                     case NODE: msg = trn("{0} node", "{0} nodes", numPrimitives,numPrimitives); break;
    449                     case WAY: msg = trn("{0} way", "{0} ways", numPrimitives, numPrimitives); break;
    450                     case RELATION: msg = trn("{0} relation", "{0} relations", numPrimitives, numPrimitives); break;
     448                case NODE: msg = trn("{0} node", "{0} nodes", numPrimitives,numPrimitives); break;
     449                case WAY: msg = trn("{0} way", "{0} ways", numPrimitives, numPrimitives); break;
     450                case RELATION: msg = trn("{0} relation", "{0} relations", numPrimitives, numPrimitives); break;
    451451                }
    452452                text = text.equals("") ? msg : text + ", " + msg;
     
    472472                String msg = "";
    473473                switch(type) {
    474                     case NODE: msg = trn("{0} node", "{0} nodes", numPrimitives,numPrimitives); break;
    475                     case WAY: msg = trn("{0} way", "{0} ways", numPrimitives, numPrimitives); break;
    476                     case RELATION: msg = trn("{0} relation", "{0} relations", numPrimitives, numPrimitives); break;
     474                case NODE: msg = trn("{0} node", "{0} nodes", numPrimitives,numPrimitives); break;
     475                case WAY: msg = trn("{0} way", "{0} ways", numPrimitives, numPrimitives); break;
     476                case RELATION: msg = trn("{0} relation", "{0} relations", numPrimitives, numPrimitives); break;
    477477                }
    478478                text = text.equals("") ? msg : text + ", " + msg;
     
    491491
    492492                switch(column) {
    493                     case 0: renderNumTags(info); break;
    494                     case 1: renderFrom(info); break;
    495                     case 2: renderTo(info); break;
     493                case 0: renderNumTags(info); break;
     494                case 1: renderFrom(info); break;
     495                case 2: renderTo(info); break;
    496496                }
    497497            }
Note: See TracChangeset for help on using the changeset viewer.