Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2013-01-13 18:20:56 -0500
committerSopot Cela2013-01-13 18:20:56 -0500
commit0eed0bf660fb379087eb1559430a816f92bc0aa1 (patch)
treeeec774ee731aeadd659be0a0b31b46e5c2cdb33e
parentbdcc8660eff035c7c75f3816500fe03b6b40c5a4 (diff)
downloadorg.eclipse.e4.tools-0eed0bf660fb379087eb1559430a816f92bc0aa1.tar.gz
org.eclipse.e4.tools-0eed0bf660fb379087eb1559430a816f92bc0aa1.tar.xz
org.eclipse.e4.tools-0eed0bf660fb379087eb1559430a816f92bc0aa1.zip
Bug 398033 - Updating the label of a part does not reflect in part stackI20130116-1000I20130115-2200
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/PartStackEditor.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/PartStackEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/PartStackEditor.java
index 45b4aafe..40f22b5a 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/PartStackEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/PartStackEditor.java
@@ -81,6 +81,7 @@ public class PartStackEditor extends AbstractComponentEditor {
@Inject
@Optional
private IProject project;
+ private TableViewer viewer;
@Inject
public PartStackEditor() {
@@ -160,7 +161,8 @@ public class PartStackEditor extends AbstractComponentEditor {
composite.layout(true, true);
}
}
-
+ IEMFListProperty prop = EMFProperties.list(UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN);
+ viewer.setInput(prop.observeDetail(getMaster()));
getMaster().setValue(object);
return composite;
}
@@ -234,7 +236,7 @@ public class PartStackEditor extends AbstractComponentEditor {
new Label(parent, SWT.NONE);
- final TableViewer viewer = new TableViewer(parent);
+ viewer = new TableViewer(parent);
viewer.setContentProvider(new ObservableListContentProvider());
viewer.setLabelProvider(new ComponentLabelProvider(getEditor(), Messages));
GridData gd = new GridData(GridData.FILL, GridData.FILL, true, true, 2, 1);

Back to the top