Removed executable flag from files which don't need it.
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / EditorFactory.as
index 4cd9b1dbcb4ca981d59416d2a908298d964dd173..bfa0ab04ed2b8976ca4a35bbb9e62d4bf41cb37c 100644 (file)
@@ -16,8 +16,13 @@ package net.systemeD.potlatch2.mapfeatures {
             switch ( inputType ) {
             
             case "freetext": return new FreeTextEditorFactory(inputXML);
+            case "checkbox": return new CheckboxEditorFactory(inputXML);
             case "choice": return new ChoiceEditorFactory(inputXML);
+            case "slider": return new SliderEditorFactory(inputXML);
+            case "number": return new NumberEditorFactory(inputXML);
             case "speed": return new SpeedEditorFactory(inputXML);
+            case "route": return new RouteEditorFactory(inputXML);
+            case "turn": return new TurnRestrictionEditorFactory(inputXML);
             
             }
             
@@ -43,8 +48,9 @@ package net.systemeD.potlatch2.mapfeatures {
         private var _description:String;
         
         public function EditorFactory(inputXML:XML) {
-            _name = inputXML.@name;
-            _description = inputXML.@description;
+            _name = String(inputXML.@name);
+            _description = String(inputXML.@description);
+            category = String(inputXML.@category);
         }
         
         public function areTagsMatching(entity:Entity):Boolean {
@@ -62,6 +68,7 @@ package net.systemeD.potlatch2.mapfeatures {
         public function get description():String {
             return _description;
         }
+
     }
 
 }