diff options
3 files changed, 12 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.java index 51904493..33ff5157 100644 --- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.java +++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.java @@ -557,6 +557,7 @@ public class Messages { public String VWindowControlEditor_AddPartSashContainer; public String VWindowControlEditor_AddPartStack; public String VWindowControlEditor_AddPart; + public String VWindowControlEditor_AddCompositePart; public String VWindowControlEditor_AddArea; public String VWindowEditor_TreeLabel; diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.properties b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.properties index d0c86500..6b6f1450 100644 --- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.properties +++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.properties @@ -532,6 +532,7 @@ VWindowControlEditor_AddPerspectiveStack=Perspective Stack VWindowControlEditor_AddPartSashContainer=Part Sash Container VWindowControlEditor_AddPartStack=Part Stack VWindowControlEditor_AddPart=Part +VWindowControlEditor_AddCompositePart=Composite Part VWindowControlEditor_AddArea=Area VWindowEditor_TreeLabel=Windows diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/virtual/VSnippetsEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/virtual/VSnippetsEditor.java index 32d68aa8..eb5b43b3 100644 --- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/virtual/VSnippetsEditor.java +++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/virtual/VSnippetsEditor.java @@ -46,8 +46,8 @@ public class VSnippetsEditor extends AbstractComponentEditor<MSnippetContainer> /** Define the classes available to create snippets */ public static final EClass[] SNIPPET_CHILDREN = new EClass[] { AdvancedPackageImpl.Literals.AREA, BasicPackageImpl.Literals.PART, BasicPackageImpl.Literals.PART_SASH_CONTAINER, BasicPackageImpl.Literals.PART_STACK, - AdvancedPackageImpl.Literals.PERSPECTIVE, AdvancedPackageImpl.Literals.PERSPECTIVE_STACK, - MenuPackageImpl.Literals.TRIM_CONTRIBUTION, + BasicPackageImpl.Literals.COMPOSITE_PART, AdvancedPackageImpl.Literals.PERSPECTIVE, + AdvancedPackageImpl.Literals.PERSPECTIVE_STACK, MenuPackageImpl.Literals.TRIM_CONTRIBUTION, BasicPackageImpl.Literals.TRIMMED_WINDOW, BasicPackageImpl.Literals.WINDOW, BasicPackageImpl.Literals.TRIM_BAR }; @@ -82,6 +82,14 @@ public class VSnippetsEditor extends AbstractComponentEditor<MSnippetContainer> } }); + actions.add(new Action(Messages.VWindowControlEditor_AddCompositePart, + createImageDescriptor(ResourceProvider.IMG_PartSashContainer)) { + @Override + public void run() { + handleAdd(BasicPackageImpl.Literals.COMPOSITE_PART); + } + }); + actions.add(new Action(Messages.VWindowControlEditor_AddPartSashContainer, createImageDescriptor(ResourceProvider.IMG_PartSashContainer_vertical)) { @Override |