Changeset 6944 in josm for trunk


Ignore:
Timestamp:
2014-03-29T15:35:44+01:00 (11 years ago)
Author:
Don-vip
Message:

fix #3764 - should fix UI problem in tag correction dialog (cannot reproduce)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/TagCorrector.java

    r6340 r6944  
    3939 * corrections and a dialog is pesented to the user to
    4040 * confirm these changes.
     41 * @param <P> The type of OSM primitive to correct
    4142 */
    42 
    4343public abstract class TagCorrector<P extends OsmPrimitive> {
    4444
    45     public abstract Collection<Command> execute(P primitive, P oldprimitive)
    46     throws UserCancelException;
     45    public abstract Collection<Command> execute(P oldprimitive, P primitive) throws UserCancelException;
    4746
    4847    private String[] applicationOptions = new String[] {
     
    6867            final JMultilineLabel label1 = new JMultilineLabel(description);
    6968            label1.setMaxWidth(600);
    70             p.add(label1, GBC.eop().anchor(GBC.CENTER));
     69            p.add(label1, GBC.eop().anchor(GBC.CENTER).fill(GBC.HORIZONTAL));
    7170
    7271            final JMultilineLabel label2 = new JMultilineLabel(
    7372                    tr("Please select which changes you want to apply."));
    7473            label2.setMaxWidth(600);
    75             p.add(label2, GBC.eop().anchor(GBC.CENTER));
     74            p.add(label2, GBC.eop().anchor(GBC.CENTER).fill(GBC.HORIZONTAL));
    7675
    7776            for (Entry<OsmPrimitive, List<TagCorrection>> entry : tagCorrectionsMap.entrySet()) {
Note: See TracChangeset for help on using the changeset viewer.