Changeset 1224
- Timestamp:
- 02/20/10 15:53:29 (5 months ago)
- Files:
-
- trunk/mlframework/src/eu/moonlight3d/common/ui/propertysheet/EditorDefinition.java (added)
- trunk/mlframework/src/eu/moonlight3d/common/ui/propertysheet/PropertySheet.java (modified) (1 diff)
- trunk/mlframework/src/eu/moonlight3d/common/ui/propertysheet/PropertySheetDefinition.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/mlframework/src/eu/moonlight3d/common/ui/propertysheet/PropertySheet.java
r1195 r1224 246 246 247 247 // build editors for definitions 248 for( PropertySheetDefinition.EditorDefinition editorDefinition : editorGroup.editors) {248 for(EditorDefinition editorDefinition : editorGroup.editors) { 249 249 for(PropertyEditorFactory factory : propertyEditorFactories) { 250 250 if(factory.getName().equals(editorDefinition.editor)) { trunk/mlframework/src/eu/moonlight3d/common/ui/propertysheet/PropertySheetDefinition.java
r891 r1224 64 64 } 65 65 66 public static void addPropertySheetDefinition(PropertySheetDefinition propertySheetDefinition) { 67 propertySheetDefinitions.add(propertySheetDefinition); 68 } 69 66 70 public static ArrayList<PropertySheetDefinition> getPropertySheetDefinitions() { 67 71 return (ArrayList<PropertySheetDefinition>) propertySheetDefinitions.clone(); 68 72 } 69 70 class EditorDefinition {71 public ArrayList<String> properties;72 public String editor;73 public Object additionalParameters;74 };75 73 76 74 class EditorGroup { … … 88 86 } 89 87 90 public PropertySheetDefinition() { 91 editorGroups=new ArrayList<EditorGroup>(); 88 public PropertySheetDefinition(String typeName, String instanceName) { 89 editorGroups=new ArrayList<EditorGroup>(); 90 this.typeName=typeName; 91 this.instanceName=instanceName; 92 92 } 93 93 … … 130 130 131 131 EditorDefinition definition=new EditorDefinition(); 132 definition.properties=new ArrayList<String>();133 132 134 133 NodeList propertyNames=editorElement.getElementsByTagName("property");
