Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2013-01-21 05:33:55 +0000
committerSergey Prigogin2013-01-22 03:59:01 +0000
commit7b619824e86442c54c3843a08e9239eea06b561b (patch)
treed7783ade350bb8b830c9717a4a0ca6a49461a927
parent5b3ed2f9c1a0b40eb63cb82c9ade3f4f9de68a2e (diff)
downloadorg.eclipse.cdt-7b619824e86442c54c3843a08e9239eea06b561b.tar.gz
org.eclipse.cdt-7b619824e86442c54c3843a08e9239eea06b561b.tar.xz
org.eclipse.cdt-7b619824e86442c54c3843a08e9239eea06b561b.zip
Cosmetics.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/viewsupport/ProblemsLabelDecorator.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/viewsupport/ProblemsLabelDecorator.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/viewsupport/ProblemsLabelDecorator.java
index 9e9bb99d4e3..3785db6d355 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/viewsupport/ProblemsLabelDecorator.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/viewsupport/ProblemsLabelDecorator.java
@@ -41,7 +41,7 @@ import org.eclipse.cdt.internal.ui.util.ImageDescriptorRegistry;
/**
* LabelDecorator that decorates an element's image with error and warning overlays that
* represent the severity of markers attached to the element's underlying resource. To see
- * a problem decoration for a marker, the marker needs to be a subtype of <code>IMarker.PROBLEM</code>.
+ * a problem decoration for a marker, the marker needs to be a subtype of {@code IMarker.PROBLEM}.
* <p>
* Note: Only images for elements in Java projects are currently updated on marker changes.
* </p>
@@ -49,23 +49,22 @@ import org.eclipse.cdt.internal.ui.util.ImageDescriptorRegistry;
* @since 2.0
*/
public class ProblemsLabelDecorator implements ILabelDecorator, ILightweightLabelDecorator {
-
/**
- * This is a special <code>LabelProviderChangedEvent</code> carring additional
- * information whether the event orgins from a maker change.
+ * This is a special <code>LabelProviderChangedEvent</code> carrying additional
+ * information whether the event origins from a maker change.
* <p>
* <code>ProblemsLabelChangedEvent</code>s are only generated by <code>
* ProblemsLabelDecorator</code>s.
* </p>
*/
public static class ProblemsLabelChangedEvent extends LabelProviderChangedEvent {
-
private boolean fMarkerChange;
/**
* Note: This constructor is for internal use only. Clients should not call this constructor.
*/
- public ProblemsLabelChangedEvent(IBaseLabelProvider source, IResource[] changedResource, boolean isMarkerChange) {
+ public ProblemsLabelChangedEvent(IBaseLabelProvider source, IResource[] changedResource,
+ boolean isMarkerChange) {
super(source, changedResource);
fMarkerChange= isMarkerChange;
}
@@ -80,14 +79,13 @@ public class ProblemsLabelDecorator implements ILabelDecorator, ILightweightLabe
public boolean isMarkerChange() {
return fMarkerChange;
}
-
}
private static final int ERRORTICK_WARNING= CElementImageDescriptor.WARNING;
private static final int ERRORTICK_ERROR= CElementImageDescriptor.ERROR;
private ImageDescriptorRegistry fRegistry;
- private boolean fUseNewRegistry= false;
+ private boolean fUseNewRegistry;
private IProblemChangedListener fProblemChangedListener;
private ListenerList fListeners;
@@ -119,7 +117,6 @@ public class ProblemsLabelDecorator implements ILabelDecorator, ILightweightLabe
return fRegistry;
}
-
@Override
public String decorateText(String text, Object element) {
return text;
@@ -175,7 +172,8 @@ public class ProblemsLabelDecorator implements ILabelDecorator, ILightweightLabe
return 0;
}
- private int getErrorTicksFromMarkers(IResource res, int depth, ISourceReference sourceElement) throws CoreException {
+ private int getErrorTicksFromMarkers(IResource res, int depth, ISourceReference sourceElement)
+ throws CoreException {
if (res == null || !res.isAccessible()) {
return 0;
}

Back to the top