Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer.newchild/src/org/eclipse/papyrus/views/modelexplorer/newchild/DynamicNewChild.java13
-rw-r--r--tests/recipes/plugins/infra/org.eclipse.papyrus.infra.newchild.test/TestModel/TestCreateModifyElementCreationModel/TestSampleUML.xmi3
2 files changed, 2 insertions, 14 deletions
diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer.newchild/src/org/eclipse/papyrus/views/modelexplorer/newchild/DynamicNewChild.java b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer.newchild/src/org/eclipse/papyrus/views/modelexplorer/newchild/DynamicNewChild.java
index d0ef4b7a9c4..073a15080d5 100644
--- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer.newchild/src/org/eclipse/papyrus/views/modelexplorer/newchild/DynamicNewChild.java
+++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer.newchild/src/org/eclipse/papyrus/views/modelexplorer/newchild/DynamicNewChild.java
@@ -66,18 +66,7 @@ public class DynamicNewChild extends CompoundContributionItem {
protected IContributionItem[] getContributionItems() {
- int size = creationMenuRegistry.getRootFolder().size();
- IContributionItem[] list = new IContributionItem[size];
-
- IWorkbench wb = PlatformUI.getWorkbench();
- IWorkbenchWindow win = wb.getActiveWorkbenchWindow();
-
- for(int i = 0 ; i< size ; i++){
- list[i] = new CommandContributionItem(new CommandContributionItemParameter(win, "MenuCommandeId_"+i, "CommandeId_"+i, SWT.None));
- }
-
-
- return list;
+ return new IContributionItem[0];
}
public boolean isDynamic(){
diff --git a/tests/recipes/plugins/infra/org.eclipse.papyrus.infra.newchild.test/TestModel/TestCreateModifyElementCreationModel/TestSampleUML.xmi b/tests/recipes/plugins/infra/org.eclipse.papyrus.infra.newchild.test/TestModel/TestCreateModifyElementCreationModel/TestSampleUML.xmi
index 6c09c894f92..2249ced3c53 100644
--- a/tests/recipes/plugins/infra/org.eclipse.papyrus.infra.newchild.test/TestModel/TestCreateModifyElementCreationModel/TestSampleUML.xmi
+++ b/tests/recipes/plugins/infra/org.eclipse.papyrus.infra.newchild.test/TestModel/TestCreateModifyElementCreationModel/TestSampleUML.xmi
@@ -14,8 +14,7 @@
label="Class"
elementTypeIdRef="org.eclipse.papyrus.uml.Class"/>
<menu xsi:type="ElementCreationMenuModel:Folder"
- label="ElementWithFeature"
- icon="">
+ label="ElementWithFeature">
<menu xsi:type="ElementCreationMenuModel:CreationMenu"
label="NestedClass"
icon="platform:/plugin/org.eclipse.papyrus.infra.newchild.test/icon/M.gif"

Back to the top