package net.sourceforge.javydreamercsw.client.ui.nodes;

import com.validation.manager.core.db.RequirementSpec;
import com.validation.manager.core.server.core.RequirementSpecServer;
import java.beans.IntrospectionException;
import org.openide.util.lookup.InstanceContent;

/**
 *
 * @author Javier A. Ortiz Bultron <javier.ortiz.78@gmail.com>
 */
public class UIRequirementSpecNode extends AbstractRefreshableBeanNode {

    public UIRequirementSpecNode(RequirementSpec spec) throws IntrospectionException {
        super(spec,
                new SpecNodeChildFactory(spec), new InstanceContent());
        setIconBaseWithExtension("com/validation/manager/resources/icons/Papermart/Contacts-alt.png");
    }

    @Override
    public String getName() {
        return getLookup().lookup(RequirementSpec.class).getName();
    }

    @Override
    public void refreshMyself() {
        RequirementSpecServer rs = new RequirementSpecServer(getLookup().lookup(RequirementSpec.class));
        rs.update((RequirementSpec) getBean(), rs.getEntity());
    }
}

@@ -222,16 +222,123 @@
 ption;%0D%0A
+import java.util.ArrayList;%0D%0Aimport java.util.Arrays;%0D%0Aimport java.util.List;%0D%0Aimport javax.swing.Action;%0D%0A
 import o
@@ -942,32 +942,351 @@
 tName();%0D%0A    %7D%0D
+%0A    %0D%0A    @Override%0D%0A    public Action%5B%5D getActions(boolean b) %7B%0D%0A        List%3CAction%3E actions = new ArrayList%3CAction%3E();%0D%0A        actions.addAll(Arrays.asList(super.getActions(b)));%0D%0A        //TODO: actions.add(new EditRequirementSpecCaseAction());%0D%0A        return actions.toArray(new Action%5Bactions.size()%5D);%0D%0A    %7D%0D
 %0A%0D%0A    @Override

Add TODO comments and code.