Dump kernel rewritten to support localization

master
Wizard Atman 11 years ago
parent 029d9e8874
commit 40c913da65

@ -14,374 +14,374 @@ import java.util.HashMap;
*/ */
public class ColorTheme { public class ColorTheme {
// EDITOR THEME //// EDITOR THEME
//
// <editor-fold desc="annotations" defaultstate="collapsed"> //// <editor-fold desc="annotations" defaultstate="collapsed">
private static final AttributeSetConfigured [] annotations = { //private static final AttributeSetConfigured [] annotations = {
new AttributeSetConfigured ("Multiple Enabled and Disabled Breakpoints", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), null, null, null), // new AttributeSetConfigured ("Multiple Enabled and Disabled Breakpoints", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Program Counter of threads with a Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Program Counter of threads with a Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Stopwatch Profiling Point", new Color (180, 228, 252, 255), null, null, true, true, false, null, new Color (180, 228, 252, 255), null, null, null), // new AttributeSetConfigured ("Stopwatch Profiling Point", new Color (180, 228, 252, 255), null, null, true, true, false, null, new Color (180, 228, 252, 255), null, null, null),
new AttributeSetConfigured ("Current Program Counter and other thread", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Current Program Counter and other thread", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Deactivated Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Deactivated Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Current Ant Target + Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Current Ant Target + Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Field Breakpoint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Field Breakpoint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Deactivated Class Breakpoint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Deactivated Class Breakpoint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Disabled Method Breakpoint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Disabled Method Breakpoint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Warning", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Warning", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Mercurial Annotation", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Mercurial Annotation", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Reset Results Profiling Point", new Color (180, 228, 252, 255), null, null, true, true, false, null, new Color (180, 228, 252, 255), null, null, null), // new AttributeSetConfigured ("Reset Results Profiling Point", new Color (180, 228, 252, 255), null, null, true, true, false, null, new Color (180, 228, 252, 255), null, null, null),
new AttributeSetConfigured ("Fixable Hint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Fixable Hint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Current Program Counter", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Current Program Counter", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Has Implementations", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Has Implementations", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Deactivated Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Deactivated Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Conditional Breakpoint", new Color (255, 200, 0, 255), null, null, true, true, false, null, new Color (255, 200, 0, 255), null, null, null), // new AttributeSetConfigured ("Conditional Breakpoint", new Color (255, 200, 0, 255), null, null, true, true, false, null, new Color (255, 200, 0, 255), null, null, null),
new AttributeSetConfigured ("Method Breakpoint", new Color (255, 200, 0, 255), null, null, true, true, false, null, new Color (255, 200, 0, 255), null, null, null), // new AttributeSetConfigured ("Method Breakpoint", new Color (255, 200, 0, 255), null, null, true, true, false, null, new Color (255, 200, 0, 255), null, null, null),
new AttributeSetConfigured ("Program Counter of threads with a Broken Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter of threads with a Broken Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Deactivated Method Breakpoint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Deactivated Method Breakpoint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Program Counter of threads with a Breakpoint", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), null, null, null), // new AttributeSetConfigured ("Program Counter of threads with a Breakpoint", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and Multiple Disabled Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and Multiple Disabled Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Current Program Counter In Expression + Breakpoint", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null), // new AttributeSetConfigured ("Current Program Counter In Expression + Breakpoint", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null),
new AttributeSetConfigured ("Disabled Take Snapshot Profiling Point", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Disabled Take Snapshot Profiling Point", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Overrides and is overridden", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Overrides and is overridden", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Disabled Class Breakpoint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Disabled Class Breakpoint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Specializes Template Annotation of Overrides and/or is overridden", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Specializes Template Annotation of Overrides and/or is overridden", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Breakpoint", new Color (252, 157, 159, 255), null, null, true, true, false, null, new Color (252, 157, 159, 255), null, null, null), // new AttributeSetConfigured ("Breakpoint", new Color (252, 157, 159, 255), null, null, true, true, false, null, new Color (252, 157, 159, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and Multiple Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and Multiple Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Fixable Hint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Fixable Hint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Broken Conditional Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Broken Conditional Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and Multiple Broken Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and Multiple Broken Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Ant Targets", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Ant Targets", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and Multiple Enabled and Disabled Broken Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and Multiple Enabled and Disabled Broken Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Bookmark", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Bookmark", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Disabled Stopwatch Profiling Point", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Disabled Stopwatch Profiling Point", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Current Ant Target", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Current Ant Target", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Disabled Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Disabled Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Disabled Conditional Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Disabled Conditional Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Set Current Thread to", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Set Current Thread to", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Program Counter and a Disabled Conditional Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Disabled Conditional Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Deactivated Field Breakpoint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Deactivated Field Breakpoint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Multiple Disabled Breakpoints", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Multiple Disabled Breakpoints", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Breakpoint", new Color (136, 0, 41, 255), null, null, true, true, false, null, new Color (136, 0, 41, 255), null, null, null), // new AttributeSetConfigured ("Breakpoint", new Color (136, 0, 41, 255), null, null, true, true, false, null, new Color (136, 0, 41, 255), null, null, null),
new AttributeSetConfigured ("Breakpoint", new Color (252, 157, 159, 255), null, null, true, true, false, null, new Color (252, 157, 159, 255), null, null, null), // new AttributeSetConfigured ("Breakpoint", new Color (252, 157, 159, 255), null, null, true, true, false, null, new Color (252, 157, 159, 255), null, null, null),
new AttributeSetConfigured ("Implements and is overridden", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Implements and is overridden", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("XML Syntax Error", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), null, null, null), // new AttributeSetConfigured ("XML Syntax Error", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Call Site", new Color (231, 225, 239, 255), null, null, true, true, false, null, new Color (231, 225, 239, 255), null, null, null), // new AttributeSetConfigured ("Call Site", new Color (231, 225, 239, 255), null, null, true, true, false, null, new Color (231, 225, 239, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Broken Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Broken Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Disabled Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Disabled Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Breakpoint", new Color (252, 157, 159, 255), null, null, true, true, false, null, new Color (252, 157, 159, 255), null, null, null), // new AttributeSetConfigured ("Breakpoint", new Color (252, 157, 159, 255), null, null, true, true, false, null, new Color (252, 157, 159, 255), null, null, null),
new AttributeSetConfigured ("Program Counter of a thread with a Broken Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter of a thread with a Broken Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Current Program Counter and other threads with a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Current Program Counter and other threads with a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Broken Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Broken Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and Multiple Enabled and Disabled Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and Multiple Enabled and Disabled Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Overrides and is overridden", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Overrides and is overridden", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Disabled Field Breakpoint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Disabled Field Breakpoint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Program Counter of a thread with a Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Program Counter of a thread with a Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Disabled Field Breakpoint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Disabled Field Breakpoint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Overrides", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Overrides", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Breakpoint", new Color (252, 157, 159, 255), null, null, true, true, false, null, new Color (252, 157, 159, 255), null, null, null), // new AttributeSetConfigured ("Breakpoint", new Color (252, 157, 159, 255), null, null, true, true, false, null, new Color (252, 157, 159, 255), null, null, null),
new AttributeSetConfigured ("Load Generator Profiling Point", new Color (180, 228, 252, 255), null, null, true, true, false, null, new Color (180, 228, 252, 255), null, null, null), // new AttributeSetConfigured ("Load Generator Profiling Point", new Color (180, 228, 252, 255), null, null, true, true, false, null, new Color (180, 228, 252, 255), null, null, null),
new AttributeSetConfigured ("Current Program Counter In Expression + Conditional Breakpoint", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null), // new AttributeSetConfigured ("Current Program Counter In Expression + Conditional Breakpoint", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Conditional Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Conditional Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Disabled Load Generator Profiling Point", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Disabled Load Generator Profiling Point", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Fixable TODO", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Fixable TODO", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Set Current Threads to", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Set Current Threads to", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Fixable Warning", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Fixable Warning", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Fixable Error", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Fixable Error", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Versioning Annotation", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Versioning Annotation", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Verifier Warning", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Verifier Warning", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Multiple Enabled and Disabled Broken Breakpoints", new Color (0, 0, 255, 255), null, null, true, true, false, null, new Color (0, 0, 255, 255), null, null, null), // new AttributeSetConfigured ("Multiple Enabled and Disabled Broken Breakpoints", new Color (0, 0, 255, 255), null, null, true, true, false, null, new Color (0, 0, 255, 255), null, null, null),
new AttributeSetConfigured ("Subversion Annotation", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Subversion Annotation", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Specializes Template Annotation", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Specializes Template Annotation", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Implements", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Implements", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Disabled Method Breakpoint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Disabled Method Breakpoint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Current Program Counter", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Current Program Counter", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Multiple Enabled and Disabled Breakpoints", new Color (252, 157, 159, 255), null, null, true, true, false, null, new Color (252, 157, 159, 255), null, null, null), // new AttributeSetConfigured ("Multiple Enabled and Disabled Breakpoints", new Color (252, 157, 159, 255), null, null, true, true, false, null, new Color (252, 157, 159, 255), null, null, null),
new AttributeSetConfigured ("Overrides and is overridden", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Overrides and is overridden", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Program Counter of a thread with a Breakpoint", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), null, null, null), // new AttributeSetConfigured ("Program Counter of a thread with a Breakpoint", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), null, null, null),
new AttributeSetConfigured ("Is Overridden", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Is Overridden", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Is Overridden", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Is Overridden", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Multiple Breakpoints", new Color (0, 0, 255, 255), null, null, true, true, false, null, new Color (0, 0, 255, 255), null, null, null), // new AttributeSetConfigured ("Multiple Breakpoints", new Color (0, 0, 255, 255), null, null, true, true, false, null, new Color (0, 0, 255, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Disabled Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Disabled Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Disabled Reset Results Profiling Point", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Disabled Reset Results Profiling Point", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Current Program Counter In Expression + Disabled Conditional Breakpoint", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null), // new AttributeSetConfigured ("Current Program Counter In Expression + Disabled Conditional Breakpoint", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null),
new AttributeSetConfigured ("Git Annotation", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Git Annotation", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Is Specialized Annotation of Overrides and/or is overridden", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Is Specialized Annotation of Overrides and/or is overridden", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Current Program Counter In Expression + Disabled Breakpoint", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null), // new AttributeSetConfigured ("Current Program Counter In Expression + Disabled Breakpoint", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null),
new AttributeSetConfigured ("C/C++ parser errors", null, null, new Color (255, 0, 0, 255), false, true, true, null, null, new Color (255, 0, 0, 255), null, null), // new AttributeSetConfigured ("C/C++ parser errors", null, null, new Color (255, 0, 0, 255), false, true, true, null, null, new Color (255, 0, 0, 255), null, null),
new AttributeSetConfigured ("Overrides", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Overrides", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Take Snapshot Profiling Point", new Color (180, 228, 252, 255), null, null, true, true, false, null, new Color (180, 228, 252, 255), null, null, null), // new AttributeSetConfigured ("Take Snapshot Profiling Point", new Color (180, 228, 252, 255), null, null, true, true, false, null, new Color (180, 228, 252, 255), null, null, null),
new AttributeSetConfigured ("TODO", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("TODO", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Overrides", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Overrides", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Program Counter and Multiple Enabled and Disabled Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and Multiple Enabled and Disabled Breakpoints", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Fixable Verifier Warning", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Fixable Verifier Warning", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Error", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Error", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Broken Conditional Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Broken Conditional Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Implements and has implementations", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Implements and has implementations", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Current Expression", new Color (209, 255, 188, 255), null, null, true, true, false, null, new Color (209, 255, 188, 255), null, null, null), // new AttributeSetConfigured ("Current Expression", new Color (209, 255, 188, 255), null, null, true, true, false, null, new Color (209, 255, 188, 255), null, null, null),
new AttributeSetConfigured ("Current Ant Target + Breakpoint", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), null, null, null), // new AttributeSetConfigured ("Current Ant Target + Breakpoint", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Deactivated Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Deactivated Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Is Specialized Annotation", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Is Specialized Annotation", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Multiple Broken Breakpoints", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Multiple Broken Breakpoints", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Disabled Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Program Counter and a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Deactivated Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Deactivated Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Mark Occurrences for C/C++ editor", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Mark Occurrences for C/C++ editor", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Class Breakpoint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Class Breakpoint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Current Program Counter and other thread with a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Current Program Counter and other thread with a Breakpoint", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Disabled Class Breakpoint", null, null, null, false, true, false, null, null, null, null, null), // new AttributeSetConfigured ("Disabled Class Breakpoint", null, null, null, false, true, false, null, null, null, null, null),
new AttributeSetConfigured ("Current Program Counter In Expression", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null), // new AttributeSetConfigured ("Current Program Counter In Expression", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null),
new AttributeSetConfigured ("Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null), // new AttributeSetConfigured ("Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Next Ant Target", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null), // new AttributeSetConfigured ("Next Ant Target", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Is Overridden", null, null, null, false, true, false, null, null, null, null, null) // new AttributeSetConfigured ("Is Overridden", null, null, null, false, true, false, null, null, null, null, null)
}; //};
// </editor-fold> //// </editor-fold>
//
// <editor-fold desc="highlightings" defaultstate="collapsed"> //// <editor-fold desc="highlightings" defaultstate="collapsed">
private static final AttributeSetConfigured [] highlightings = { //private static final AttributeSetConfigured [] highlightings = {
new AttributeSetConfigured ("Braces matching (match, single character)", new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Braces matching (match, single character)", new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Text Limit Line", null, new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Text Limit Line", null, new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Code Folding", null, new Color (148, 148, 148, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Code Folding", null, new Color (148, 148, 148, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Text Boxes (Editable)", null, new Color (204, 0, 153, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Text Boxes (Editable)", null, new Color (204, 0, 153, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Braces matching (mismatch, single character)", new Color (186, 2, 58, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Braces matching (mismatch, single character)", new Color (186, 2, 58, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Highlight Caret Row", new Color (32, 32, 32, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Highlight Caret Row", new Color (32, 32, 32, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Caret Color (Overwrite mode)", new Color (228, 228, 228, 255), new Color (208, 208, 208, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Caret Color (Overwrite mode)", new Color (228, 228, 228, 255), new Color (208, 208, 208, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Status Bar", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Status Bar", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Guarded Block", new Color (64, 64, 64, 255), new Color (255, 0, 255, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Guarded Block", new Color (64, 64, 64, 255), new Color (255, 0, 255, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Trailing Whitespace", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Trailing Whitespace", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Braces matching (mismatch, multiple characters)", new Color (186, 2, 58, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Braces matching (mismatch, multiple characters)", new Color (186, 2, 58, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Status Bar (highlighted)", null, new Color (255, 0, 0, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Status Bar (highlighted)", null, new Color (255, 0, 0, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Braces outline sidebar", null, new Color (187, 187, 187, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Braces outline sidebar", null, new Color (187, 187, 187, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Readonly Files", new Color (64, 64, 64, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Readonly Files", new Color (64, 64, 64, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Line Number", null, new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Line Number", null, new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Highlight Search", new Color (110, 110, 110, 255), new Color (255, 135, 35, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Highlight Search", new Color (110, 110, 110, 255), new Color (255, 135, 35, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Code Folding Bar", null, new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Code Folding Bar", null, new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Text Boxes (Synchronized)", null, new Color (153, 102, 0, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Text Boxes (Synchronized)", null, new Color (153, 102, 0, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Indent Guide Lines", null, new Color (48, 48, 48, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Indent Guide Lines", null, new Color (48, 48, 48, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Indentation Whitespace", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Indentation Whitespace", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Search Block", new Color (32, 32, 32, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Search Block", new Color (32, 32, 32, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Selected Text", new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Selected Text", new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Incremental Search", new Color (255, 153, 0, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Incremental Search", new Color (255, 153, 0, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Braces matching (match, multiple characters)", new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Braces matching (match, multiple characters)", new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Caret Color", new Color (228, 228, 228, 255), new Color (208, 208, 208, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Caret Color", new Color (228, 228, 228, 255), new Color (208, 208, 208, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Hyperlinks", null, new Color (0, 0, 255, 255), null, null, null, null, null, null, null, null, null) // new AttributeSetConfigured ("Hyperlinks", null, new Color (0, 0, 255, 255), null, null, null, null, null, null, null, null, null)
}; //};
// </editor-fold> //// </editor-fold>
//
// <editor-fold desc="lang_Java" defaultstate="collapsed"> //// <editor-fold desc="lang_Java" defaultstate="collapsed">
private static final AttributeSetConfigured [] lang_Java = { //private static final AttributeSetConfigured [] lang_Java = {
new AttributeSetConfigured ("Mark Occurrences", new Color (73, 72, 66, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Mark Occurrences", new Color (73, 72, 66, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Abstract Element", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Abstract Element", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("String", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("String", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Javadoc Identifier", null, new Color (0, 0, 0, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Javadoc Identifier", null, new Color (0, 0, 0, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Public Element", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Public Element", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Class Use", null, new Color (187, 129, 219, 255), null, null, null, null, null, null, null, false, true), // new AttributeSetConfigured ("Class Use", null, new Color (187, 129, 219, 255), null, null, null, null, null, null, null, false, true),
new AttributeSetConfigured ("Unused Element", null, null, new Color (153, 153, 153, 255), null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Unused Element", null, null, new Color (153, 153, 153, 255), null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Method Declaration", null, new Color (88, 88, 196, 255), null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Method Declaration", null, new Color (88, 88, 196, 255), null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Interface Declaration", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Interface Declaration", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Operator", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Operator", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Literal", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Literal", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Keyword Directive", null, new Color (230, 31, 91, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Keyword Directive", null, new Color (230, 31, 91, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Number", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Number", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Character", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Character", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Parameter Use", null, new Color (251, 152, 32, 255), null, null, null, null, null, null, null, false, true), // new AttributeSetConfigured ("Parameter Use", null, new Color (251, 152, 32, 255), null, null, null, null, null, null, null, false, true),
new AttributeSetConfigured ("Deprecated Element", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Deprecated Element", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Annotation Use", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Annotation Use", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Javadoc First Sentence", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Javadoc First Sentence", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("String Escape Sequence", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("String Escape Sequence", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("String Escape Sequence (invalid)", null, null, new Color (206, 123, 0, 255), null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("String Escape Sequence (invalid)", null, null, new Color (206, 123, 0, 255), null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Keyword", null, new Color (234, 82, 128, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Keyword", null, new Color (234, 82, 128, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Local Variable Use", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Local Variable Use", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Identifier", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Identifier", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Field Use", null, new Color (255, 255, 255, 255), null, null, null, null, null, null, null, false, true), // new AttributeSetConfigured ("Field Use", null, new Color (255, 255, 255, 255), null, null, null, null, null, null, null, false, true),
new AttributeSetConfigured ("Javadoc Tag", null, new Color (255, 0, 102, 255), null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Javadoc Tag", null, new Color (255, 0, 102, 255), null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Method Use", null, new Color (141, 141, 222, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Method Use", null, new Color (141, 141, 222, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Annotation Declaration", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Annotation Declaration", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Interface Use", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Interface Use", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Protected Element", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Protected Element", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Separator", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Separator", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Constructor Declaration", null, new Color (62, 176, 176, 255), null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Constructor Declaration", null, new Color (62, 176, 176, 255), null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Character Escape Sequence (invalid)", null, null, null, null, null, null, null, null, null, false, true), // new AttributeSetConfigured ("Character Escape Sequence (invalid)", null, null, null, null, null, null, null, null, null, false, true),
new AttributeSetConfigured ("Javadoc HTML tag", null, new Color (153, 153, 255, 255), null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Javadoc HTML tag", null, new Color (153, 153, 255, 255), null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Enum Use", null, new Color (187, 129, 219, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Enum Use", null, new Color (187, 129, 219, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Local Variable Declaration", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Local Variable Declaration", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Parameter Declaration", null, new Color (251, 151, 31, 255), null, null, null, null, null, null, null, false, true), // new AttributeSetConfigured ("Parameter Declaration", null, new Color (251, 151, 31, 255), null, null, null, null, null, null, null, false, true),
new AttributeSetConfigured ("Private Element", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Private Element", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Enum Declaration", null, new Color (148, 73, 189, 255), null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Enum Declaration", null, new Color (148, 73, 189, 255), null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Static Element", null, null, null, null, null, null, null, null, null, false, true), // new AttributeSetConfigured ("Static Element", null, null, null, null, null, null, null, null, null, false, true),
new AttributeSetConfigured ("Character Escape Sequence", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Character Escape Sequence", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Class Declaration", null, new Color (148, 73, 189, 255), null, null, null, null, null, null, null, false, true), // new AttributeSetConfigured ("Class Declaration", null, new Color (148, 73, 189, 255), null, null, null, null, null, null, null, false, true),
new AttributeSetConfigured ("Package Private Element", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Package Private Element", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Comment", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Comment", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Whitespace", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Whitespace", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Constructor Use", null, new Color (120, 212, 212, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Constructor Use", null, new Color (120, 212, 212, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Field Declaration", null, new Color (255, 255, 255, 255), null, null, null, null, null, null, null, false, true) // new AttributeSetConfigured ("Field Declaration", null, new Color (255, 255, 255, 255), null, null, null, null, null, null, null, false, true)
}; //};
// </editor-fold> //// </editor-fold>
//
// <editor-fold desc="lang_CPP" defaultstate="collapsed"> //// <editor-fold desc="lang_CPP" defaultstate="collapsed">
private static final AttributeSetConfigured [] lang_CPP = { //private static final AttributeSetConfigured [] lang_CPP = {
new AttributeSetConfigured ("String", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("String", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("OpenMP Keyword Directive", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("OpenMP Keyword Directive", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Preprocessor Symbol", null, new Color (0, 155, 0, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Preprocessor Symbol", null, new Color (0, 155, 0, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Functions Declaration", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Functions Declaration", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Operator", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Operator", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Literal", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Literal", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Keyword Directive", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Keyword Directive", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Typedefs", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Typedefs", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Number", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Number", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Character", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Character", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("User Include", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("User Include", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Macro Defined in Code", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false), // new AttributeSetConfigured ("Macro Defined in Code", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false),
new AttributeSetConfigured ("String Escape Sequence", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("String Escape Sequence", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("String Escape Sequence (invalid)", null, null, new Color (206, 123, 0, 255), null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("String Escape Sequence (invalid)", null, null, new Color (206, 123, 0, 255), null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Keyword", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Keyword", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Doxygen Tag", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Doxygen Tag", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Identifier", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Identifier", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Unused Variables", null, null, new Color (153, 153, 153, 255), null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Unused Variables", null, null, new Color (153, 153, 153, 255), null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Fields", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Fields", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Preprocessor Keyword", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Preprocessor Keyword", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Macro Defined in Project", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false), // new AttributeSetConfigured ("Macro Defined in Project", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false),
new AttributeSetConfigured ("Separator", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Separator", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Doxygen HTML tag", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Doxygen HTML tag", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Mark Occurrences", new Color (0, 0, 255, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Mark Occurrences", new Color (0, 0, 255, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Inactive Preprocessor Block", null, new Color (150, 150, 150, 255), null, null, null, null, null, null, null, false, false), // new AttributeSetConfigured ("Inactive Preprocessor Block", null, new Color (150, 150, 150, 255), null, null, null, null, null, null, null, false, false),
new AttributeSetConfigured ("Predefined Macros", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false), // new AttributeSetConfigured ("Predefined Macros", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false),
new AttributeSetConfigured ("System Include", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("System Include", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Functions Usage", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Functions Usage", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Preprocessor Identifier", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Preprocessor Identifier", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Comment", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Comment", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Whitespace", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Whitespace", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Preprocessor Keyword Directive", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Preprocessor Keyword Directive", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("OpenMP Symbol", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("OpenMP Symbol", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Error", null, null, null, null, null, null, null, null, null, null, null) // new AttributeSetConfigured ("Error", null, null, null, null, null, null, null, null, null, null, null)
}; //};
// </editor-fold> //// </editor-fold>
//
// <editor-fold desc="lang_C" defaultstate="collapsed"> //// <editor-fold desc="lang_C" defaultstate="collapsed">
private static final AttributeSetConfigured [] lang_C = { //private static final AttributeSetConfigured [] lang_C = {
new AttributeSetConfigured ("String", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("String", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("OpenMP Keyword Directive", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("OpenMP Keyword Directive", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Preprocessor Symbol", null, new Color (85, 186, 2, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Preprocessor Symbol", null, new Color (85, 186, 2, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Functions Declaration", null, new Color (88, 88, 196, 255), null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Functions Declaration", null, new Color (88, 88, 196, 255), null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Operator", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Operator", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Literal", null, new Color (234, 82, 128, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Literal", null, new Color (234, 82, 128, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Keyword Directive", null, new Color (230, 31, 91, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Keyword Directive", null, new Color (230, 31, 91, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Typedefs", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Typedefs", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Number", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Number", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Character", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Character", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("User Include", null, new Color (150, 233, 82, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("User Include", null, new Color (150, 233, 82, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Macro Defined in Code", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false), // new AttributeSetConfigured ("Macro Defined in Code", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false),
new AttributeSetConfigured ("String Escape Sequence", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("String Escape Sequence", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("String Escape Sequence (invalid)", null, null, new Color (206, 123, 0, 255), null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("String Escape Sequence (invalid)", null, null, new Color (206, 123, 0, 255), null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Keyword", null, new Color (234, 82, 128, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Keyword", null, new Color (234, 82, 128, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Doxygen Tag", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Doxygen Tag", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Identifier", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Identifier", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Unused Variables", null, null, new Color (153, 153, 153, 255), null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Unused Variables", null, null, new Color (153, 153, 153, 255), null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Fields", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Fields", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Preprocessor Keyword", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Preprocessor Keyword", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Macro Defined in Project", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false), // new AttributeSetConfigured ("Macro Defined in Project", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false),
new AttributeSetConfigured ("Separator", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Separator", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Doxygen HTML tag", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Doxygen HTML tag", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Mark Occurrences", new Color (65, 65, 65, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Mark Occurrences", new Color (65, 65, 65, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Inactive Preprocessor Block", null, new Color (150, 150, 150, 255), null, null, null, null, null, null, null, false, false), // new AttributeSetConfigured ("Inactive Preprocessor Block", null, new Color (150, 150, 150, 255), null, null, null, null, null, null, null, false, false),
new AttributeSetConfigured ("Predefined Macros", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false), // new AttributeSetConfigured ("Predefined Macros", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, false, false),
new AttributeSetConfigured ("System Include", null, new Color (186, 243, 138, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("System Include", null, new Color (186, 243, 138, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Functions Usage", null, new Color (141, 141, 222, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Functions Usage", null, new Color (141, 141, 222, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Preprocessor Identifier", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Preprocessor Identifier", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Comment", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Comment", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Whitespace", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Whitespace", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Preprocessor Keyword Directive", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Preprocessor Keyword Directive", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("OpenMP Symbol", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("OpenMP Symbol", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Error", null, null, null, null, null, null, null, null, null, null, null) // new AttributeSetConfigured ("Error", null, null, null, null, null, null, null, null, null, null, null)
}; //};
// </editor-fold> //// </editor-fold>
//
// <editor-fold desc="lang_All_Languages" defaultstate="collapsed"> //// <editor-fold desc="lang_All_Languages" defaultstate="collapsed">
private static final AttributeSetConfigured [] lang_All_Languages = { //private static final AttributeSetConfigured [] lang_All_Languages = {
new AttributeSetConfigured ("Markup Attribute", null, new Color (0, 124, 0, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Markup Attribute", null, new Color (0, 124, 0, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Private Element", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Private Element", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("String", null, new Color (255, 255, 90, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("String", null, new Color (255, 255, 90, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Deprecated Element", new Color (255, 0, 0, 255), null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Deprecated Element", new Color (255, 0, 0, 255), null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Error", new Color (255, 0, 0, 255), new Color (255, 255, 255, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Error", new Color (255, 0, 0, 255), new Color (255, 255, 255, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Interface", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Interface", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Entity Reference", null, new Color (255, 175, 175, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Entity Reference", null, new Color (255, 175, 175, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Operator", null, new Color (187, 187, 187, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Operator", null, new Color (187, 187, 187, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Number", null, new Color (150, 233, 82, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Number", null, new Color (150, 233, 82, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Default", new Color (16, 16, 16, 255), new Color (228, 228, 228, 255), null, null, null, null, null, null, null, false, false), // new AttributeSetConfigured ("Default", new Color (16, 16, 16, 255), new Color (228, 228, 228, 255), null, null, null, null, null, null, null, false, false),
new AttributeSetConfigured ("Protected Element", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Protected Element", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Public Element", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Public Element", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Method Parameter", null, new Color (253, 165, 90, 255), null, null, null, null, null, null, null, false, true), // new AttributeSetConfigured ("Method Parameter", null, new Color (253, 165, 90, 255), null, null, null, null, null, null, null, false, true),
new AttributeSetConfigured ("Warning", null, null, new Color (255, 255, 0, 255), null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Warning", null, null, new Color (255, 255, 0, 255), null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Keyword", null, new Color (230, 31, 91, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Keyword", null, new Color (230, 31, 91, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Class", null, null, null, null, null, null, null, null, null, false, true), // new AttributeSetConfigured ("Class", null, null, null, null, null, null, null, null, null, false, true),
new AttributeSetConfigured ("Local Variable", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Local Variable", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Identifier", null, new Color (255, 255, 255, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Identifier", null, new Color (255, 255, 255, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Static Element", null, null, null, null, null, null, null, null, null, false, true), // new AttributeSetConfigured ("Static Element", null, null, null, null, null, null, null, null, null, false, true),
new AttributeSetConfigured ("Method", null, null, null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Method", null, null, null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Markup Element (Tag)", null, new Color (255, 200, 0, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Markup Element (Tag)", null, new Color (255, 200, 0, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Constructor", null, new Color (62, 176, 176, 255), null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Constructor", null, new Color (62, 176, 176, 255), null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Markup Attribute Value", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Markup Attribute Value", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Abstract Class or Method", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Abstract Class or Method", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Separator", null, new Color (187, 187, 187, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Separator", null, new Color (187, 187, 187, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("URL", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("URL", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Enum", null, null, null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Enum", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Field", null, new Color (9, 134, 24, 255), null, null, null, null, null, null, null, true, false), // new AttributeSetConfigured ("Field", null, new Color (9, 134, 24, 255), null, null, null, null, null, null, null, true, false),
new AttributeSetConfigured ("Character", null, new Color (255, 255, 145, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Character", null, new Color (255, 255, 145, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Comment", null, new Color (117, 113, 94, 255), null, null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Comment", null, new Color (117, 113, 94, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Unused Element", null, new Color (128, 128, 128, 255), new Color (255, 175, 175, 255), null, null, null, null, null, null, null, null), // new AttributeSetConfigured ("Unused Element", null, new Color (128, 128, 128, 255), new Color (255, 175, 175, 255), null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("Whitespace", null, null, null, null, null, null, null, null, null, null, null) // new AttributeSetConfigured ("Whitespace", null, null, null, null, null, null, null, null, null, null, null)
}; //};
// </editor-fold> //// </editor-fold>
//
// VERSIONONING THEME //// VERSIONONING THEME
//
// <editor-fold desc="GIT" defaultstate="collapsed"> //// <editor-fold desc="GIT" defaultstate="collapsed">
public static final org.idp.laf.Color[] GIT = { public static final org.idp.laf.Color[] GIT = {
new org.idp.laf.Color("Modified In Working Tree", org.idp.laf.Color.ColorClass.AT, 62, 176, 176, 255, ""), // new org.idp.laf.Color("Modified In Working Tree", org.idp.laf.Color.ColorClass.AT, 62, 176, 176, 255, ""),
new org.idp.laf.Color("Conflict", org.idp.laf.Color.ColorClass.AT, 230, 31, 91, 255, ""), // new org.idp.laf.Color("Conflict", org.idp.laf.Color.ColorClass.AT, 230, 31, 91, 255, ""),
new org.idp.laf.Color("Removed In Working Tree", org.idp.laf.Color.ColorClass.AT, 255, 135, 35, 255, ""), // new org.idp.laf.Color("Removed In Working Tree", org.idp.laf.Color.ColorClass.AT, 255, 135, 35, 255, ""),
new org.idp.laf.Color("Added In Working Tree", org.idp.laf.Color.ColorClass.AT, 121, 229, 31, 255, ""), // new org.idp.laf.Color("Added In Working Tree", org.idp.laf.Color.ColorClass.AT, 121, 229, 31, 255, ""),
new org.idp.laf.Color("Added To Index", org.idp.laf.Color.ColorClass.AT, 150, 233, 82, 255, ""), // new org.idp.laf.Color("Added To Index", org.idp.laf.Color.ColorClass.AT, 150, 233, 82, 255, ""),
new org.idp.laf.Color("Additional Text Annotation", org.idp.laf.Color.ColorClass.AT, 166, 165, 165, 255, ""), // new org.idp.laf.Color("Additional Text Annotation", org.idp.laf.Color.ColorClass.AT, 166, 165, 165, 255, ""),
new org.idp.laf.Color("Ignored", org.idp.laf.Color.ColorClass.AT, 134, 134, 134, 255, ""), // new org.idp.laf.Color("Ignored", org.idp.laf.Color.ColorClass.AT, 134, 134, 134, 255, ""),
}; };
// </editor-fold> //// </editor-fold>
//
// <editor-fold desc="SVN" defaultstate="collapsed"> //// <editor-fold desc="SVN" defaultstate="collapsed">
public static final org.idp.laf.Color[] SVN = { public static final org.idp.laf.Color[] SVN = {
}; };
// </editor-fold> //// </editor-fold>
//
// <editor-fold desc="HG" defaultstate="collapsed"> //// <editor-fold desc="HG" defaultstate="collapsed">
public static final org.idp.laf.Color[] HG = { public static final org.idp.laf.Color[] HG = {
}; };
// </editor-fold> //// </editor-fold>
//
// <editor-fold desc="DIFF" defaultstate="collapsed"> //// <editor-fold desc="DIFF" defaultstate="collapsed">
public static final org.idp.laf.Color[] DIFF = { public static final org.idp.laf.Color[] DIFF = {
new org.idp.laf.Color("addedColor", org.idp.laf.Color.ColorClass.AT, 48, 94, 9, 255, ""), // new org.idp.laf.Color("addedColor", org.idp.laf.Color.ColorClass.AT, 48, 94, 9, 255, ""),
new org.idp.laf.Color("changedColor", org.idp.laf.Color.ColorClass.AT, 6, 63, 63, 255, ""), // new org.idp.laf.Color("changedColor", org.idp.laf.Color.ColorClass.AT, 6, 63, 63, 255, ""),
new org.idp.laf.Color("deletedColor", org.idp.laf.Color.ColorClass.AT, 94, 9, 35, 255, ""), // new org.idp.laf.Color("deletedColor", org.idp.laf.Color.ColorClass.AT, 94, 9, 35, 255, ""),
new org.idp.laf.Color("merge.appliedColor", org.idp.laf.Color.ColorClass.AT, 30, 93, 93, 255, ""), // new org.idp.laf.Color("merge.appliedColor", org.idp.laf.Color.ColorClass.AT, 30, 93, 93, 255, ""),
new org.idp.laf.Color("merge.notappliedColor", org.idp.laf.Color.ColorClass.AT, 138, 45, 73, 255, ""), // new org.idp.laf.Color("merge.notappliedColor", org.idp.laf.Color.ColorClass.AT, 138, 45, 73, 255, ""),
new org.idp.laf.Color("merge.unresolvedColor", org.idp.laf.Color.ColorClass.AT, 155, 98, 50, 255, ""), // new org.idp.laf.Color("merge.unresolvedColor", org.idp.laf.Color.ColorClass.AT, 155, 98, 50, 255, ""),
new org.idp.laf.Color("sidebar.changedColor", org.idp.laf.Color.ColorClass.AT, 155, 98, 50, 255, ""), // new org.idp.laf.Color("sidebar.changedColor", org.idp.laf.Color.ColorClass.AT, 155, 98, 50, 255, ""),
new org.idp.laf.Color("sidebar.deletedColor", org.idp.laf.Color.ColorClass.AT, 87, 138, 45, 255, "") // new org.idp.laf.Color("sidebar.deletedColor", org.idp.laf.Color.ColorClass.AT, 87, 138, 45, 255, "")
}; };
// </editor-fold> //// </editor-fold>
public static final HashMap <String, HashMap <String, AttributeSetConfigured>> color_map; public static final HashMap <String, HashMap <String, AttributeSetConfigured>> color_map;
@ -391,12 +391,12 @@ static
color_map = new HashMap<String, HashMap <String, AttributeSetConfigured>>(); color_map = new HashMap<String, HashMap <String, AttributeSetConfigured>>();
color_map.put("annotations", wrap(annotations)); // color_map.put("annotations", wrap(annotations));
color_map.put("highlightings", wrap(highlightings)); // color_map.put("highlightings", wrap(highlightings));
color_map.put("Java", wrap(lang_Java)); // color_map.put("Java", wrap(lang_Java));
color_map.put("C++", wrap(lang_CPP)); // color_map.put("C++", wrap(lang_CPP));
color_map.put("C", wrap(lang_C)); // color_map.put("C", wrap(lang_C));
color_map.put("All Languages", wrap(lang_All_Languages)); // color_map.put("All Languages", wrap(lang_All_Languages));
} }

@ -11,6 +11,7 @@ import java.lang.reflect.Method;
import java.util.AbstractMap; import java.util.AbstractMap;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap; import java.util.HashMap;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.Map; import java.util.Map;
@ -23,6 +24,7 @@ import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants; import javax.swing.text.StyleConstants;
import org.openide.util.Exceptions; import org.openide.util.Exceptions;
import org.openide.util.Lookup; import org.openide.util.Lookup;
import org.openide.util.NbPreferences;
/** /**
* *
@ -36,20 +38,27 @@ public class TitanEditor {
private static final String ANNOTATION_TYPE_CLASS_NAME = "org.netbeans.editor.AnnotationType"; //NOI18N private static final String ANNOTATION_TYPE_CLASS_NAME = "org.netbeans.editor.AnnotationType"; //NOI18N
private static final String PROVIDER_CLASS_NAME = "org.netbeans.modules.versioning.util.OptionsPanelColorProvider"; //NOI18N private static final String PROVIDER_CLASS_NAME = "org.netbeans.modules.versioning.util.OptionsPanelColorProvider"; //NOI18N
private static final String PROVIDER_GIT_CLASS_NAME = "org.netbeans.modules.git.options.AnnotationColorProvider"; //NOI18N // private static final String PROVIDER_GIT_CLASS_NAME = "org.netbeans.modules.git.options.AnnotationColorProvider"; //NOI18N
private static final String PROVIDER_SVN_CLASS_NAME = "org.netbeans.modules.subversion.options.AnnotationColorProvider"; //NOI18N // private static final String PROVIDER_SVN_CLASS_NAME = "org.netbeans.modules.subversion.options.AnnotationColorProvider"; //NOI18N
private static final String PROVIDER_HG_CLASS_NAME = "org.netbeans.modules.mercurial.options.AnnotationColorProvider"; //NOI18N // private static final String PROVIDER_HG_CLASS_NAME = "org.netbeans.modules.mercurial.options.AnnotationColorProvider"; //NOI18N
private static final String PROVIDER_GIT_CLASS_NAME = "org.netbeans.modules.git.GitModuleConfig"; //NOI18N
private static final String PROVIDER_SVN_CLASS_NAME = "org.netbeans.modules.subversion.SvnModuleConfig"; //NOI18N
private static final String PROVIDER_HG_CLASS_NAME = "org.netbeans.modules.mercurial.HgModuleConfig"; //NOI18N
private static final String PROVIDER_DIFF_CLASS_NAME = "org.netbeans.modules.diff.DiffModuleConfig"; //NOI18N private static final String PROVIDER_DIFF_CLASS_NAME = "org.netbeans.modules.diff.DiffModuleConfig"; //NOI18N
private static final boolean no_load = false; private static final boolean no_load = true;
private static Class COLOR_MODEL; private static Class COLOR_MODEL;
private static Class EDITOR_SETTINGS; private static Class EDITOR_SETTINGS;
private static Class ANNOTATION_TYPE; private static Class ANNOTATION_TYPE;
private static Class GIT_CONFIG;
private static Field DisplayName; private static Field DisplayName;
private static Field WaveUnderlineColor; private static Field WaveUnderlineColor;
private static Method getName;
private static Method getProfiles; private static Method getProfiles;
private static Method getCurrentProfile; private static Method getCurrentProfile;
private static Method setCurrentProfile; private static Method setCurrentProfile;
@ -84,17 +93,15 @@ public class TitanEditor {
private static final String DEFAULT_THEME_NAME = "NetBeans"; //NOI18N private static final String DEFAULT_THEME_NAME = "NetBeans"; //NOI18N
private static final String TITAN_THEME_NAME = "[idP!] Titan"; //NOI18N private static final String TITAN_THEME_NAME = "[idP!] Titan"; //NOI18N
private static Class provider_GIT = null; private static Class provider_GIT = null;
private static Class provider_SVN = null; private static Class provider_SVN = null;
private static Class provider_HG = null; private static Class provider_HG = null;
private static Class provider_CLASS = null; private static Class provider_CLASS = null;
private static Class provider_DIFF = null; private static Class provider_DIFF = null;
//private static Method provider_getInstance;
private static Method provider_getInstance; // private static Method provider_getColors;
private static Method provider_getColors; // private static Method provider_colorsChanged;
private static Method provider_colorsChanged;
private static Method provider_getDefault; private static Method provider_getDefault;
private static Method provider_getPreferences; private static Method provider_getPreferences;
@ -185,7 +192,6 @@ public class TitanEditor {
} }
} }
private static boolean pre_load () private static boolean pre_load ()
{ {
working_classLoader = Lookup.getDefault().lookup( ClassLoader.class ); working_classLoader = Lookup.getDefault().lookup( ClassLoader.class );
@ -196,7 +202,9 @@ public class TitanEditor {
COLOR_MODEL = working_classLoader.loadClass( COLOR_MODEL_CLASS_NAME ); COLOR_MODEL = working_classLoader.loadClass( COLOR_MODEL_CLASS_NAME );
EDITOR_SETTINGS = working_classLoader.loadClass(EDITOR_SETTINGS_CLASS_NAME); EDITOR_SETTINGS = working_classLoader.loadClass(EDITOR_SETTINGS_CLASS_NAME);
ANNOTATION_TYPE = working_classLoader.loadClass(ANNOTATION_TYPE_CLASS_NAME); ANNOTATION_TYPE = working_classLoader.loadClass(ANNOTATION_TYPE_CLASS_NAME);
getName = ANNOTATION_TYPE.getDeclaredMethod("getName", new Class[0]);
DisplayName = EDITOR_SETTINGS.getField("DisplayName"); //NOI18N DisplayName = EDITOR_SETTINGS.getField("DisplayName"); //NOI18N
WaveUnderlineColor = EDITOR_SETTINGS.getField("WaveUnderlineColor"); //NOI18N WaveUnderlineColor = EDITOR_SETTINGS.getField("WaveUnderlineColor"); //NOI18N
@ -254,8 +262,8 @@ public class TitanEditor {
provider_GIT = working_classLoader.loadClass(PROVIDER_GIT_CLASS_NAME); provider_GIT = working_classLoader.loadClass(PROVIDER_GIT_CLASS_NAME);
} catch (ClassNotFoundException ex) {} } catch (ClassNotFoundException ex) {}
provider_getColors = provider_CLASS.getDeclaredMethod( "getColors", new Class[0] ); //NOI18N // provider_getColors = provider_CLASS.getDeclaredMethod( "getColors", new Class[0] ); //NOI18N
provider_colorsChanged = provider_CLASS.getDeclaredMethod( "colorsChanged", Map.class ); //NOI18N // provider_colorsChanged = provider_CLASS.getDeclaredMethod( "colorsChanged", Map.class ); //NOI18N
} }
@ -305,48 +313,59 @@ public class TitanEditor {
private static void extractColorsForModule (String name, Class provider) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException private static void extractColorsForModule (String name, Class provider) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
{ {
;
String res = "// <editor-fold desc=\"" +name + "\" defaultstate=\"collapsed\">" + String res = "// <editor-fold desc=\"" +name + "\" defaultstate=\"collapsed\">" +
"\npublic static final org.idp.laf.Color[] " + name + " = {\n"; "\npublic static final org.idp.laf.Color[] " + name + " = {\n";
if (provider != null) if (provider != null)
{ {
ArrayList <org.idp.laf.Color> colors_list = new ArrayList<Color>(); ArrayList <org.idp.laf.Color> colors_list = new ArrayList<Color>();
try { Preferences forModule = NbPreferences.forModule(provider);
provider_getInstance = provider.getDeclaredMethod( "getInstance", new Class[0] ); //NOI18N try {
for (String key : forModule.keys())
Object provider_obj = provider_getInstance.invoke(null, new Object[0]); {
java.awt.Color cc = new java.awt.Color(Integer.parseInt(forModule.get(key, null)));
Map<String, java.awt.Color[]> colors = (Map<String, java.awt.Color[]>) provider_getColors.invoke(provider_obj, new Object[0]); res += " " + (new Color(key, Color.ColorClass.AT,
for (String str : colors.keySet())
{
java.awt.Color[] val_arr = colors.get(str);
java.awt.Color cc = val_arr[0];
//System.out.println("val_arr L = " + val_arr.length);
res += " " + (new Color(str, Color.ColorClass.AT,
cc.getRed(), cc.getRed(),
cc.getGreen(), cc.getGreen(),
cc.getBlue(), cc.getBlue(),
cc.getAlpha(), "")).getString() + ",\n"; cc.getAlpha(), "")).getString() + ",\n";
}
} catch (BackingStoreException ex) {
// colors_list.add); Exceptions.printStackTrace(ex);
} }
} catch (NoSuchMethodException ex) {
Exceptions.printStackTrace(ex);
} catch (SecurityException ex) {
Exceptions.printStackTrace(ex);
}
for (org.idp.laf.Color cc : colors_list)
{ // try {
res += cc.getString() + ",\n"; // //provider_getInstance = provider.getDeclaredMethod( "getInstance", new Class[0] ); //NOI18N
} //
//
// Object provider_obj = provider_getInstance.invoke(null, new Object[0]);
//
//
//
//
// for (String str : colors.keySet())
// {
//
//
//
//// colors_list.add);
// }
// } catch (NoSuchMethodException ex) {
// Exceptions.printStackTrace(ex);
// } catch (SecurityException ex) {
// Exceptions.printStackTrace(ex);
// }
//
// for (org.idp.laf.Color cc : colors_list)
// {
// res += cc.getString() + ",\n";
// }
} }
res += "};\n"; res += "};\n";
@ -358,46 +377,46 @@ public class TitanEditor {
private static void applyColorForModule (Class provider, org.idp.laf.Color[] colors_theme) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException private static void applyColorForModule (Class provider, org.idp.laf.Color[] colors_theme) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
{ {
if (provider != null) // if (provider != null)
{ // {
try // try
{ // {
provider_getInstance = provider.getDeclaredMethod( "getInstance", new Class[0] ); //NOI18N // provider_getInstance = provider.getDeclaredMethod( "getInstance", new Class[0] ); //NOI18N
//
Object provider_obj = provider_getInstance.invoke(null, new Object[0]); // Object provider_obj = provider_getInstance.invoke(null, new Object[0]);
//
Map<String, java.awt.Color[]> colors = (Map<String, java.awt.Color[]>) provider_getColors.invoke(provider_obj, new Object[0]); // Map<String, java.awt.Color[]> colors = (Map<String, java.awt.Color[]>) provider_getColors.invoke(provider_obj, new Object[0]);
//
Map<String, java.awt.Color> new_colours = new HashMap<String, java.awt.Color>(); // Map<String, java.awt.Color> new_colours = new HashMap<String, java.awt.Color>();
boolean found_new = false; // boolean found_new = false;
for (String str : colors.keySet()) // for (String str : colors.keySet())
{ // {
found_new = false; // found_new = false;
for (org.idp.laf.Color cc : colors_theme) // for (org.idp.laf.Color cc : colors_theme)
{ // {
if (cc.getName().equals(str)) // if (cc.getName().equals(str))
{ // {
java.awt.Color toSet = (java.awt.Color) cc.getObject(); // java.awt.Color toSet = (java.awt.Color) cc.getObject();
new_colours.put(str, toSet); // new_colours.put(str, toSet);
found_new = true; // found_new = true;
break; // break;
} // }
} // }
if (!found_new) // if (!found_new)
{ // {
new_colours.put(str, colors.get(str)[0]); // new_colours.put(str, colors.get(str)[0]);
} // }
} // }
//
provider_colorsChanged.invoke(provider_obj, new_colours); // provider_colorsChanged.invoke(provider_obj, new_colours);
//
} catch (NoSuchMethodException ex) { // } catch (NoSuchMethodException ex) {
Exceptions.printStackTrace(ex); // Exceptions.printStackTrace(ex);
} catch (SecurityException ex) { // } catch (SecurityException ex) {
Exceptions.printStackTrace(ex); // Exceptions.printStackTrace(ex);
} // }
//
} // }
} }
public static void load_editor () public static void load_editor ()
@ -579,6 +598,12 @@ public class TitanEditor {
return sas; return sas;
} }
/*
type = 0 - Annotation
type = 1 - Highlight
type = 2 - Color code
*/
private static void process_set(String set_name, Collection<AttributeSet> data, boolean annotation) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException private static void process_set(String set_name, Collection<AttributeSet> data, boolean annotation) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
{ {
@ -588,30 +613,60 @@ public class TitanEditor {
for (AttributeSet at : data) for (AttributeSet at : data)
{ {
String name = (String) at.getAttribute(const_DisplayName);
java.awt.Color bgColor = (java.awt.Color) at.getAttribute(StyleConstants.Background); //String description;
java.awt.Color fgColor = (java.awt.Color) at.getAttribute(StyleConstants.Foreground); String name = "BAD ASS";
java.awt.Color underColor = (java.awt.Color) at.getAttribute(const_WaveUnderlineColor);
Object annotationType = at.getAttribute("annotationType");
Boolean v_isUseHighlightColor = null; Boolean v_isUseHighlightColor = null;
Boolean v_isInheritForegroundColor = null; Boolean v_isInheritForegroundColor = null;
Boolean v_isUseWaveUnderlineColor = null; Boolean v_isUseWaveUnderlineColor = null;
java.awt.Color a_getHighlight = null; java.awt.Color a_getHighlight = null;
java.awt.Color a_getForegroundColor = null; java.awt.Color a_getForegroundColor = null;
java.awt.Color a_getWaveUnderlineColor = null; java.awt.Color a_getWaveUnderlineColor = null;
Boolean bold = (Boolean) at.getAttribute(javax.swing.text.StyleConstants.FontConstants.Bold);
Boolean italic = (Boolean) at.getAttribute(javax.swing.text.StyleConstants.FontConstants.Italic);
if (annotation) if (annotation)
{ {
v_isUseHighlightColor = (Boolean) isUseHighlightColor.invoke(annotationType, new Object[0]); Object annotationType = at.getAttribute("annotationType");
v_isInheritForegroundColor = (Boolean) isInheritForegroundColor.invoke(annotationType, new Object[0]); //System.out.println(">>> " + description + " | " + annotationType);
v_isUseWaveUnderlineColor = (Boolean) isUseWaveUnderlineColor.invoke(annotationType, new Object[0]); //String name = "BAD ASS";
a_getHighlight = (java.awt.Color) getHighlight.invoke(annotationType, new Object[0]); if (annotationType != null)
a_getForegroundColor = (java.awt.Color) getForegroundColor.invoke(annotationType, new Object[0]); {
a_getWaveUnderlineColor = (java.awt.Color) getWaveUnderlineColor.invoke(annotationType, new Object[0]); name = (String) getName.invoke(annotationType, new Object[0]);
v_isUseHighlightColor = (Boolean) isUseHighlightColor.invoke(annotationType, new Object[0]);
v_isInheritForegroundColor = (Boolean) isInheritForegroundColor.invoke(annotationType, new Object[0]);
v_isUseWaveUnderlineColor = (Boolean) isUseWaveUnderlineColor.invoke(annotationType, new Object[0]);
a_getHighlight = (java.awt.Color) getHighlight.invoke(annotationType, new Object[0]);
a_getForegroundColor = (java.awt.Color) getForegroundColor.invoke(annotationType, new Object[0]);
a_getWaveUnderlineColor = (java.awt.Color) getWaveUnderlineColor.invoke(annotationType, new Object[0]);
}
else
{
System.err.println("ANNOTATION WITHOUT TYPE FOUND " + at);
}
} }
else
{
name = (String) at.getAttribute(javax.swing.text.StyleConstants.NameAttribute);
}
// else if (type == 2)
// {
// name = (String) at.getAttribute(javax.swing.text.StyleConstants.NameAttribute);
// }
//System.out.println(type + " : " + name );
java.awt.Color bgColor = (java.awt.Color) at.getAttribute(StyleConstants.Background);
java.awt.Color fgColor = (java.awt.Color) at.getAttribute(StyleConstants.Foreground);
java.awt.Color underColor = (java.awt.Color) at.getAttribute(const_WaveUnderlineColor);
Boolean bold = (Boolean) at.getAttribute(javax.swing.text.StyleConstants.FontConstants.Bold);
Boolean italic = (Boolean) at.getAttribute(javax.swing.text.StyleConstants.FontConstants.Italic);
conf_annotations.add(new AttributeSetConfigured(name, conf_annotations.add(new AttributeSetConfigured(name,
bgColor, bgColor,
fgColor, fgColor,

Loading…
Cancel
Save