Browse Source

Don't show icon in scrollbar for redundancy issues.

pull/45/merge
Daniel Grunwald 12 years ago
parent
commit
072b3e91b0
  1. 5
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/IssueManager.cs
  2. 2
      src/Main/Base/Project/Dom/IModelCollection.cs

5
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/IssueManager.cs

@ -51,6 +51,7 @@ namespace CSharpBinding.Refactoring @@ -51,6 +51,7 @@ namespace CSharpBinding.Refactoring
if (attributes.Length == 1) {
this.Attribute = (IssueDescriptionAttribute)attributes[0];
defaultSeverity = this.Attribute.Severity;
IsRedundancy = this.Attribute.Category == IssueCategories.Redundancies;
} else {
SD.Log.Warn("Issue provider without attribute: " + ProviderType);
}
@ -59,6 +60,7 @@ namespace CSharpBinding.Refactoring @@ -59,6 +60,7 @@ namespace CSharpBinding.Refactoring
}
public Severity CurrentSeverity { get; set; }
public bool IsRedundancy { get; set; }
public IssueMarker MarkerType {
get { return Attribute != null ? Attribute.IssueMarker : IssueMarker.Underline; }
@ -171,7 +173,8 @@ namespace CSharpBinding.Refactoring @@ -171,7 +173,8 @@ namespace CSharpBinding.Refactoring
Color color = GetColor(this.Severity);
color.A = 186;
marker.MarkerColor = color;
marker.MarkerTypes = TextMarkerTypes.ScrollBarRightTriangle;
if (!Provider.IsRedundancy)
marker.MarkerTypes = TextMarkerTypes.ScrollBarRightTriangle;
switch (Provider.MarkerType) {
case IssueMarker.Underline:
marker.MarkerTypes |= TextMarkerTypes.SquigglyUnderline;

2
src/Main/Base/Project/Dom/IModelCollection.cs

@ -3,8 +3,6 @@ @@ -3,8 +3,6 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
namespace ICSharpCode.SharpDevelop.Dom

Loading…
Cancel
Save