KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > views > DebugModelPresentationContext


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.views;
12
13 import org.eclipse.debug.internal.ui.viewers.model.provisional.PresentationContext;
14 import org.eclipse.debug.ui.IDebugModelPresentation;
15
16 /**
17  * A presentation context that has a debug model presentation.
18  *
19  * @since 3.3
20  */

21 public class DebugModelPresentationContext extends PresentationContext {
22
23     private IDebugModelPresentation fPresentation;
24     
25     /**
26      * Constructs a presentation context for the given id using the
27      * specified model presentation.
28      *
29      * @param id context id
30      * @param presentation debug model presentation
31      */

32     public DebugModelPresentationContext(String JavaDoc id, IDebugModelPresentation presentation) {
33         super(id);
34         fPresentation = presentation;
35     }
36     
37     public IDebugModelPresentation getModelPresentation() {
38         return fPresentation;
39     }
40
41 }
42
Popular Tags