package nl.fontys.sofa.limo.view.node.root; import java.io.IOException; import nl.fontys.sofa.limo.api.exception.ServiceNotFoundException; import nl.fontys.sofa.limo.api.service.provider.LegTypeService; import nl.fontys.sofa.limo.domain.component.type.LegType; import nl.fontys.sofa.limo.view.util.LIMOResourceBundle; import nl.fontys.sofa.limo.view.wizard.types.leg.LegTypeWizardAction; import org.openide.nodes.Children; import org.openide.util.datatransfer.NewType; /** * Root node for LegType. * * @author Sebastiaan Heijmann */ public class LegTypeRootNode extends AbstractRootNode { public LegTypeRootNode(Children children) throws ServiceNotFoundException { super(children); } @Override Class getBeanClass() { return LegType.class; } @Override Class getServiceClass() { return LegTypeService.class; } @Override public NewType[] getNewTypes() { return new NewType[]{new NewType() { @Override public String getName() { return LIMOResourceBundle.getString("LEG_TYPE"); } @Override public void create() throws IOException { LegTypeWizardAction wiz = new LegTypeWizardAction(); wiz.actionPerformed(null); } }}; } }