Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/org.eclipse.papyrus.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillSeparator.java')
-rw-r--r--sandbox/org.eclipse.papyrus.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillSeparator.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/sandbox/org.eclipse.papyrus.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillSeparator.java b/sandbox/org.eclipse.papyrus.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillSeparator.java
new file mode 100644
index 00000000000..d8237a935e6
--- /dev/null
+++ b/sandbox/org.eclipse.papyrus.newchild/src/org/eclipse/papyrus/infra/emf/newchild/menu/FillSeparator.java
@@ -0,0 +1,34 @@
+/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.newchild.menu;
+
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.papyrus.infra.emf.newchild.Separator;
+import org.eclipse.papyrus.infra.emf.newchild.util.MenuHelper;
+
+
+public class FillSeparator implements FillElement {
+
+ protected Separator separator;
+
+ protected FillMenuGroup group;
+
+ public FillSeparator(FillMenuGroup parentGroup, Separator separator) {
+ this.separator = separator;
+ this.group = parentGroup;
+ }
+
+ public void fill(IMenuManager menuManager) {
+ MenuHelper.add(group, menuManager, new org.eclipse.jface.action.Separator());
+ }
+
+}

Back to the top