Mass update

master
Wizard Atman 11 years ago
commit a3cb7fc4ac

@ -2,6 +2,4 @@ OpenIDE-Module-Display-Category=Base IDE
OpenIDE-Module-Long-Description=\
This plugin was designed only to compose well readable and enoght radk theme for Netbeans, But day by day it was enlarging - and now it is what it is.
OpenIDE-Module-Name=[idP!] Crew LAF
LBL_TITAN=[idP!] Titan Theme
LBL_TITAN_EDITOR=[idP!] Titan
OpenIDE-Module-Short-Description=Editor for Netbeans Metal Look and Feel

@ -18,7 +18,7 @@ public class ColorTheme {
// <editor-fold desc="annotations" defaultstate="collapsed">
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 ("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),
@ -44,107 +44,107 @@ private static final AttributeSetConfigured [] annotations = {
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 ("CurrentExpressionLine_BP", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), 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 ("Dbx_Bpt_cmpx_broken", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), 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 ("Dbx_Bpt_cmpx_dis", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("DisabledBreakpoint_stroke", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), 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 ("CurrentPC2LinePart", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), 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 ("CurrentPC2", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("debugger-PC_DBP", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("DisabledCondBreakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), 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 ("debugger-PC_DCBP", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), 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 ("Breakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Dbx_Bpt_cmpx", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), 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 ("Dbx_Bpt_cmpx_hit_broken_dis", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("CallSite", new Color (231, 225, 239, 255), null, null, true, true, false, null, new Color (231, 225, 239, 255), null, null, null),
new AttributeSetConfigured ("debugger-PC_BP_broken", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("debugger-PC_DBP_stroke", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Dbx_Bpt_broken", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("OtherThread_BP_broken", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("OtherThreads_PC_BP", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Breakpoint_broken", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Dbx_Bpt_compound_hit", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Dbx_Bpt_hit_broken_dis", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Dbx_Bpt_cmpx_hit", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), 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 ("Dbx_Bpt_dis", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("Dbx_Bpt_hit", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), 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 ("OtherThread_DBP", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), 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 ("Dbx_Bpt", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("loadgenProfilingPoint", new Color (180, 228, 252, 255), null, null, true, true, false, null, new Color (180, 228, 252, 255), null, null, null),
new AttributeSetConfigured ("CurrentExpressionLine_CBP", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null),
new AttributeSetConfigured ("debugger-PC_CBP", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("DisabledBreakpoint", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("loadgenProfilingPointD", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), 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 ("debugger-mixed_BP_broken", new Color (0, 0, 255, 255), null, null, true, true, false, null, new Color (0, 0, 255, 255), 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 ("CurrentPC", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Dbx_Bpt_compound", new Color (252, 157, 159, 255), null, null, true, true, false, null, new Color (252, 157, 159, 255), 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 ("OtherThread_BP", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), 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 ("debugger-multi_BPCBP", new Color (0, 0, 255, 255), null, null, true, true, false, null, new Color (0, 0, 255, 255), null, null, null),
new AttributeSetConfigured ("debugger-PC_DCBP_stroke", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("resetResultsProfilingPointD", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("CurrentExpressionLine_DCBP", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), 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 ("CurrentExpressionLine_DBP", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null),
new AttributeSetConfigured ("org-netbeans-modules-cnd-cpp-parser_annotation_err", null, null, null, false, true, false, 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 ("takeSnapshotProfilingPoint", new Color (180, 228, 252, 255), null, null, true, true, false, null, new Color (180, 228, 252, 255), 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 ("debugger-PC_mixedBP", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), 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 ("Dbx_Bpt_hit_broken", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), 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 ("CondBreakpoint_broken", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), 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 ("CurrentExpression", new Color (209, 255, 188, 255), null, null, true, true, false, null, new Color (209, 255, 188, 255), null, null, null),
new AttributeSetConfigured ("CurrentPC2_BP", new Color (255, 0, 255, 255), null, null, true, true, false, null, new Color (255, 0, 255, 255), null, null, null),
new AttributeSetConfigured ("debugger-PC_BP_stroke", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), 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 ("debugger-multi_BPCBP_broken", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("DisabledCondBreakpoint_stroke", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("debugger-PC_BP", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("Breakpoint_stroke", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), 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 ("OtherThread_PC_BP", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), 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 ("CurrentExpressionLine", new Color (233, 255, 230, 255), null, null, true, true, false, null, new Color (233, 255, 230, 255), null, null, null),
new AttributeSetConfigured ("Dbx_Bpt_broken_dis", new Color (220, 220, 216, 255), null, null, true, true, false, null, new Color (220, 220, 216, 255), null, null, null),
new AttributeSetConfigured ("CurrentPCLinePart", new Color (189, 230, 170, 255), null, null, true, true, false, null, new Color (189, 230, 170, 255), null, null, null),
new AttributeSetConfigured ("org-netbeans-modules-cnd-navigation-is_overridden", null, null, null, false, true, false, null, null, null, null, null)
};
// </editor-fold>
@ -185,15 +185,15 @@ 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 (199, 98, 139, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("javadoc-identifier", null, new Color (128, 128, 128, 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 ("mod-method-declaration", 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, 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 ("literal", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("number", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("character", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("mod-parameter", null, new Color (251, 152, 32, 255), null, null, null, null, null, null, null, null, null),
@ -204,17 +204,17 @@ private static final AttributeSetConfigured [] lang_Java = {
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 ("identifier", null, new Color (0, 255, 255, 255), 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 ("mod-constructor-declaration", null, new Color (62, 176, 176, 255), 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 ("separator", null, null, 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),
@ -227,13 +227,14 @@ private static final AttributeSetConfigured [] lang_Java = {
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 ("errors", null, null, 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)
};
// </editor-fold>
// <editor-fold desc="C++" defaultstate="collapsed">
private static final AttributeSetConfigured [] lang_CPP = {
new AttributeSetConfigured ("string", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("string", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("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),
@ -311,24 +312,37 @@ private static final AttributeSetConfigured [] lang_C = {
// <editor-fold desc="All Languages" defaultstate="collapsed">
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 ("private", 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", 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 ("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", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("public", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("method-parameter", null, new Color (160, 96, 1, 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 ("keyword", null, new Color (230, 31, 91, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("local-variable", null, null, null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("class", 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", null, null, null, null, null, null, null, null, null, false, true),
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 ("constructor", null, null, 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 ("error", new Color (255, 0, 0, 255), new Color (255, 255, 255, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("abstract", 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 ("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 ("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, 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 ("unused", null, new Color (128, 128, 128, 255), null, null, null, null, null, null, null, null, null),
new AttributeSetConfigured ("whitespace", null, null, null, null, null, null, null, null, null, null, null)
};
// </editor-fold>

@ -18,8 +18,6 @@ import org.openide.windows.WindowManager;
*/
public class Installer extends ModuleInstall
{
private static boolean try_to_load_companion_colors = false;
@Override
public void restored() {
@ -30,32 +28,53 @@ public class Installer extends ModuleInstall
public void run()
{
Kernel.load_kernel();
}
});
// System.out.println(">>>>>>>>>>>>>>> L&F = " + UIManager.getLookAndFeel().getName());
//
//// if (UIManager.getLookAndFeel().getName().equals(NbBundle.getMessage(TitanLookAndFeel.class, "LBL_TITAN")))
//// {
//
// //}
WindowManager.getDefault().invokeWhenUIReady( new Runnable()
//
//
final Preferences prefs = NbPreferences.root().node( "laf" ); //NOI18N
if( !prefs.getBoolean("idp.titan_editor.installed", false) ) //NOI18N
{
@Override
public void run() {
TitanEditor.load_editor();
}
});
WindowManager.getDefault().invokeWhenUIReady( new Runnable()
{
@Override
public void run() {
TitanEditor.load_editor();
prefs.putBoolean("idp.titan_editor.installed", true ); //NOI18N
}
});
}
}
}
@Override
public void validate() throws IllegalStateException
{
Preferences prefs = NbPreferences.root().node( "laf" ); //NOI18N
if( !prefs.getBoolean("idp.titan.installed", false) ) { //NOI18N
prefs.put( "laf", TitanLookAndFeel.class.getName() ); //NOI18N
if (TitanLookAndFeel.self_install())
{
System.out.print("Setting up anti-aliasing hints to conf file...");
if (Kernel.setup_font_antialiaing_hints())
{
System.err.println("FAIL");
return;
}
System.out.println("OK");
}
prefs.putBoolean("idp.titan.installed", true ); //NOI18N
TitanLookAndFeel.self_install();
}
}

@ -16,6 +16,7 @@ import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Method;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
@ -53,11 +54,9 @@ public class Kernel {
public static void load_kernel ()
{
if (prepare_titan_laf ())
if (UIManager.getLookAndFeel().getName().equals("[idP!] Titan")) //NOI18N
{
String nb_etc = retrieve_netbeans_etc_dir();
setup_font_antialiaing_hints(nb_etc);
String cfh_dir = retrieve_app_folder();
boolean a = (new File (cfh_dir).mkdirs());
load_setup (cfh_dir);
@ -72,26 +71,23 @@ public class Kernel {
}
else
{
// String message = "\"Titan\" Look and Feel is not selected"
// + " - no modifications done. Follow your ugly way of live.";
// JOptionPane.showMessageDialog(new JFrame(), message, "Titan is not selected!",
// JOptionPane.ERROR_MESSAGE);
System.err.println("\"Titan\" Look and Feel is not selected"
+ " - no modifications done. Follow your ugly way of live.");
}
}
private static boolean prepare_titan_laf ()
{
UIManager.put("nb.forceui", true);
UIManager.put("netbeans.plaf.disable.ui.customizations", false);
return UIManager.getLookAndFeel().getName().equals(NbBundle.getMessage(TitanLookAndFeel.class, "LBL_TITAN"));
}
// private static boolean prepare_titan_laf ()
// {
// // UIManager.put("nb.forceui", true);
// // UIManager.put("netbeans.plaf.disable.ui.customizations", false);
// return ;
// }
private static boolean setup_font_antialiaing_hints (String nb_etc)
public static boolean setup_font_antialiaing_hints ()
{
try
{
String nb_etc = retrieve_netbeans_etc_dir ();
System.setProperty("awt.useSystemAAFontSettings","lcd");
System.setProperty("swing.aatext", "true");
@ -99,7 +95,7 @@ public class Kernel {
if( Files.isWritable(path))
{
List<String> linesL = Files.readAllLines(path);
List<String> linesL = Files.readAllLines(path, StandardCharsets.UTF_8);
String [] lines = new String[linesL.size()];
int i = 0;

@ -24,6 +24,7 @@ import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;
import org.openide.util.Exceptions;
import org.openide.util.Lookup;
import org.openide.util.NbBundle;
import org.openide.util.NbPreferences;
/**
@ -90,8 +91,8 @@ public class TitanEditor {
private static Object const_WaveUnderlineColor;
private static Object colorModel;
private static final String DEFAULT_THEME_NAME = "NetBeans"; //NOI18N
private static final String TITAN_THEME_NAME = "[idP!] Titan"; //NOI18N
private static final String DEFAULT_THEME_NAME = "NetBeans 5.5"; //NOI18N
//private static final String TITAN_THEME_NAME = NbBundle.getMessage(TitanLookAndFeel.class, "LBL_TITAN");
private static Class provider_GIT = null;
private static Class provider_SVN = null;
@ -293,29 +294,51 @@ public class TitanEditor {
return false;
}
private static void setup_theme () throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
{
String current_profile = (String) getCurrentProfile.invoke( colorModel, new Object[0] );
// System.out.println("Current profile = " + current_profile);
// if (!current_profile.equals(TITAN_THEME_NAME))
// private static String setup_theme () throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
// {
// // String current_profile
////
//// Set<String> profile_set = (Set<String>) getProfiles.invoke( colorModel, new Object[0] );
//// //boolean contain_target_theme = false;
////// for (String str : profile_set)
////// {
////// System.out.println("> " + str);
//////// if (str.equals(TITAN_THEME_NAME)) contain_target_theme = true;
//// }
////
//// if (!contain_target_theme)
//// {
// // Ugly dublication routine, sorry NB developers...
//
// // }
//
// // setCurrentProfile.invoke(colorModel, TITAN_THEME_NAME);
// //}
// return current_profile;
// }
// public static void remove_editor () throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
// {
// Set<String> profile_set = (Set<String>) getProfiles.invoke( colorModel, new Object[0] );
// boolean contain_target_theme = false;
// for (String str : profile_set)
// {
Set<String> profile_set = (Set<String>) getProfiles.invoke( colorModel, new Object[0] );
boolean contain_target_theme = false;
for (String str : profile_set)
{
// System.out.println("> " + str);
if (str.equals(TITAN_THEME_NAME)) contain_target_theme = true;
}
// if (str.equals(TITAN_THEME_NAME)) contain_target_theme = true;
// }
//
// if (contain_target_theme)
// {
// setCurrentProfile.invoke(colorModel, TITAN_THEME_NAME);
//
//
// setCurrentProfile.invoke(colorModel, DEFAULT_THEME_NAME);
// }
//
//
//
//
// }
if (!contain_target_theme)
{
// Ugly dublication routine, sorry NB developers...
setCurrentProfile.invoke(colorModel, DEFAULT_THEME_NAME);
}
setCurrentProfile.invoke(colorModel, TITAN_THEME_NAME);
//}
}
private static void extractColorsForModule (String name, Class provider) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
{
@ -378,15 +401,16 @@ public class TitanEditor {
if (!pre_load()) return;
try {
setup_theme ();
// String swith_back = (String) getCurrentProfile.invoke( colorModel, new Object[0] );
if (no_load)
{
Collection<AttributeSet> annotations = (Collection<AttributeSet>) getAnnotations.invoke(colorModel, TITAN_THEME_NAME);
Collection<AttributeSet> annotations = (Collection<AttributeSet>) getAnnotations.invoke(colorModel, DEFAULT_THEME_NAME);
process_set ("annotations", annotations, true);
Collection<AttributeSet> highlightings = (Collection<AttributeSet>) getHighlightings.invoke(colorModel, TITAN_THEME_NAME);
Collection<AttributeSet> highlightings = (Collection<AttributeSet>) getHighlightings.invoke(colorModel, DEFAULT_THEME_NAME);
process_set ("highlightings", highlightings, false);
Object languages = getLanguages.invoke( colorModel, new Object[0] );
@ -399,7 +423,7 @@ public class TitanEditor {
str.equals("C++") ||
str.equals("C"))
{
Collection<AttributeSet> category = (Collection<AttributeSet>) getCategories.invoke(colorModel, TITAN_THEME_NAME, str);
Collection<AttributeSet> category = (Collection<AttributeSet>) getCategories.invoke(colorModel, DEFAULT_THEME_NAME, str);
process_set (str, category, false);
}
}
@ -414,39 +438,48 @@ public class TitanEditor {
}
else
{
Collection<AttributeSet> annotations = (Collection<AttributeSet>) getAnnotations.invoke(colorModel, TITAN_THEME_NAME);
Collection<AttributeSet> annotations_upd = apply_set ("annotations", annotations, true);
setAnnotations.invoke(colorModel, TITAN_THEME_NAME, annotations_upd);
Collection<AttributeSet> highlightings = (Collection<AttributeSet>) getHighlightings.invoke(colorModel, TITAN_THEME_NAME);
Collection<AttributeSet> highlightings_upd = apply_set ("highlightings", highlightings, false);
setHighlightings.invoke(colorModel, TITAN_THEME_NAME, highlightings_upd);
Object languages = getLanguages.invoke( colorModel, new Object[0] );
Set<String> languages_set = (Set<String>) languages;
for (String str : languages_set)
{
if (str.equals("All Languages") ||
str.equals("Java") ||
str.equals("C++") ||
str.equals("C"))
setCurrentProfile.invoke(colorModel, DEFAULT_THEME_NAME);
Collection<AttributeSet> annotations = (Collection<AttributeSet>) getAnnotations.invoke(colorModel, DEFAULT_THEME_NAME);
Collection<AttributeSet> annotations_upd = apply_set ("annotations", annotations, true);
setAnnotations.invoke(colorModel, DEFAULT_THEME_NAME, annotations_upd);
Collection<AttributeSet> highlightings = (Collection<AttributeSet>) getHighlightings.invoke(colorModel, DEFAULT_THEME_NAME);
Collection<AttributeSet> highlightings_upd = apply_set ("highlightings", highlightings, false);
setHighlightings.invoke(colorModel, DEFAULT_THEME_NAME, highlightings_upd);
Object languages = getLanguages.invoke( colorModel, new Object[0] );
Set<String> languages_set = (Set<String>) languages;
for (String str : languages_set)
{
Collection<AttributeSet> category = (Collection<AttributeSet>) getCategories.invoke(colorModel, TITAN_THEME_NAME, str);
Collection<AttributeSet> category_upd = apply_set (str, category, false);
setCategories.invoke(colorModel, TITAN_THEME_NAME, str, category_upd);
if (str.equals("All Languages") ||
str.equals("Java") ||
str.equals("C++") ||
str.equals("C"))
{
Collection<AttributeSet> category = (Collection<AttributeSet>) getCategories.invoke(colorModel, DEFAULT_THEME_NAME, str);
Collection<AttributeSet> category_upd = apply_set (str, category, false);
setCategories.invoke(colorModel, DEFAULT_THEME_NAME, str, category_upd);
}
}
}
applyColorForModule (provider_GIT, ColorTheme.GIT);
applyColorForModule (provider_SVN, ColorTheme.SVN);
applyColorForModule (provider_HG, ColorTheme.HG);
applyColorForDiffModule ();
applyColorForModule (provider_GIT, ColorTheme.GIT);
applyColorForModule (provider_SVN, ColorTheme.SVN);
applyColorForModule (provider_HG, ColorTheme.HG);
applyColorForDiffModule ();
// if (!first_run)
// {
// setCurrentProfile.invoke(colorModel, swith_back);
// }
}
} catch (IllegalAccessException ex) {
Exceptions.printStackTrace(ex);
} catch (IllegalArgumentException ex) {

@ -5,26 +5,83 @@
*/
package org.idp.laf;
import java.util.prefs.Preferences;
import javax.swing.UIDefaults;
import javax.swing.UIManager;
import javax.swing.plaf.metal.MetalLookAndFeel;
import static javax.swing.plaf.metal.MetalLookAndFeel.getCurrentTheme;
import static javax.swing.plaf.metal.MetalLookAndFeel.setCurrentTheme;
import org.openide.util.NbBundle;
import org.openide.util.NbPreferences;
/**
* @author Edward M. Kagan <pagan@idp-crew.com>
*/
public class TitanLookAndFeel extends MetalLookAndFeel {
public static void self_install ()
public static boolean self_install ()
{
UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo( NbBundle.getMessage(TitanLookAndFeel.class, "LBL_TITAN"), TitanLookAndFeel.class.getName()) );
UIManager.LookAndFeelInfo[] installedLookAndFeels = UIManager.getInstalledLookAndFeels();
for (UIManager.LookAndFeelInfo lafi : installedLookAndFeels)
{
String laf_name = "[idP!] Titan"; //NOI18N
if (lafi.getName().equals(laf_name))
{
System.out.println("LAF Persist - no install.");
return false;
}
}
System.out.print("NO LAF - installing... ");
UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo("[idP!] Titan" , TitanLookAndFeel.class.getName()) ); //NOI18N
System.out.println("OK");
System.out.print("Applying LAf... ");
Preferences prefs = NbPreferences.root().node( "laf" ); //NOI18N
prefs.put( "laf", TitanLookAndFeel.class.getName() ); //NOI18N
System.out.println("OK");
return true;
}
// public static void self_remove ()
// {
// UIManager.LookAndFeelInfo[] installedLookAndFeels = UIManager.getInstalledLookAndFeels();
//
// for (UIManager.LookAndFeelInfo lafi : installedLookAndFeels)
// {
// System.out.println(">>>> " + lafi.getName());
// String laf_name = NbBundle.getMessage(TitanLookAndFeel.class, "LBL_TITAN");
// if (lafi.getName().equals(laf_name))
// {
// System.out.print("LAF Persist - removing...");
// int i = 0;
// UIManager.LookAndFeelInfo[] toSet = new UIManager.LookAndFeelInfo[installedLookAndFeels.length - 1];
// for (UIManager.LookAndFeelInfo copy : installedLookAndFeels)
// {
// if (!copy.getName().equals(laf_name))
// {
// toSet[i] = copy;
// i++;
// }
// }
// UIManager.setInstalledLookAndFeels(toSet);
// System.out.println("OK");
// System.out.print("Setting Metal theme by default...");
// try {
// UIManager.setLookAndFeel(MetalLookAndFeel.class.getName());
// System.out.print("OK");
// } catch (Exception ex) {
// System.out.print("FAIL");
// }
// return;
// }
// }
//
// System.out.println("NO LAF - nothing to remove.");
// }
@Override
public String getName() {
return NbBundle.getMessage(TitanLookAndFeel.class, "LBL_TITAN");
return "[idP!] Titan"; //NOI18N
}
@Override

@ -10,6 +10,7 @@ import javax.swing.UIDefaults;
import javax.swing.plaf.ColorUIResource;
import javax.swing.plaf.FontUIResource;
import javax.swing.plaf.metal.MetalTheme;
import org.openide.util.NbBundle;
/**
* @author Edward M. Kagan <pagan@idp-crew.com>
@ -58,7 +59,7 @@ public class TitanTheme extends MetalTheme {
@Override
public String getName() {
return "[idP!] Titan Theme";//NOI18N
return "[idP!] Titan"; //NOI18N
}
// FUCKERS - it's not obligatory to override this - IDIOTS!!!

Loading…
Cancel
Save