Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2012-11-02 05:26:56 -0400
committerSopot Cela2012-11-02 05:26:56 -0400
commit4cdd349cb6097e924a56d93c5ce24ad0a7fdc0ac (patch)
treeacf5314176dc45f95539d384d1c03e00b50fc0a0
parentf6d0c6419addaf3651e395b837d0ba7bcfac6244 (diff)
downloadorg.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
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.java1
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/Messages.properties2
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/virtual/VWindowSharedElementsEditor.java9
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);

Back to the top