Changeset 671

Show
Ignore:
Timestamp:
10/12/08 06:12:53 (3 months ago)
Author:
markd
Message:

see #38

Location:
org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/CFConfiguration.java

    r659 r671  
    567567                                                        CFMLColorsPreferenceConstants.P_COLOR_CFCOMMENT 
    568568                                        ) 
    569                                 ) 
     569                                ), 
     570                                colorManager.getColor( 
     571                                        preferenceManager.getColor( 
     572                                                        CFMLColorsPreferenceConstants.P_COLOR_BACKGROUND_CFCOMMENT 
     573                                        ) 
     574                                ), tabWidth 
    570575                        ) 
    571576                ); 
     
    775780// System.out.println("CFConfiguration property change listener notified." + event.getProperty()); 
    776781                String prop = event.getProperty();  
    777         boolean setting = ((Boolean)event.getNewValue()).booleanValue(); 
    778                 System.out.println("The Property we are setting is: " + prop + " [" + setting + "]"); 
     782                Object newValue = event.getNewValue(); 
     783                 
     784                boolean setting = false; 
     785                Object settingObj = null; 
     786                 
     787                if(newValue instanceof Boolean){ 
     788                        setting = ((Boolean)newValue).booleanValue(); 
     789                } 
     790                else { 
     791                        settingObj = newValue; 
     792                } 
     793    //  boolean setting = ((Boolean)event.getNewValue()).booleanValue(); 
     794        //      System.out.println("The Property we are setting is: " + prop + " [" + setting + "]"); 
    779795         
    780796                if(prop.equals(EditorPreferenceConstants.P_INSIGHT_DELAY)) { 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/preferences/CFMLColorsPreferenceConstants.java

    r2 r671  
    4040        public static final String P_COLOR_CFCOMMENT = "cfcommentColor"; 
    4141 
     42        /** Preference key identifier for cfml comment */ 
     43        public static final String P_COLOR_BACKGROUND_CFCOMMENT = "cfcommentBackgroundColor"; 
     44 
    4245        /** Preference key identifier for cfscript text color*/ 
    4346        public static final String P_COLOR_CFSCRIPT_TEXT = "cfscriptTextColor"; 
     
    7881         *      <li>P_COLOR_CFNUMBER - "255,10,10"</li> 
    7982         *      <li>P_COLOR_CFCOMMENT - "128,128,128"</li> 
     83         *      <li>P_COLOR_BACKGROUND_CFCOMMENT - "16,74,10"</li> 
    8084         *      <li>P_COLOR_CFSCRIPT_TEXT - "0,0,0"</li> 
    8185         *      <li>P_COLOR_CFSCRIPT_KEYWORD - "0,0,255"</li> 
     
    97101                store.setDefault(P_COLOR_CFNUMBER,"255,10,10"); 
    98102                store.setDefault(P_COLOR_CFCOMMENT,"128,128,128"); 
     103                store.setDefault(P_COLOR_BACKGROUND_CFCOMMENT,"16,74,10"); 
    99104                store.setDefault(P_COLOR_CFSCRIPT_TEXT,"0,0,0"); 
    100105                store.setDefault(P_COLOR_CFSCRIPT_KEYWORD,"0,0,255"); 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/preferences/CFMLColorsPreferencePage.java

    r2 r671  
    5656                addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_DEFAULT_TEXT,"Default &Text:",getFieldEditorParent())); 
    5757                addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFCOMMENT,"CFML &Comment:",getFieldEditorParent())); 
     58                addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_BACKGROUND_CFCOMMENT,"CFML Comment &BackGround:",getFieldEditorParent())); 
    5859                addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_CFTAG,"CFML &Tag:",getFieldEditorParent())); 
    5960                addField(new ColorFieldEditor(CFMLColorsPreferenceConstants.P_COLOR_TAGLIB_TAG,"Taglib &Tag:",getFieldEditorParent()));