From d958ebc7f5e253c2a51900aa2a227b9dbe853267 Mon Sep 17 00:00:00 2001 From: Wizard Atman Date: Wed, 8 Apr 2015 22:20:01 +0300 Subject: [PATCH] Localization must now be strict with our code --- src/org/idp/laf/ColorTheme.java | 716 ++++++++++++++++--------------- src/org/idp/laf/TitanEditor.java | 223 ++++------ 2 files changed, 452 insertions(+), 487 deletions(-) diff --git a/src/org/idp/laf/ColorTheme.java b/src/org/idp/laf/ColorTheme.java index f353b04..af514a6 100644 --- a/src/org/idp/laf/ColorTheme.java +++ b/src/org/idp/laf/ColorTheme.java @@ -15,361 +15,367 @@ import java.util.HashMap; public class ColorTheme { //// EDITOR THEME -// -//// -//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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 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 ("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 ("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 ("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 ("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 ("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 ("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 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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 (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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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) -//}; -//// -// -//// -//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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("Hyperlinks", null, new Color (0, 0, 255, 255), null, null, null, null, null, null, null, null, null) -//}; -//// -// -//// -//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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 (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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("Field Declaration", null, new Color (255, 255, 255, 255), null, null, null, null, null, null, null, false, true) -//}; -//// -// -//// -//private static final AttributeSetConfigured [] lang_CPP = { -// 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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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) -//}; -//// -// -//// -//private static final AttributeSetConfigured [] lang_C = { -// 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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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) -//}; -//// -// -//// -//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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("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 ("Whitespace", null, null, null, null, null, null, null, null, null, null, null) -//}; -//// -// -//// VERSIONONING THEME -// -//// + +// +private static final AttributeSetConfigured [] annotations = { + new AttributeSetConfigured ("debugger-mixed_BP", new Color (252, 157, 159, 255), null, null, true, true, false, new Color (252, 157, 159, 255), new Color (252, 157, 159, 255), null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_cmpx_hit_dis", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("OtherThreads_DBP", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), new Color (220, 220, 216, 255), null, null, null), + new AttributeSetConfigured ("stopwatchProfilingPoint", new Color (180, 228, 252, 255), null, null, true, true, false, new Color (180, 228, 252, 255), new Color (180, 228, 252, 255), null, null, null), + new AttributeSetConfigured ("OtherThread_PC", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("debugger-PC_CBP_stroke", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("CurrentPC2_DBP", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), new Color (220, 220, 216, 255), null, null, null), + new AttributeSetConfigured ("FieldBreakpoint", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("ClassBreakpoint_stroke", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("DisabledMethodBreakpoint", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-spi-editor-hints-parser_annotation_warn", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-mercurial-Annotation", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("resetResultsProfilingPoint", new Color (180, 228, 252, 255), null, null, true, true, false, new Color (180, 228, 252, 255), new Color (180, 228, 252, 255), null, null, null), + new AttributeSetConfigured ("org-netbeans-spi-editor-hints-parser_annotation_hint", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_cmpx_hit_broken", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("Dbx_PC", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-editor-annotations-has_implementations", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("CondBreakpoint_stroke", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), new Color (220, 220, 216, 255), null, null, null), + new AttributeSetConfigured ("CondBreakpoint", new Color (255, 200, 0, 255), null, null, true, true, false, new Color (255, 200, 0, 255), new Color (255, 200, 0, 255), null, null, null), + new AttributeSetConfigured ("MethodBreakpoint", new Color (255, 200, 0, 255), null, null, true, true, false, new Color (255, 200, 0, 255), new Color (255, 200, 0, 255), null, null, null), + new AttributeSetConfigured ("OtherThreads_BP_broken", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("MethodBreakpoint_stroke", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("OtherThreads_BP", new Color (255, 0, 255, 255), null, null, true, true, false, new Color (255, 0, 255, 255), new Color (255, 0, 255, 255), null, null, null), + new AttributeSetConfigured ("debugger-PC_multi_DBPCBP", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_hit_dis", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_cmpx_broken_dis", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), new Color (220, 220, 216, 255), null, null, null), + new AttributeSetConfigured ("CurrentExpressionLine_BP", new Color (233, 255, 230, 255), null, null, true, true, false, new Color (233, 255, 230, 255), null, null, null, null), + new AttributeSetConfigured ("takeSnapshotProfilingPointD", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), new Color (220, 220, 216, 255), null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-navigation-is_overridden_combined_pseudo", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("DisabledClassBreakpoint", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-navigation-extended_specializes", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_cmpx_broken", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("debugger-PC_multi_BPCBP", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("org-netbeans-spi-editor-hints-parser_annotation_hint_fixable", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_cmpx_dis", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("DisabledBreakpoint_stroke", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("debugger-PC_CBP_broken", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("debugger-PC_multi_BPCBP_broken", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("CurrentPC2LinePart", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("debugger-PC_mixedBP_broken", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), new Color (189, 230, 170, 255), null, null, null), + new AttributeSetConfigured ("editor-bookmark", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("stopwatchProfilingPointD", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), new Color (220, 220, 216, 255), null, null, null), + new AttributeSetConfigured ("CurrentPC2", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("debugger-PC_DBP", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("DisabledCondBreakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("OtherThread", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("debugger-PC_DCBP", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("FieldBreakpoint_stroke", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("debugger-multi_DBPCBP", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), new Color (220, 220, 216, 255), null, null, null), + new AttributeSetConfigured ("Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_cmpx", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-editor-annotations-implements-is-overridden-combined", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-xml-error", new Color (255, 0, 255, 255), null, null, true, true, false, new Color (255, 0, 255, 255), new Color (255, 0, 255, 255), null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_cmpx_hit_broken_dis", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("CallSite", new Color (231, 225, 239, 255), null, null, true, true, false, new Color (231, 225, 239, 255), null, null, null, null), + new AttributeSetConfigured ("debugger-PC_BP_broken", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("debugger-PC_DBP_stroke", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_broken", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("OtherThread_BP_broken", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("OtherThreads_PC_BP", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("Breakpoint_broken", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_compound_hit", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_hit_broken_dis", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_cmpx_hit", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-navigation-is_overridden_combined", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_dis", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_hit", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("DisabledFieldBreakpoint", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("OtherThread_DBP", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("DisabledFieldBreakpoint_stroke", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-navigation-overrides", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("loadgenProfilingPoint", new Color (180, 228, 252, 255), null, null, true, true, false, new Color (180, 228, 252, 255), null, null, null, null), + new AttributeSetConfigured ("CurrentExpressionLine_CBP", new Color (233, 255, 230, 255), null, null, true, true, false, new Color (233, 255, 230, 255), null, null, null, null), + new AttributeSetConfigured ("debugger-PC_CBP", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("DisabledBreakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("loadgenProfilingPointD", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-spi-editor-hints-parser_annotation_todo_fixable", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("OtherThreads", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-spi-editor-hints-parser_annotation_warn_fixable", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-spi-editor-hints-parser_annotation_err_fixable", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-versioning-annotate-Annotation", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-spi-editor-hints-parser_annotation_verifier", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("debugger-mixed_BP_broken", new Color (0, 0, 255, 255), null, null, true, true, false, new Color (0, 0, 255, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-subversion-Annotation", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-navigation-specializes", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-editor-annotations-implements", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("DisabledMethodBreakpoint_stroke", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("CurrentPC", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_compound", new Color (252, 157, 159, 255), null, null, true, true, false, new Color (252, 157, 159, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-editor-annotations-override-is-overridden-combined", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("OtherThread_BP", new Color (255, 0, 255, 255), null, null, true, true, false, new Color (255, 0, 255, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-editor-annotations-is_overridden", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-navigation-is_overridden_pseudo", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("debugger-multi_BPCBP", new Color (0, 0, 255, 255), null, null, true, true, false, new Color (0, 0, 255, 255), null, null, null, null), + new AttributeSetConfigured ("debugger-PC_DCBP_stroke", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("resetResultsProfilingPointD", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("CurrentExpressionLine_DCBP", new Color (233, 255, 230, 255), null, null, true, true, false, new Color (233, 255, 230, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-git-Annotation", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-navigation-extended_is_specialized", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("CurrentExpressionLine_DBP", new Color (233, 255, 230, 255), null, null, true, true, false, new Color (233, 255, 230, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-cpp-parser_annotation_err", null, null, new Color (255, 0, 0, 255), false, true, true, null, null, new Color (255, 0, 0, 255), null, null), + new AttributeSetConfigured ("org-netbeans-modules-editor-annotations-overrides", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("takeSnapshotProfilingPoint", new Color (180, 228, 252, 255), null, null, true, true, false, new Color (180, 228, 252, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-spi-editor-hints-parser_annotation_todo", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-navigation-overrides_pseudo", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("debugger-PC_mixedBP", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-spi-editor-hints-parser_annotation_verifier_fixable", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_hit_broken", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-spi-editor-hints-parser_annotation_err", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("CondBreakpoint_broken", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-editor-annotations-implements-has-implementations-combined", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("CurrentExpression", new Color (209, 255, 188, 255), null, null, true, true, false, new Color (209, 255, 188, 255), null, null, null, null), + new AttributeSetConfigured ("CurrentPC2_BP", new Color (255, 0, 255, 255), null, null, true, true, false, new Color (255, 0, 255, 255), null, null, null, null), + new AttributeSetConfigured ("debugger-PC_BP_stroke", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-navigation-is_specialized", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("debugger-multi_BPCBP_broken", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("DisabledCondBreakpoint_stroke", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("debugger-PC_BP", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("Breakpoint_stroke", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-highligh-semantic-markoccurrences", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("ClassBreakpoint", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("OtherThread_PC_BP", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("DisabledClassBreakpoint_stroke", null, null, null, false, true, false, null, null, null, null, null), + new AttributeSetConfigured ("CurrentExpressionLine", new Color (233, 255, 230, 255), null, null, true, true, false, new Color (233, 255, 230, 255), null, null, null, null), + new AttributeSetConfigured ("Dbx_Bpt_broken_dis", new Color (220, 220, 216, 255), null, null, true, true, false, new Color (220, 220, 216, 255), null, null, null, null), + new AttributeSetConfigured ("CurrentPCLinePart", new Color (189, 230, 170, 255), null, null, true, true, false, new Color (189, 230, 170, 255), null, null, null, null), + new AttributeSetConfigured ("org-netbeans-modules-cnd-navigation-is_overridden", null, null, null, false, true, false, null, null, null, null, null) +}; +// + +// +private static final AttributeSetConfigured [] highlightings = { + new AttributeSetConfigured ("nbeditor-bracesMatching-match", new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("text-limit-line-color", 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 ("synchronized-text-blocks-ext", null, new Color (204, 0, 153, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("nbeditor-bracesMatching-mismatch", 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 ("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 ("guarded", 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 ("nbeditor-bracesMatching-mismatch-multichar", new Color (186, 2, 58, 255), null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("status-bar-bold", null, new Color (255, 0, 0, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("nbeditor-bracesMatching-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 ("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 ("code-folding-bar", null, new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("synchronized-text-blocks-ext-slave", 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-whitespace", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("block-search", new Color (32, 32, 32, 255), null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("selection", new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("inc-search", new Color (255, 153, 0, 255), null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("nbeditor-bracesMatching-match-multichar", new Color (110, 110, 110, 255), null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("caret-color-insert-mode", 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) +}; +// + +// +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 ("mod-abstract", 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 ("mod-public", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-class", null, new Color (187, 129, 219, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-unused", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-method-declaration", null, new Color (88, 88, 196, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-interface-declaration", 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 ("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 ("character", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-parameter", null, new Color (251, 152, 32, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-deprecated", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-annotation-type", 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, null, null), + new AttributeSetConfigured ("string-escape", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("string-escape-invalid", null, null, 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 ("mod-local-variable", 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 ("mod-field", null, new Color (255, 255, 255, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("javadoc-tag", null, new Color (255, 0, 102, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-method", null, new Color (141, 141, 222, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-annotation-type-declaration", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-interface", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-protected", 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 ("mod-constructor-declaration", null, new Color (62, 176, 176, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("character-escape-invalid", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("html-tag", null, new Color (153, 153, 255, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-enum", null, new Color (187, 129, 219, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-local-variable-declaration", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-parameter-declaration", null, new Color (251, 151, 31, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-private", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-enum-declaration", null, new Color (148, 73, 189, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-static", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("character-escape", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-class-declaration", null, new Color (148, 73, 189, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-package-private", 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 ("mod-constructor", null, new Color (120, 212, 212, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("mod-field-declaration", null, new Color (255, 255, 255, 255), null, null, null, null, null, null, null, null, null) +}; +// + +// +private static final AttributeSetConfigured [] lang_CPP = { + new AttributeSetConfigured ("string", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("pragma-omp-keyword-directive", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("preprocessor", null, new Color (0, 155, 0, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-function", 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 ("keyword-directive", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-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 ("character", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("preprocessor-user-include-literal", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-macros", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("string-escape", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("string-escape-invalid", 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, null, null), + new AttributeSetConfigured ("identifier", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-unused-variables", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-class-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 ("cc-highlighting-macros-user", null, new Color (46, 146, 199, 255), 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 ("html-tag", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-mark-occurrences", new Color (0, 0, 255, 255), null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-inactive", null, new Color (150, 150, 150, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-macros-system", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("preprocessor-system-include-literal", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-function-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 ("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 ("preprocessor-keyword-directive", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("pragma-omp", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("errors", null, null, null, null, null, null, null, null, null, null, null) +}; +// + +// +private static final AttributeSetConfigured [] lang_C = { + new AttributeSetConfigured ("string", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("pragma-omp-keyword-directive", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("preprocessor", null, new Color (85, 186, 2, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-function", null, new Color (88, 88, 196, 255), 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 ("keyword-directive", null, new Color (230, 31, 91, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-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 ("character", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("preprocessor-user-include-literal", null, new Color (150, 233, 82, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-macros", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("string-escape", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("string-escape-invalid", null, null, 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, null, null), + new AttributeSetConfigured ("identifier", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-unused-variables", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-class-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 ("cc-highlighting-macros-user", null, new Color (46, 146, 199, 255), 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 ("html-tag", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-mark-occurrences", new Color (65, 65, 65, 255), null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-inactive", null, new Color (150, 150, 150, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-macros-system", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("preprocessor-system-include-literal", null, new Color (186, 243, 138, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("cc-highlighting-function-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 ("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 ("preprocessor-keyword-directive", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("pragma-omp", null, new Color (46, 146, 199, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("errors", null, null, null, null, null, null, null, null, null, null, null) +}; +// + +// + private static final AttributeSetConfigured [] lang_All_Languages = { + new AttributeSetConfigured ("identifier", null, new Color (255, 255, 255, 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 ("string", null, new Color (255, 255, 90, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("method", null, null, null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("markup-element", null, new Color (255, 200, 0, 255), 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 ("error", new Color (255, 0, 0, 255), new Color (255, 255, 255, 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 ("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 ("url", null, null, 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, null, null), + new AttributeSetConfigured ("field", null, new Color (9, 134, 24, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("char", null, new Color (255, 255, 145, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("warning", null, null, 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 ("keyword", null, new Color (230, 31, 91, 255), null, null, null, null, null, null, null, null, null), + new AttributeSetConfigured ("whitespace", null, null, null, null, null, null, null, null, null, null, null) +}; +// + +// 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("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("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("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("annotationFormat.added", org.idp.laf.Color.ColorClass.AT, 150, 233, 82, 255, ""), + new org.idp.laf.Color("annotationFormat.conflict", org.idp.laf.Color.ColorClass.AT, 230, 31, 91, 255, ""), + new org.idp.laf.Color("annotationFormat.excluded", org.idp.laf.Color.ColorClass.AT, 134, 134, 134, 255, ""), + new org.idp.laf.Color("annotationFormat.modified", org.idp.laf.Color.ColorClass.AT, 62, 176, 176, 255, ""), + new org.idp.laf.Color("annotationFormat.new", org.idp.laf.Color.ColorClass.AT, 121, 229, 31, 255, ""), + new org.idp.laf.Color("annotationFormat.removed", org.idp.laf.Color.ColorClass.AT, 255, 135, 35, 255, ""), + new org.idp.laf.Color("annotationFormat.textAnnotation", org.idp.laf.Color.ColorClass.AT, 166, 165, 165, 255, ""), }; -//// -// -//// +// + +// public static final org.idp.laf.Color[] SVN = { + new org.idp.laf.Color("annotationFormat.addedLocally", org.idp.laf.Color.ColorClass.AT, 0, 128, 0, 255, ""), + new org.idp.laf.Color("annotationFormat.conflict", org.idp.laf.Color.ColorClass.AT, 255, 0, 0, 255, ""), + new org.idp.laf.Color("annotationFormat.copiedLocally", org.idp.laf.Color.ColorClass.AT, 0, 128, 0, 255, ""), + new org.idp.laf.Color("annotationFormat.excluded", org.idp.laf.Color.ColorClass.AT, 153, 153, 153, 255, ""), + new org.idp.laf.Color("annotationFormat.mergeable", org.idp.laf.Color.ColorClass.AT, 0, 0, 255, 255, ""), + new org.idp.laf.Color("annotationFormat.modifiedinRepository", org.idp.laf.Color.ColorClass.AT, 0, 0, 0, 255, ""), + new org.idp.laf.Color("annotationFormat.modifiedLocally", org.idp.laf.Color.ColorClass.AT, 0, 0, 255, 255, ""), + new org.idp.laf.Color("annotationFormat.newinRepository", org.idp.laf.Color.ColorClass.AT, 0, 0, 0, 255, ""), + new org.idp.laf.Color("annotationFormat.newLocally", org.idp.laf.Color.ColorClass.AT, 0, 128, 0, 255, ""), + new org.idp.laf.Color("annotationFormat.removedinRepository", org.idp.laf.Color.ColorClass.AT, 0, 0, 0, 255, ""), + new org.idp.laf.Color("annotationFormat.removedLocally", org.idp.laf.Color.ColorClass.AT, 153, 153, 153, 255, ""), + new org.idp.laf.Color("annotationFormat.textAnnotation", org.idp.laf.Color.ColorClass.AT, 153, 153, 153, 255, ""), }; -//// -// -//// +// + +// public static final org.idp.laf.Color[] HG = { + new org.idp.laf.Color("annotationFormat.addedLocally", org.idp.laf.Color.ColorClass.AT, 0, 128, 0, 255, ""), + new org.idp.laf.Color("annotationFormat.conflict", org.idp.laf.Color.ColorClass.AT, 255, 0, 0, 255, ""), + new org.idp.laf.Color("annotationFormat.copiedLocally", org.idp.laf.Color.ColorClass.AT, 0, 128, 0, 255, ""), + new org.idp.laf.Color("annotationFormat.deletedLocally", org.idp.laf.Color.ColorClass.AT, 153, 153, 153, 255, ""), + new org.idp.laf.Color("annotationFormat.excluded", org.idp.laf.Color.ColorClass.AT, 153, 153, 153, 255, ""), + new org.idp.laf.Color("annotationFormat.modifiedLocally", org.idp.laf.Color.ColorClass.AT, 0, 0, 255, 255, ""), + new org.idp.laf.Color("annotationFormat.newLocally", org.idp.laf.Color.ColorClass.AT, 0, 128, 0, 255, ""), + new org.idp.laf.Color("annotationFormat.removedLocally", org.idp.laf.Color.ColorClass.AT, 153, 153, 153, 255, ""), + new org.idp.laf.Color("annotationFormat.textAnnotation", org.idp.laf.Color.ColorClass.AT, 153, 153, 153, 255, ""), }; -//// -// +// + //// public static final org.idp.laf.Color[] DIFF = { // new org.idp.laf.Color("addedColor", org.idp.laf.Color.ColorClass.AT, 48, 94, 9, 255, ""), @@ -391,12 +397,12 @@ static color_map = new HashMap>(); -// color_map.put("annotations", wrap(annotations)); -// color_map.put("highlightings", wrap(highlightings)); -// color_map.put("Java", wrap(lang_Java)); -// color_map.put("C++", wrap(lang_CPP)); -// color_map.put("C", wrap(lang_C)); -// color_map.put("All Languages", wrap(lang_All_Languages)); + color_map.put("annotations", wrap(annotations)); + color_map.put("highlightings", wrap(highlightings)); + color_map.put("Java", wrap(lang_Java)); + color_map.put("C++", wrap(lang_CPP)); + color_map.put("C", wrap(lang_C)); + color_map.put("All Languages", wrap(lang_All_Languages)); } diff --git a/src/org/idp/laf/TitanEditor.java b/src/org/idp/laf/TitanEditor.java index 455080a..e371792 100644 --- a/src/org/idp/laf/TitanEditor.java +++ b/src/org/idp/laf/TitanEditor.java @@ -46,7 +46,7 @@ public class TitanEditor { 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 boolean no_load = true; + private static final boolean no_load = false; private static Class COLOR_MODEL; private static Class EDITOR_SETTINGS; @@ -110,43 +110,47 @@ public class TitanEditor { private static void extractDiffModule () throws IllegalAccessException { - HashMap linkMap = new HashMap(); + - java.awt.Color nb_diff_added_color = (java.awt.Color) UIManager.get ("nb.diff.added.color"); - java.awt.Color nb_diff_changed_color = (java.awt.Color) UIManager.get ("nb.diff.changed.color"); - java.awt.Color nb_diff_deleted_color = (java.awt.Color) UIManager.get ("nb.diff.deleted.color"); - java.awt.Color nb_diff_applied_color = (java.awt.Color) UIManager.get ("nb.diff.applied.color"); - java.awt.Color nb_diff_notapplied_color = (java.awt.Color) UIManager.get ("nb.diff.notapplied.color"); - java.awt.Color nb_diff_unresolved_color = (java.awt.Color) UIManager.get ("nb.diff.unresolved.color"); - java.awt.Color nb_diff_sidebar_deleted_color = (java.awt.Color) UIManager.get ("nb.diff.sidebar.deleted.color"); - java.awt.Color nb_diff_sidebar_changed_color = (java.awt.Color) UIManager.get ("nb.diff.sidebar.changed.color"); - - String[] keys = + if (provider_DIFF != null) { - "addedColor", - "changedColor", - "deletedColor", - "merge.appliedColor", - "merge.notappliedColor", - "merge.unresolvedColor", - "sidebar.changedColor", - "sidebar.deletedColor" - }; + + HashMap linkMap = new HashMap(); - linkMap.put("addedColor" , nb_diff_added_color.getRGB()); - linkMap.put("changedColor" , nb_diff_changed_color.getRGB()); - linkMap.put("deletedColor" , nb_diff_deleted_color.getRGB()); - linkMap.put("merge.appliedColor" , nb_diff_applied_color.getRGB()); - linkMap.put("merge.notappliedColor" , nb_diff_notapplied_color.getRGB()); - linkMap.put("merge.unresolvedColor" , nb_diff_unresolved_color.getRGB()); - linkMap.put("sidebar.changedColor" , nb_diff_sidebar_deleted_color.getRGB()); - linkMap.put("sidebar.deletedColor" , nb_diff_sidebar_changed_color.getRGB()); + java.awt.Color nb_diff_added_color = (java.awt.Color) UIManager.get ("nb.diff.added.color"); + java.awt.Color nb_diff_changed_color = (java.awt.Color) UIManager.get ("nb.diff.changed.color"); + java.awt.Color nb_diff_deleted_color = (java.awt.Color) UIManager.get ("nb.diff.deleted.color"); + java.awt.Color nb_diff_applied_color = (java.awt.Color) UIManager.get ("nb.diff.applied.color"); + java.awt.Color nb_diff_notapplied_color = (java.awt.Color) UIManager.get ("nb.diff.notapplied.color"); + java.awt.Color nb_diff_unresolved_color = (java.awt.Color) UIManager.get ("nb.diff.unresolved.color"); + java.awt.Color nb_diff_sidebar_deleted_color = (java.awt.Color) UIManager.get ("nb.diff.sidebar.deleted.color"); + java.awt.Color nb_diff_sidebar_changed_color = (java.awt.Color) UIManager.get ("nb.diff.sidebar.changed.color"); + + String[] keys = + { + "addedColor", + "changedColor", + "deletedColor", + "merge.appliedColor", + "merge.notappliedColor", + "merge.unresolvedColor", + "sidebar.changedColor", + "sidebar.deletedColor" + }; + + linkMap.put("addedColor" , nb_diff_added_color != null ? nb_diff_added_color.getRGB() : java.awt.Color.GREEN.getRGB()); + linkMap.put("changedColor" , nb_diff_changed_color != null ? nb_diff_changed_color.getRGB() : java.awt.Color.BLUE.getRGB()); + linkMap.put("deletedColor" , nb_diff_deleted_color != null ? nb_diff_deleted_color.getRGB() : java.awt.Color.RED.getRGB()); + linkMap.put("merge.appliedColor" , nb_diff_applied_color != null ? nb_diff_applied_color.getRGB() : java.awt.Color.YELLOW.getRGB()); + linkMap.put("merge.notappliedColor" , nb_diff_notapplied_color != null ? nb_diff_notapplied_color.getRGB() : java.awt.Color.ORANGE.getRGB()); + linkMap.put("merge.unresolvedColor" , nb_diff_unresolved_color != null ? nb_diff_unresolved_color.getRGB() : java.awt.Color.RED.getRGB()); + linkMap.put("sidebar.changedColor" , nb_diff_sidebar_deleted_color != null ? nb_diff_sidebar_deleted_color.getRGB() : java.awt.Color.CYAN.getRGB()); + linkMap.put("sidebar.deletedColor" , nb_diff_sidebar_changed_color != null ? nb_diff_sidebar_changed_color.getRGB() : java.awt.Color.DARK_GRAY.getRGB()); + - String res = "// " + + String res = "// " + "\npublic static final org.idp.laf.Color[] DIFF = {\n"; - - if (provider_DIFF != null) - { + try { Object defaults = provider_getDefault.invoke(null, new Object[0]); @@ -174,11 +178,13 @@ public class TitanEditor { } catch (InvocationTargetException ex) { Exceptions.printStackTrace(ex); } + + res += "};\n"; + res += "// \n"; + System.out.println(res); } - res += "};\n"; - res += "// \n"; - System.out.println(res); + } private static void applyColorForDiffModule () throws IllegalAccessException, IllegalArgumentException, InvocationTargetException @@ -318,55 +324,21 @@ public class TitanEditor { "\npublic static final org.idp.laf.Color[] " + name + " = {\n"; if (provider != null) { - - - ArrayList colors_list = new ArrayList(); - - Preferences forModule = NbPreferences.forModule(provider); - try { - for (String key : forModule.keys()) - { - java.awt.Color cc = new java.awt.Color(Integer.parseInt(forModule.get(key, null))); - res += " " + (new Color(key, Color.ColorClass.AT, - cc.getRed(), - cc.getGreen(), - cc.getBlue(), - cc.getAlpha(), "")).getString() + ",\n"; - } - } catch (BackingStoreException ex) { - Exceptions.printStackTrace(ex); + Preferences forModule = NbPreferences.forModule(provider); + try { + for (String key : forModule.keys()) + { + java.awt.Color cc = new java.awt.Color(Integer.parseInt(forModule.get(key, null))); + res += " " + (new Color(key, Color.ColorClass.AT, + cc.getRed(), + cc.getGreen(), + cc.getBlue(), + cc.getAlpha(), "")).getString() + ",\n"; } - - -// try { -// //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"; -// } - + } catch (BackingStoreException ex) { + Exceptions.printStackTrace(ex); + } + } res += "};\n"; res += "// \n"; @@ -377,46 +349,28 @@ public class TitanEditor { private static void applyColorForModule (Class provider, org.idp.laf.Color[] colors_theme) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { -// if (provider != null) -// { -// try -// { -// provider_getInstance = provider.getDeclaredMethod( "getInstance", new Class[0] ); //NOI18N -// -// Object provider_obj = provider_getInstance.invoke(null, new Object[0]); -// -// Map colors = (Map) provider_getColors.invoke(provider_obj, new Object[0]); -// -// Map new_colours = new HashMap(); -// boolean found_new = false; -// for (String str : colors.keySet()) -// { -// found_new = false; -// for (org.idp.laf.Color cc : colors_theme) -// { -// if (cc.getName().equals(str)) -// { -// java.awt.Color toSet = (java.awt.Color) cc.getObject(); -// new_colours.put(str, toSet); -// found_new = true; -// break; -// } -// } -// if (!found_new) -// { -// new_colours.put(str, colors.get(str)[0]); -// } -// } -// -// provider_colorsChanged.invoke(provider_obj, new_colours); -// -// } catch (NoSuchMethodException ex) { -// Exceptions.printStackTrace(ex); -// } catch (SecurityException ex) { -// Exceptions.printStackTrace(ex); -// } -// -// } + + if (provider != null) + { + Preferences forModule = NbPreferences.forModule(provider); + try { + for (String key : forModule.keys()) + { + for (org.idp.laf.Color cc : colors_theme) + { + if (cc.getName().equals(key)) + { + java.awt.Color toSet = (java.awt.Color) cc.getObject(); + forModule.put(key, String.valueOf(toSet.getRGB())); + break; + } + } + + } + } catch (BackingStoreException ex) { + Exceptions.printStackTrace(ex); + } + } } public static void load_editor () @@ -511,10 +465,21 @@ public class TitanEditor { HashMap cluster = ColorTheme.color_map.get(set_name); if (cluster != null) { - AttributeSetConfigured asc = cluster.get((String) at.getAttribute(const_DisplayName)); + String name = "BAD ASS"; + if (annotation) + { + Object annotationType = at.getAttribute("annotationType"); + name = (String) getName.invoke(annotationType, new Object[0]); + } + else + { + name = (String) at.getAttribute(javax.swing.text.StyleConstants.NameAttribute); + } + + AttributeSetConfigured asc = cluster.get(name); if (asc != null) { - if (!at.getAttribute(const_DisplayName).equals("Default")) + if (name.equals("default")) { res.add(apply_colors(asc, at, annotation)); } @@ -598,12 +563,6 @@ public class TitanEditor { return sas; } - /* - type = 0 - Annotation - type = 1 - Highlight - type = 2 - Color code - */ - private static void process_set(String set_name, Collection data, boolean annotation) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {