I am attempting to make a module which adds a new component to the designer, but when I try to install it, the designer isn’t able to load the vision module. Here is the code that we are using in our Designer Hook to add the component. Is there something that I am doing wrong? I am making this for 8.1.0-SNAPSHOT.
public void startup(final DesignerContext context, final LicenseState activationState) throws Exception {
super.startup(context, activationState);
context.addBeanInfoSearchPath("{MyBeanInfoSearchPath}");
VisionDesignerInterface sdk = (VisionDesignerInterface)context.getModule("com.inductiveautomation.vision");
if (sdk != null) {
Palette palette = sdk.getPalette();
PaletteItemGroup group = palette.addGroup("{MyGroupName}");
group.addPaletteItem((PaletteItem)new JavaBeanPaletteItem({MyComponentClass}));
}
}