KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > views > launch > StandardDecoration


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.launch;
12
13 import org.eclipse.debug.core.model.IThread;
14 import org.eclipse.debug.ui.IDebugEditorPresentation;
15 import org.eclipse.ui.IEditorPart;
16
17 /**
18  * A reminder to remove any annotations created by an editor presentation
19  */

20 public class StandardDecoration extends Decoration {
21     
22     private IThread fThread;
23     private IEditorPart fEditor;
24     private IDebugEditorPresentation fPresentation;
25     
26     public StandardDecoration(IDebugEditorPresentation presentation, IEditorPart editorPart, IThread thread) {
27         fThread = thread;
28         fEditor = editorPart;
29         fPresentation = presentation;
30     }
31
32     /* (non-Javadoc)
33      * @see org.eclipse.debug.internal.ui.views.launch.Decoration#remove()
34      */

35     public void remove() {
36         fPresentation.removeAnnotations(fEditor, fThread);
37     }
38
39     /* (non-Javadoc)
40      * @see org.eclipse.debug.internal.ui.views.launch.Decoration#getThread()
41      */

42     public IThread getThread() {
43         return fThread;
44     }
45
46 }
47
Popular Tags