-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathJavaClassificationTypes.cs
More file actions
72 lines (64 loc) · 2.77 KB
/
Copy pathJavaClassificationTypes.cs
File metadata and controls
72 lines (64 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#pragma warning disable 169 // The field 'fieldname' is never used
namespace Tvl.VisualStudio.Language.Java
{
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Language.StandardClassification;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Utilities;
using Colors = System.Windows.Media.Colors;
public static class JavaClassificationTypes
{
[Export]
[BaseDefinition(PredefinedClassificationTypeNames.Comment)]
[Name(JavaClassificationTypeNames.DocCommentText)]
private static readonly ClassificationTypeDefinition DocCommentText;
[Export]
[BaseDefinition(JavaClassificationTypeNames.DocCommentText)]
[Name(JavaClassificationTypeNames.DocCommentTag)]
private static readonly ClassificationTypeDefinition DocCommentTag;
[Export]
[BaseDefinition(JavaClassificationTypeNames.DocCommentTag)]
[Name(JavaClassificationTypeNames.DocCommentInvalidTag)]
private static readonly ClassificationTypeDefinition DocCommentInvalidTag;
[Export(typeof(EditorFormatDefinition))]
[Name(JavaClassificationTypeNames.DocCommentText + ".format")]
[DisplayName("Java Doc Comment (text)")]
[UserVisible(false)]
[ClassificationType(ClassificationTypeNames = JavaClassificationTypeNames.DocCommentText)]
[Order]
internal class DocCommentTextFormatDefinition : ClassificationFormatDefinition
{
public DocCommentTextFormatDefinition()
{
this.ForegroundColor = Colors.Teal;
}
}
[Export(typeof(EditorFormatDefinition))]
[Name(JavaClassificationTypeNames.DocCommentTag + ".format")]
[DisplayName("Java Doc Comment (tag)")]
[UserVisible(false)]
[ClassificationType(ClassificationTypeNames = JavaClassificationTypeNames.DocCommentTag)]
[Order]
internal class DocCommentTagFormatDefinition : ClassificationFormatDefinition
{
public DocCommentTagFormatDefinition()
{
this.ForegroundColor = Colors.DarkGray;
}
}
[Export(typeof(EditorFormatDefinition))]
[Name(JavaClassificationTypeNames.DocCommentInvalidTag + ".format")]
[DisplayName("Java Doc Comment (invalid tag)")]
[UserVisible(false)]
[ClassificationType(ClassificationTypeNames = JavaClassificationTypeNames.DocCommentInvalidTag)]
[Order]
internal class DocCommentInvalidTagFormatDefinition : ClassificationFormatDefinition
{
public DocCommentInvalidTagFormatDefinition()
{
this.ForegroundColor = Colors.Maroon;
this.IsBold = true;
}
}
}
}