Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Edgar2004-11-15 15:52:23 +0000
committerNick Edgar2004-11-15 15:52:23 +0000
commit11bf534c115c428616737f84be710b817115cf72 (patch)
tree5dfabcb48501233085e39455d2747795a0aecea5 /bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSet.java
parentb55b6274efadd9e0f5a5a06309124d1d95e5d58f (diff)
downloadeclipse.platform.ui-11bf534c115c428616737f84be710b817115cf72.tar.gz
eclipse.platform.ui-11bf534c115c428616737f84be710b817115cf72.tar.xz
eclipse.platform.ui-11bf534c115c428616737f84be710b817115cf72.zip
Bug 78623 [WorkingSets] Small improvements to working sets
Diffstat (limited to 'bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSet.java')
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSet.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSet.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSet.java
index 34bd79e9e06..d522f3cc392 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSet.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSet.java
@@ -101,6 +101,20 @@ public class WorkingSet implements IAdaptable, IWorkingSet {
}
/**
+ * {@inheritDoc}
+ */
+ public boolean isEditable() {
+ WorkingSetRegistry registry = WorkbenchPlugin.getDefault().getWorkingSetRegistry();
+ String id= getId();
+ if (id == null)
+ return false;
+ WorkingSetDescriptor descriptor= registry.getWorkingSetDescriptor(id);
+ if (descriptor == null)
+ return false;
+ return descriptor.getPageClassName() != null;
+ }
+
+ /**
* Returns the receiver if the requested type is either IWorkingSet
* or IPersistableElement.
*

Back to the top