- added new dynamic context menu for DerivateSearchView
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / derivate / contextMenu / DerivateViewContextMenu.java
index 1871cb626f3ac92990125268c74a9d724a9c415a..b03172f35d895bb0de2fd1efece6f638ec2cd076 100644 (file)
@@ -2,12 +2,8 @@ package eu.etaxonomy.taxeditor.editor.view.derivate.contextMenu;
 
 import org.eclipse.jface.action.IContributionItem;
 import org.eclipse.ui.actions.CompoundContributionItem;
-import org.eclipse.ui.menus.IWorkbenchContribution;
-import org.eclipse.ui.services.IServiceLocator;
 
-public class DerivateViewContextMenu extends CompoundContributionItem implements IWorkbenchContribution {
-
-    private IServiceLocator serviceLocator;
+public class DerivateViewContextMenu extends CompoundContributionItem  {
 
     /* (non-Javadoc)
      * @see org.eclipse.ui.actions.CompoundContributionItem#getContributionItems()
@@ -19,40 +15,6 @@ public class DerivateViewContextMenu extends CompoundContributionItem implements
                 new SingleReadSequenceContextMenu()
         };
         return contributionItems;
-//        Collection<IContributionItem> contributionItems = new ArrayList<IContributionItem>();
-//        // build a couple of command-based contribution parameters
-//        CommandContributionItemParameter pAA = new CommandContributionItemParameter(
-//                serviceLocator,
-//                null,
-//                "eu.etaxonomy.taxeditor.editor.view.derivate.unlinkSingleRead",
-//                SWT.PUSH);
-//        pAA.label = "Remove from Sequence";
-//
-//        // create actual contribution items and add them to the given additions reference
-//        CommandContributionItem itemAA = new CommandContributionItem(pAA);
-//        itemAA.setVisible(true);
-//        contributionItems.add(itemAA);
-//        IContributionItem[] contributionItemsArray = new IContributionItem[contributionItems.size()];
-//        return contributionItems.toArray(contributionItemsArray);
-    }
-
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.menus.IWorkbenchContribution#initialize(org.eclipse.ui.services.IServiceLocator)
-     */
-    @Override
-    public void initialize(IServiceLocator serviceLocator) {
-        this.serviceLocator = serviceLocator;
-
     }
 
-    /* (non-Javadoc)
-     * @see org.eclipse.ui.actions.CompoundContributionItem#dispose()
-     */
-    @Override
-    public void dispose() {
-        super.dispose();
-        this.serviceLocator = null;
-    }
-
-
 }