Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/PartPresentationContext.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/PartPresentationContext.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/PartPresentationContext.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/PartPresentationContext.java
new file mode 100644
index 000000000..9ecf2ee7a
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/PartPresentationContext.java
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.debug.internal.ui.viewers;
+
+import org.eclipse.debug.internal.ui.viewers.model.provisional.PresentationContext;
+import org.eclipse.ui.IWorkbenchPart;
+
+/**
+ * A presentation context tied to a part.
+ *
+ * @since 3.3
+ */
+public class PartPresentationContext extends PresentationContext {
+
+ private IWorkbenchPart fPart;
+
+ /**
+ * Constructs a part presentation context.
+ *
+ * @param part part
+ */
+ public PartPresentationContext(IWorkbenchPart part) {
+ super(part.getSite().getId());
+ fPart = part;
+ }
+
+ public IWorkbenchPart getPart() {
+ return fPart;
+ }
+
+}

Back to the top