Skip to main content
summaryrefslogtreecommitdiffstats
blob: 38443e0d990d5f02155c19521affc4514898a48d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*******************************************************************************
 * Copyright (c) 2000, 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;

 
import org.eclipse.debug.core.model.IStackFrame;
import org.eclipse.swt.graphics.Image;

/**
 * Default instruction pointer annotation.
 */
public class InstructionPointerAnnotation extends DynamicInstructionPointerAnnotation {
	
	/**
	 * The image for this annotation.
	 */
	private Image fImage;
	
	/**
	 * Constructs an instruction pointer image.
	 * 
	 * @param frame stack frame the instruction pointer is associated with
	 * @param annotationType the type of annotation to display (annotation identifier)
	 * @param text the message to display with the annotation as hover help
	 * @param image the image used to display the annotation
	 */
	public InstructionPointerAnnotation(IStackFrame frame, String annotationType, String text, Image image) {
		super(frame, annotationType, text);
		fImage = image;
	}
		
	/**
	 * Returns this annotation's image.
	 * 
	 * @return image
	 */
	protected Image getImage() {
		return fImage;
	}

}

Back to the top