Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2011-11-07 02:08:47 -0500
committerUwe Stieber2011-11-07 02:08:47 -0500
commit4a87e0aae225d2cb3ec3369322de35ec1684882f (patch)
tree82d267bbe120934c35c583b524bb48377315d3ab
parent34d5a118387d63b60402b86e022c597dc6f7c636 (diff)
downloadorg.eclipse.tcf-4a87e0aae225d2cb3ec3369322de35ec1684882f.tar.gz
org.eclipse.tcf-4a87e0aae225d2cb3ec3369322de35ec1684882f.tar.xz
org.eclipse.tcf-4a87e0aae225d2cb3ec3369322de35ec1684882f.zip
Target Explorer: Fixed working set holder element initialization after session restore
-rw-r--r--target_explorer/plugins/org.eclipse.tm.te.ui.views/src/org/eclipse/tm/te/ui/views/workingsets/pages/TargetWorkingSetPage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tm.te.ui.views/src/org/eclipse/tm/te/ui/views/workingsets/pages/TargetWorkingSetPage.java b/target_explorer/plugins/org.eclipse.tm.te.ui.views/src/org/eclipse/tm/te/ui/views/workingsets/pages/TargetWorkingSetPage.java
index d47b43364..66ddc6e15 100644
--- a/target_explorer/plugins/org.eclipse.tm.te.ui.views/src/org/eclipse/tm/te/ui/views/workingsets/pages/TargetWorkingSetPage.java
+++ b/target_explorer/plugins/org.eclipse.tm.te.ui.views/src/org/eclipse/tm/te/ui/views/workingsets/pages/TargetWorkingSetPage.java
@@ -123,7 +123,7 @@ public class TargetWorkingSetPage extends AbstractWorkingSetWizardPage {
// If the element is null, try to look up the element through the content provider
if (element == null) {
ITreeContentProvider contentProvider = (ITreeContentProvider)tree.getContentProvider();
- for (Object candidate : contentProvider.getElements(ViewRoot.getInstance())) {
+ for (Object candidate : contentProvider.getElements(tree.getInput())) {
if (candidate instanceof IWorkingSetElement && ((IWorkingSetElement)candidate).getElementId().equals(holder.getElementId())) {
holder.setElement((IWorkingSetElement)candidate);
element = holder.getElement();

Back to the top