Fixed: 1760857 - Avoid refreshing the preview when phpeditor got focus.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / BreakpointImageProvider.java
index 16578e7..b57d14d 100644 (file)
@@ -21,10 +21,11 @@ import org.eclipse.ui.texteditor.MarkerAnnotation;
 
 /**
  * BreakpointImageProvider
+ * 
  * @since 3.0
  */
 public class BreakpointImageProvider implements IAnnotationImageProvider {
-       
+
        private IDebugModelPresentation fPresentation;
 
        /*
@@ -32,12 +33,12 @@ public class BreakpointImageProvider implements IAnnotationImageProvider {
         */
        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;
        }
 
@@ -54,10 +55,10 @@ public class BreakpointImageProvider implements IAnnotationImageProvider {
        public ImageDescriptor getImageDescriptor(String imageDescritporId) {
                return null;
        }
-       
+
        private IDebugModelPresentation getPresentation() {
-               if (fPresentation == null) 
-                       fPresentation= DebugUITools.newDebugModelPresentation();
+               if (fPresentation == null)
+                       fPresentation = DebugUITools.newDebugModelPresentation();
                return fPresentation;
        }
 }