Ignore:
Timestamp:
2012-09-07T16:40:13+02:00 (14 years ago)
Author:
larry0ua
Message:

'RelToolbox: refactored relation fixing code, added associatedStreet as a fixable relation'

File:
1 edited

Legend:

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

    r28290 r28693  
    108108        roleBox.setVisible(false);
    109109        enterRoleAction = new EnterRoleAction(); // just for the shortcut
     110        sortAndFixAction = new SortAndFixAction(chosenRelation);
    110111
    111112        // [±][X] relation U [AZ][Down][Edit]
    112113        chosenRelationPanel = new JPanel(new GridBagLayout());
    113         addRemoveMemberAction = new AddRemoveMemberAction(chosenRelation);
     114        addRemoveMemberAction = new AddRemoveMemberAction(chosenRelation, sortAndFixAction);
    114115        chosenRelationPanel.add(new JButton(addRemoveMemberAction), GBC.std());
    115116        chosenRelationPanel.add(sizeButton(new JButton(new ClearChosenRelationAction(chosenRelation)), 32, 0), GBC.std());
     
    118119        chosenRelationPanel.add(chosenRelationComponent, GBC.std().fill().insets(5, 0, 5, 0));
    119120        chosenRelationPanel.add(roleBox, GBC.std().fill().insets(5, 0, 5, 0));
    120         sortAndFixAction = new SortAndFixAction(chosenRelation);
    121121        final JButton sortAndFixButton = (JButton) sizeButton(new JButton(sortAndFixAction), 32, 0);
    122122        chosenRelationPanel.add(sortAndFixButton, GBC.std().fill(GBC.VERTICAL));
Note: See TracChangeset for help on using the changeset viewer.