As the title say, i have a bunch of custom controls with hierarchy(inheritance). They are not find by the tool “add CustomControl” but i can add them manually by typing the exact name in the text bar. However, the property list only show properties for the current class and not superclasses.
Found the JmeGenericControl, the problem comes with this method :
/**
* Append one Sheet.Set of fields per class,
* recursively to the root class of the hierarchie.
*
* @param sheet Sheet where to put.
* @param c current class to start add.
* @param hidden sheet for c is hidden (parent are hidden = true)
*/
protected void putSheetSets(Sheet sheet, Class c, boolean hidden) {
Sheet.Set set = Sheet.createPropertiesSet();
set.setDisplayName(String.format("%s - %s", c.getSimpleName(), c.getPackage().getName()));
set.setName(c.getName());
set.setHidden(hidden);
createFields(c, set, control);
Class parent = c.getSuperclass();
if (parent != null && !parent.equals(Object.class)) {
putSheetSets(sheet, parent, true);
}
sheet.put(set);
}
Is there a reason to create parent classes sheetsets in a hidden mode “putSheetSets(sheet, parent, true);” ?
i don’t know how to do that :s, is there a wiki page to learn?
And in an imediate case, i’ve understood we will have no update till the 3.1…i’m stucked with this part, is there a way in netbeans to override the action done by add custom control? or to apply the change locally…rebuild the engine i guess…don’t know how to do that too :s
Nightly updates don’t work (because they’re not compatible with the 3.0 release) but using nightly is never good advice anyway, from 3.1 on you’ll only be able to get nightly updates if you install a separate unstable version of the SDK.
Normal, stable updates for the SDK work as before.