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

import com.validation.manager.core.DataBaseManager;
import com.validation.manager.core.db.Project;
import com.validation.manager.core.db.RequirementSpec;
import com.validation.manager.core.db.TestProject;
import java.beans.IntrospectionException;
import java.util.Iterator;
import java.util.List;
import net.sourceforge.javydreamercsw.client.ui.DataBaseTool;
import org.openide.nodes.ChildFactory;
import org.openide.nodes.Node;
import org.openide.util.Exceptions;

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

    @Override
    protected boolean createKeys(List<Object> list) {
        if (DataBaseTool.getEmf() != null) {
            List<Object> projects = DataBaseManager.createdQuery(
                    "select p from Project p where p.parentProjectId is null");
            for (Iterator<Object> it = projects.iterator(); it.hasNext();) {
                list.add((Project) it.next());
            }
        }
        return true;
    }
}

@@ -164,373 +164,113 @@
 ort 
-com.validation.manager.core.db.RequirementSpec;%0D%0Aimport com.validation.manager.core.db.TestProject;%0D%0Aimport java.beans.IntrospectionException;%0D%0Aimport java.util.Iterator;%0D%0Aimport java.util.List;%0D%0Aimport net.sourceforge.javydreamercsw.client.ui.DataBaseTool;%0D%0Aimport org.openide.nodes.ChildFactory;%0D%0Aimport org.openide.nodes.Node;%0D%0Aimport org.openide.util.Exceptions
+java.util.Iterator;%0D%0Aimport java.util.List;%0D%0Aimport net.sourceforge.javydreamercsw.client.ui.DataBaseTool
 ;%0D%0A%0D

Remove unused imports.