package net.sourceforge.phpeclipse.phpeditor;
import org.eclipse.core.resources.IMarker;
-
import org.eclipse.debug.ui.DebugUITools;
import org.eclipse.debug.ui.IDebugModelPresentation;
-
-import org.eclipse.swt.graphics.Image;
-
import org.eclipse.jface.resource.ImageDescriptor;
-
import org.eclipse.jface.text.source.Annotation;
-
+import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.texteditor.IAnnotationImageProvider;
import org.eclipse.ui.texteditor.MarkerAnnotation;
/**
* BreakpointImageProvider
+ *
* @since 3.0
*/
public class BreakpointImageProvider implements IAnnotationImageProvider {
-
+
private IDebugModelPresentation fPresentation;
/*
*/
public Image getManagedImage(Annotation annotation) {
if (annotation instanceof MarkerAnnotation) {
- MarkerAnnotation markerAnnotation= (MarkerAnnotation) annotation;
- IMarker marker= markerAnnotation.getMarker();
+ MarkerAnnotation markerAnnotation = (MarkerAnnotation) annotation;
+ IMarker marker = markerAnnotation.getMarker();
if (marker != null && marker.exists())
return getPresentation().getImage(marker);
}
-
+
return null;
}
public ImageDescriptor getImageDescriptor(String imageDescritporId) {
return null;
}
-
+
private IDebugModelPresentation getPresentation() {
- if (fPresentation == null)
- fPresentation= DebugUITools.newDebugModelPresentation();
+ if (fPresentation == null)
+ fPresentation = DebugUITools.newDebugModelPresentation();
return fPresentation;
}
}