diff options
author | Sopot Cela | 2012-11-02 09:26:56 +0000 |
---|---|---|
committer | Sopot Cela | 2012-11-02 09:26:56 +0000 |
commit | 4cdd349cb6097e924a56d93c5ce24ad0a7fdc0ac (patch) | |
tree | acf5314176dc45f95539d384d1c03e00b50fc0a0 | |
parent | f6d0c6419addaf3651e395b837d0ba7bcfac6244 (diff) | |
download | org.eclipse.e4.tools-4cdd349cb6097e924a56d93c5ce24ad0a7fdc0ac.tar.gz org.eclipse.e4.tools-4cdd349cb6097e924a56d93c5ce24ad0a7fdc0ac.tar.xz org.eclipse.e4.tools-4cdd349cb6097e924a56d93c5ce24ad0a7fdc0ac.zip |
[Bug 393389] [Tools] Shared elements does not allow to add MPartStackI20121105-0630
3 files changed, 11 insertions, 1 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 160274ce..7439832e 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 @@ -615,4 +615,5 @@ public class Messages { public String ObjectViewer_Script; public String CommandWizard_ShellTitle; + public String VWindowSharedElementsEditor_AddPartStack; }
\ No newline at end of file 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 57b59027..b5c8cd0b 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 @@ -7,6 +7,7 @@ # * # * Contributors: # * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation +# * Sopot Cela <sopotcela@gmail.com> - enhancements # ****************************************************************************** ModelTooling_Common_Up=Up ModelTooling_Common_Down=Down @@ -468,6 +469,7 @@ VWindowSharedElementsEditor_Controls=Controls VWindowSharedElementsEditor_AddPartSashContainer=Part Sash Container VWindowSharedElementsEditor_AddPart=Part VWindowSharedElementsEditor_AddInputPart=Input Part +VWindowSharedElementsEditor_AddPartStack=Part Stack VWindowTrimEditor_TreeLabel=Window Trims VWindowTrimEditor_TreeLabelDescription=Window Trims Bla Bla Bla Bla Bla diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/virtual/VWindowSharedElementsEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/virtual/VWindowSharedElementsEditor.java index 32c985f9..c730ef47 100644 --- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/virtual/VWindowSharedElementsEditor.java +++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/virtual/VWindowSharedElementsEditor.java @@ -85,6 +85,13 @@ public class VWindowSharedElementsEditor extends AbstractComponentEditor { handleAdd(BasicPackageImpl.Literals.INPUT_PART); } }); + + actions.add(new Action(Messages.VWindowSharedElementsEditor_AddPartStack, createImageDescriptor(ResourceProvider.IMG_PartStack)) { + @Override + public void run() { + handleAdd(BasicPackageImpl.Literals.PART_STACK); + } + }); } @Override @@ -213,7 +220,7 @@ public class VWindowSharedElementsEditor extends AbstractComponentEditor { return eclass.getName(); } }); - childrenDropDown.setInput(new EClass[] { BasicPackageImpl.Literals.PART_SASH_CONTAINER, BasicPackageImpl.Literals.PART, BasicPackageImpl.Literals.INPUT_PART }); + childrenDropDown.setInput(new EClass[] { BasicPackageImpl.Literals.PART_SASH_CONTAINER, BasicPackageImpl.Literals.PART, BasicPackageImpl.Literals.INPUT_PART, BasicPackageImpl.Literals.PART_STACK }); childrenDropDown.setSelection(new StructuredSelection(BasicPackageImpl.Literals.PART)); b = new Button(buttonComp, SWT.PUSH | SWT.FLAT); |