Bug 569419: [Model2Doc] Remove the menu DocumentStructureTemplateEditor from the MenuBar contributed in Papyrus
Change-Id: I450e4d7d530ae9b8afbbf1f8a010fc140ba35798
Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
diff --git a/plugins/integration/org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.ui/src/org/eclipse/papyrus/model2doc/integration/emf/documentstructuretemplate/ui/internal/editor/CustomDocumentStructureTemplateActionBarContributor.java b/plugins/integration/org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.ui/src/org/eclipse/papyrus/model2doc/integration/emf/documentstructuretemplate/ui/internal/editor/CustomDocumentStructureTemplateActionBarContributor.java
index 9eaeb6f..9e10035 100755
--- a/plugins/integration/org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.ui/src/org/eclipse/papyrus/model2doc/integration/emf/documentstructuretemplate/ui/internal/editor/CustomDocumentStructureTemplateActionBarContributor.java
+++ b/plugins/integration/org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.ui/src/org/eclipse/papyrus/model2doc/integration/emf/documentstructuretemplate/ui/internal/editor/CustomDocumentStructureTemplateActionBarContributor.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2019 CEA LIST and others.
+ * Copyright (c) 2019, 2020 CEA LIST and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -10,7 +10,7 @@
*
* Contributors:
* Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - bug 569419
*****************************************************************************/
package org.eclipse.papyrus.model2doc.integration.emf.documentstructuretemplate.ui.internal.editor;
@@ -23,6 +23,7 @@
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.IContributionManager;
+import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.papyrus.model2doc.emf.documentstructuretemplate.presentation.DocumentStructureTemplateActionBarContributor;
@@ -50,6 +51,16 @@
}
/**
+ * @see org.eclipse.papyrus.model2doc.emf.documentstructuretemplate.presentation.DocumentStructureTemplateActionBarContributor#contributeToMenu(org.eclipse.jface.action.IMenuManager)
+ *
+ * @param menuManager
+ */
+ @Override
+ public void contributeToMenu(IMenuManager menuManager) {
+ // avoid to get the main menu see bug 569419
+ }
+
+ /**
*
* @see org.eclipse.papyrus.model2doc.emf.documentstructuretemplate.presentation.DocumentStructureTemplateActionBarContributor#extractSubmenuActions(java.util.Collection)
*