Package org.python.pydev.navigator.elements

Examples of org.python.pydev.navigator.elements.PythonProjectSourceFolder


        currentChildren.add(project);
        currentChildren.add(null);
        provider.getPipelinedChildren(workspaceRootStub, currentChildren);

        assertEquals(1, currentChildren.size());
        PythonProjectSourceFolder projectSourceFolder = (PythonProjectSourceFolder) currentChildren.iterator().next();

        currentChildren = new HashSet<Object>();
        currentChildren.add(null);
        provider.getPipelinedChildren(projectSourceFolder, currentChildren);
View Full Code Here


        currentChildren.add(project);
        currentChildren.add(null);
        provider.getPipelinedChildren(workspaceRootStub, currentChildren);

        assertEquals(1, currentChildren.size());
        PythonProjectSourceFolder projectSourceFolder = (PythonProjectSourceFolder) currentChildren.iterator().next();

        currentChildren = new HashSet<Object>();
        currentChildren.add(null);
        currentChildren.add(null);
        provider.getPipelinedChildren(projectSourceFolder, currentChildren);
View Full Code Here

                    if (sourcePathSet.contains(fullPath.toString())) {
                        PythonSourceFolder createdSourceFolder;
                        if (container instanceof IFolder) {
                            createdSourceFolder = new PythonSourceFolder(parentElement, (IFolder) container);
                        } else if (container instanceof IProject) {
                            createdSourceFolder = new PythonProjectSourceFolder(parentElement, (IProject) container);
                        } else {
                            throw new RuntimeException("Should not get here.");
                        }
                        ret.set(ret.size() - 1, createdSourceFolder); //replace the element added for the one in the python model
                        Set<PythonSourceFolder> sourceFolders = getProjectSourceFolders(localProject);
View Full Code Here

     */
    @Override
    public Object[] getChildren(Object parentElement) {
        Object[] ret = super.getChildren(parentElement);
        if (parentElement instanceof PythonProjectSourceFolder) {
            PythonProjectSourceFolder projectSourceFolder = (PythonProjectSourceFolder) parentElement;
            Set<Object> set = new HashSet<Object>();
            fillChildrenForProject(set, (IProject) projectSourceFolder.getActualObject(), projectSourceFolder);
            if (set.size() > 0) {
                Object[] newRet = new Object[ret.length + set.size()];
                System.arraycopy(ret, 0, newRet, 0, ret.length);
                int i = ret.length;
                for (Object o : set) {
View Full Code Here

            currentElements.addAll(Arrays.asList(children));
            if (DEBUG) {
                System.out.println("getPipelinedChildren RETURN: " + currentElements);
            }
            if (parent instanceof PythonProjectSourceFolder) {
                PythonProjectSourceFolder projectSourceFolder = (PythonProjectSourceFolder) parent;
                IProject project = (IProject) projectSourceFolder.getActualObject();
                fillChildrenForProject(currentElements, project, parent);
            }
            return;

        } else if (parent instanceof IWorkspaceRoot) {
View Full Code Here

        if (sourcePathSet.contains(fullPath.toString())) {
            PythonSourceFolder sourceFolder;
            if (container instanceof IFolder) {
                sourceFolder = new PythonSourceFolder(parent, (IFolder) container);
            } else if (container instanceof IProject) {
                sourceFolder = new PythonProjectSourceFolder(parent, (IProject) container);
            } else {
                return null; //some other container we don't know how to treat!
            }
            //System.out.println("Created source folder: "+ret[i]+" - "+folder.getProject()+" - "+folder.getProjectRelativePath());
            Set<PythonSourceFolder> sourceFolders = getProjectSourceFolders(container.getProject());
View Full Code Here

        if (expectedValue == null) {
            return false;
        }
        if ("open".equals(property)) {
            if (receiver instanceof PythonProjectSourceFolder) {
                PythonProjectSourceFolder pythonProjectSourceFolder = (PythonProjectSourceFolder) receiver;
                IResource actualObject = pythonProjectSourceFolder.getActualObject();
                if (actualObject instanceof IProject) {
                    return ((IProject) actualObject).isOpen() == toBoolean(expectedValue);
                }
            }
        } else if ("name".equals(property)) {
View Full Code Here

TOP

Related Classes of org.python.pydev.navigator.elements.PythonProjectSourceFolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.