Project

General

Profile

« Previous | Next » 

Revision 5d5c3c75

Added by Patrick Plitzner about 8 years ago

Structure derivative editor context menu (#5406)

  • fixed context menu bug where some items would only show up every second time (menuManager.setRemoveAllWhenShown(true); //<- was the trick)

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/contextMenu/DerivateViewContextMenu.java
1 1
package eu.etaxonomy.taxeditor.editor.view.derivate.contextMenu;
2 2

  
3 3
import org.eclipse.jface.action.IContributionItem;
4
import org.eclipse.jface.action.Separator;
4 5
import org.eclipse.ui.actions.CompoundContributionItem;
5 6

  
6 7
public class DerivateViewContextMenu extends CompoundContributionItem  {
......
8 9
    @Override
9 10
    protected IContributionItem[] getContributionItems() {
10 11
        IContributionItem[] contributionItems = new IContributionItem[] {
11
                new CreateFieldUnitContextMenu(),
12 12
                new CreateDerivateContextMenu(),
13
                new ListenToSelectionChangeContextMenu(),
13
                new CreateFieldUnitContextMenu(),
14 14
                new SingleReadSequenceContextMenu(),
15
                new Separator(),
16
                new ListenToSelectionChangeContextMenu(),
15 17
        };
16 18
        return contributionItems;
17 19
    }

Also available in: Unified diff