Changeset 1226

Show
Ignore:
Timestamp:
02/20/10 18:40:34 (5 months ago)
Author:
gregor
Message:
  • added editor info for system theme property to frameworkprefs plugin
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/mlframework/src/eu/moonlight3d/common/ui/frameworkprefs/Plugin.java

    r1222 r1226  
    2424import java.util.ArrayList; 
    2525 
     26import eu.moonlight3d.common.ui.propertysheet.BooleanEditorFactory; 
    2627import eu.moonlight3d.common.ui.propertysheet.EditorDefinition; 
    2728import eu.moonlight3d.common.ui.propertysheet.PropertySheetDefinition; 
     
    4142 
    4243        public void load() throws Exception { 
    43                 // TODO set property editor information for framework properties (plugin dirs, system theme) 
     44                // set property editor information for framework properties (plugin dirs, system theme) 
    4445                 
    4546                PropertySheetDefinition propertySheetDefinition; 
     
    5253                 
    5354                PropertySheetDefinition.addPropertySheetDefinition(propertySheetDefinition); 
     55                 
     56                propertySheetDefinition=new PropertySheetDefinition("eu.moonlight3d.framework.preferences.PreferencesGroup","General UI"); 
     57                editorDefinition=new EditorDefinition(); 
     58                editorDefinition.properties.add("useSystemTheme"); 
     59                editorDefinition.editor="BooleanEditor"; 
     60                BooleanEditorFactory.Parameters booleanParameters=new BooleanEditorFactory.Parameters(); 
     61                booleanParameters.labelText=L10N.translate("use system theme"); 
     62                editorDefinition.additionalParameters=booleanParameters; 
     63                propertySheetDefinition.addEditorDefinition(L10N.translate("General"), editorDefinition); 
     64                 
     65                PropertySheetDefinition.addPropertySheetDefinition(propertySheetDefinition); 
    5466        } 
    5567 
    5668        public void unload() throws Exception { 
    57                 // TODO Auto-generated method stub 
    58  
    5969        } 
    6070 
  • trunk/mlframework/src/eu/moonlight3d/common/ui/propertysheet/BooleanEditorFactory.java

    r1195 r1226  
    3434 
    3535public class BooleanEditorFactory implements PropertyEditorFactory { 
    36         private class Parameters { 
     36        public static class Parameters { 
    3737                public String labelText; 
    3838        } 
  • trunk/mlframework/src/eu/moonlight3d/common/ui/propertysheet/DirectoryListEditorFactory.java

    r1195 r1226  
    8282                        layout.addWidget(directoryTable,1); 
    8383                        layout.addLayout(buttonLayout); 
     84                         
     85                        layout.setMargin(0); 
    8486                         
    8587                        setLayout(layout);