Ignore:
Timestamp:
2020-03-01T23:36:02+01:00 (6 years ago)
Author:
simon04
Message:

see #18802 - Add Selector.getBase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java

    r15985 r15986  
    112112    Range getRange();
    113113
     114    String getBase();
     115
    114116    /**
    115117     * Create an "optimized" copy of this selector that omits the base check.
     
    177179            this.right = b;
    178180            this.type = type;
     181        }
     182
     183        @Override
     184        public String getBase() {
     185            // take the base from the rightmost selector
     186            return right.getBase();
    179187        }
    180188
     
    678686
    679687        @Override
     688        public String getBase() {
     689            throw new UnsupportedOperationException();
     690        }
     691
     692        @Override
    680693        public Subpart getSubpart() {
    681             throw new UnsupportedOperationException("Not supported yet.");
     694            throw new UnsupportedOperationException();
    682695        }
    683696
    684697        @Override
    685698        public Range getRange() {
    686             throw new UnsupportedOperationException("Not supported yet.");
     699            throw new UnsupportedOperationException();
    687700        }
    688701
     
    774787        }
    775788
     789        @Override
    776790        public String getBase() {
    777791            return base;
Note: See TracChangeset for help on using the changeset viewer.