Changeset 14027 in josm for trunk/test/unit


Ignore:
Timestamp:
2018-07-12T23:02:02+02:00 (6 years ago)
Author:
michael2402
Message:

See #16388: New mechanism for plugins to register relation editor actions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditorTest.java

    r13489 r14027  
    118118        SelectionTable selectionTable = new SelectionTable(selectionTableModel, memberTableModel);
    119119
    120         LeftButtonToolbar leftButtonToolbar = new LeftButtonToolbar(memberTable, memberTableModel, re);
    121         assertNotNull(leftButtonToolbar.sortBelowButton);
    122 
    123120        AutoCompletingTextField tfRole = GenericRelationEditor.buildRoleTextField(re);
    124121        assertNotNull(tfRole);
     
    127124
    128125        JPanel top = GenericRelationEditor.buildTagEditorPanel(tagEditorPanel);
    129         JPanel bottom = GenericRelationEditor.buildMemberEditorPanel(
    130                 memberTable, memberTableModel, selectionTable, selectionTableModel, re, leftButtonToolbar, tfRole);
    131126        assertNotNull(top);
    132         assertNotNull(bottom);
    133         assertNotNull(GenericRelationEditor.buildSplitPane(top, bottom, re));
    134 
    135127        TagEditorModel tagModel = tagEditorPanel.getModel();
    136128
    137         assertNotNull(GenericRelationEditor.buildOkCancelButtonPanel(
    138                 new OKAction(memberTable, memberTableModel, tagModel, layer, re, tfRole),
    139                 new CancelAction(memberTable, memberTableModel, tagModel, layer, re, tfRole)));
    140         assertNotNull(GenericRelationEditor.buildSelectionControlButtonToolbar(memberTable, memberTableModel, selectionTableModel, re));
    141         assertNotNull(GenericRelationEditor.buildSelectionTablePanel(selectionTable));
    142 
    143         assertNotNull(GenericRelationEditor.buildToolBar(
    144                 new RefreshAction(memberTable, memberTableModel, tagModel, layer, re),
    145                 new ApplyAction(memberTable, memberTableModel, tagModel, layer, re),
    146                 new SelectAction(layer, re),
    147                 new DuplicateRelationAction(memberTableModel, tagModel, layer),
    148                 new DeleteCurrentRelationAction(layer, re)));
    149129    }
    150130}
Note: See TracChangeset for help on using the changeset viewer.