]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d/src/org/simantics/g3d/property/DefaultPropertyManipulatorFactory.java
Reflection-based handling of Enum property editing.
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / g3d / property / DefaultPropertyManipulatorFactory.java
index 1ad899458fcd8edc4cd373e86c8decae1fea37a9..5d7e121d134a9ce2983733b1e9c70ba18e63deec 100644 (file)
@@ -45,6 +45,8 @@ public class DefaultPropertyManipulatorFactory implements PropertyManipulatorFac
                        return BooleanPropertyManipulator.class;
                if (double[].class.equals(returnValue))
                    return DoubleArrayPropertyManipulator.class;
+               if (returnValue.isEnum())
+                       return ComboPropertyManipulator.class;
                throw new RuntimeException("Cannot handle value " + returnValue.getName() + " for method " + get);
        }