KickJava   Java API By Example, From Geeks To Geeks.

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


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
12 package org.eclipse.debug.internal.ui;
13
14 import org.eclipse.jface.resource.ImageDescriptor;
15 import org.eclipse.jface.text.source.Annotation;
16 import org.eclipse.swt.graphics.Image;
17 import org.eclipse.ui.texteditor.IAnnotationImageProvider;
18
19 public class InstructionPointerImageProvider implements IAnnotationImageProvider {
20
21     /* (non-Javadoc)
22      * @see org.eclipse.ui.texteditor.IAnnotationImageProvider#getManagedImage(org.eclipse.jface.text.source.Annotation)
23      */

24     public Image getManagedImage(Annotation annotation) {
25         return ((InstructionPointerAnnotation)annotation).getImage();
26     }
27
28     /* (non-Javadoc)
29      * @see org.eclipse.ui.texteditor.IAnnotationImageProvider#getImageDescriptorId(org.eclipse.jface.text.source.Annotation)
30      */

31     public String JavaDoc getImageDescriptorId(Annotation annotation) {
32         return null;
33     }
34
35     /* (non-Javadoc)
36      * @see org.eclipse.ui.texteditor.IAnnotationImageProvider#getImageDescriptor(java.lang.String)
37      */

38     public ImageDescriptor getImageDescriptor(String JavaDoc imageDescritporId) {
39         return null;
40     }
41     
42 }
43
Popular Tags