Ignore:
Timestamp:
2011-03-23T15:00:51+01:00 (14 years ago)
Author:
zverik
Message:

Find relation button (relcontext plugin)

Location:
applications/editors/josm/plugins/relcontext/src/relcontext
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java

    r25672 r25677  
    161161
    162162        // [+][Multi] [X]Adm [X]Tags [X]1
    163         JPanel bottomLine = new JPanel(new FlowLayout(FlowLayout.LEFT));
    164         bottomLine.add(new JButton(new CreateRelationAction(chosenRelation)));
    165         bottomLine.add(new JButton(new CreateMultipolygonAction(chosenRelation)));
     163        JPanel bottomLine = new JPanel(new GridBagLayout());
     164        bottomLine.add(new JButton(new CreateRelationAction(chosenRelation)), GBC.std());
     165        bottomLine.add(new JButton(new CreateMultipolygonAction(chosenRelation)), GBC.std());
     166        bottomLine.add(Box.createHorizontalGlue(), GBC.std().fill());
     167        bottomLine.add(new JButton(new FindRelationAction(chosenRelation)), GBC.eol());
    166168        rcPanel.add(bottomLine, BorderLayout.SOUTH);
    167169
  • applications/editors/josm/plugins/relcontext/src/relcontext/actions/CreateRelationAction.java

    r25672 r25677  
    99import java.awt.event.ActionListener;
    1010import java.util.Arrays;
    11 import java.util.LinkedList;
    1211import java.util.List;
    1312import javax.swing.Box;
     
    1918import org.openstreetmap.josm.actions.JosmAction;
    2019import org.openstreetmap.josm.command.AddCommand;
    21 import org.openstreetmap.josm.command.Command;
    2220import org.openstreetmap.josm.data.osm.Relation;
    2321import org.openstreetmap.josm.data.osm.RelationMember;
Note: See TracChangeset for help on using the changeset viewer.