Fix #8062 - fix new file node selection issue
[roobuilder] / src / JsRender / NodeProp.vala
index 303ee06..76bd895 100644 (file)
@@ -101,6 +101,27 @@ public enum JsRender.NodePropType
                        
                };
        }
+       public bool can_have_opt_list()
+       {
+               switch (this) {
+                       case RAW:               
+                       case METHOD : 
+                       case SIGNAL :   
+                       case SPECIAL :
+                       case LISTENER :
+                       case NONE:  
+                       case CTOR:   
+                               return false;
+                       case USER :     
+                       case PROP: 
+                               return true;
+                       default: 
+                               return false;
+               }
+               
+       
+       }
+       
        public static NodePropType nameToType(string str)
        {
                foreach(var np in alltypes()) {