KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > viewers > PartPresentationContext


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.ui.viewers;
12
13 import org.eclipse.debug.internal.ui.viewers.model.provisional.PresentationContext;
14 import org.eclipse.ui.IWorkbenchPart;
15
16 /**
17  * A presentation context tied to a part.
18  *
19  * @since 3.3
20  */

21 public class PartPresentationContext extends PresentationContext {
22     
23     private IWorkbenchPart fPart;
24
25     /**
26      * Constructs a part presentation context.
27      *
28      * @param part part
29      */

30     public PartPresentationContext(IWorkbenchPart part) {
31         super(part.getSite().getId());
32         fPart = part;
33     }
34     
35     public IWorkbenchPart getPart() {
36         return fPart;
37     }
38
39 }
40
Popular Tags