KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > InstructionPointerAnnotation


1 /*******************************************************************************
2  * Copyright (c) 2000, 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;
12
13  
14 import org.eclipse.debug.core.model.IStackFrame;
15 import org.eclipse.swt.graphics.Image;
16
17 /**
18  * Default instruction pointer annotation.
19  */

20 public class InstructionPointerAnnotation extends DynamicInstructionPointerAnnotation {
21     
22     /**
23      * The image for this annotation.
24      */

25     private Image fImage;
26     
27     /**
28      * Constructs an instruction pointer image.
29      *
30      * @param frame stack frame the instruction pointer is associated with
31      * @param annotationType the type of annotation to display (annotation identifier)
32      * @param text the message to display with the annotation as hover help
33      * @param image the image used to display the annotation
34      */

35     public InstructionPointerAnnotation(IStackFrame frame, String JavaDoc annotationType, String JavaDoc text, Image image) {
36         super(frame, annotationType, text);
37         fImage = image;
38     }
39         
40     /**
41      * Returns this annotation's image.
42      *
43      * @return image
44      */

45     protected Image getImage() {
46         return fImage;
47     }
48
49 }
50
Popular Tags