Ignore:
Timestamp:
2014-01-10T19:24:34+01:00 (10 years ago)
Author:
Don-vip
Message:

see #9508 - refactor validator preferences + handling of JScrollPane policies ("vertical as needed" / "horizontal as needed" are default policies)

Location:
trunk/src/org/openstreetmap/josm/gui/conflict/pair
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMerger.java

    r6565 r6666  
    1515import java.beans.PropertyChangeListener;
    1616import java.util.Collection;
    17 import java.util.List;
    1817import java.util.Observable;
    1918import java.util.Observer;
     
    8786    protected JScrollPane embeddInScrollPane(JTable table) {
    8887        JScrollPane pane = new JScrollPane(table);
    89         pane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    90         pane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    9188        if (adjustmentSynchronizer == null) {
    9289            adjustmentSynchronizer = new AdjustmentSynchronizer();
     
    480477
    481478        public CopyBeforeCurrentLeftAction() {
    482             super("copybeforecurrentleft", tr("> before"), 
     479            super("copybeforecurrentleft", tr("> before"),
    483480                    tr("Copy my selected elements before the first selected element in the list of merged elements."));
    484481        }
     
    510507
    511508        public CopyAfterCurrentLeftAction() {
    512             super("copyaftercurrentleft", tr("> after"), 
     509            super("copyaftercurrentleft", tr("> after"),
    513510                    tr("Copy my selected elements after the first selected element in the list of merged elements."));
    514511        }
     
    570567
    571568        public CopyBeforeCurrentRightAction() {
    572             super("copybeforecurrentright", tr("< before"), 
     569            super("copybeforecurrentright", tr("< before"),
    573570                    tr("Copy their selected elements before the first selected element in the list of merged elements."));
    574571        }
     
    596593
    597594        public CopyAfterCurrentRightAction() {
    598             super("copyaftercurrentright", tr("< after"), 
     595            super("copyaftercurrentright", tr("< after"),
    599596                    tr("Copy their selected element after the first selected element in the list of merged elements"));
    600597        }
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMerger.java

    r6316 r6666  
    5252    protected JScrollPane embeddInScrollPane(JTable table) {
    5353        JScrollPane pane = new JScrollPane(table);
    54         pane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    55         pane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    56 
    5754        adjustmentSynchronizer.synchronizeAdjustment(pane.getVerticalScrollBar());
    5855        return pane;
Note: See TracChangeset for help on using the changeset viewer.