Examples of PythonFolder


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

            Set set = new HashSet();
            set.add(source2FolderChild);
            provider.interceptAdd(new PipelinedShapeModification(source2FolderFile, set));

            assertEquals(1, set.size());
            PythonFolder c = (PythonFolder) set.iterator().next();
            PythonSourceFolder sourceFolder = c.getSourceFolder();
            assertTrue(sourceFolder instanceof PythonSourceFolder);

            set.clear();
            set.add(source2FolderChild);
            provider.interceptAdd(new PipelinedShapeModification(source2FolderFile, set));
View Full Code Here

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

            Set set = new HashSet();
            set.add(source2FolderReChild);
            provider.interceptAdd(new PipelinedShapeModification(source2FolderChild, set));

            assertEquals(1, set.size());
            PythonFolder c = (PythonFolder) set.iterator().next();
            PythonSourceFolder sourceFolder = c.getSourceFolder();
            assertTrue(sourceFolder instanceof PythonSourceFolder);

            set.clear();
            set.add(source2FolderChild);
            provider.interceptRemove(new PipelinedShapeModification(source2FolderFile, set));
View Full Code Here

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

            if (object instanceof IResource) {
                Object existing = getResourceInPythonModel((IResource) object, true);
                if (existing == null) {

                    if (object instanceof IFolder) {
                        object = new PythonFolder(parent, ((IFolder) object), pythonSourceFolder);

                    } else if (object instanceof IFile) {
                        object = new PythonFile(parent, ((IFile) object), pythonSourceFolder);

                    } else if (object instanceof IResource) {
View Full Code Here

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

        }
        if (element instanceof PythonSourceFolder) {
            return PydevPlugin.getImageCache().get(UIConstants.SOURCE_FOLDER_ICON);
        }
        if (element instanceof PythonFolder) {
            PythonFolder folder = (PythonFolder) element;
            IFolder actualObject = folder.getActualObject();
            if (actualObject != null) {
                final String[] validInitFiles = FileTypesPreferencesPage.getValidInitFiles();

                for (String init : validInitFiles) {
                    if (actualObject.getFile(init).exists()) {
View Full Code Here

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

                            }
                            //creating is enough to add it to the model
                            if (f instanceof IFile) {
                                wrappedResource = new PythonFile(wrappedResource, (IFile) f, sourceFolderInWrap);
                            } else if (f instanceof IFolder) {
                                wrappedResource = new PythonFolder(wrappedResource, (IFolder) f, sourceFolderInWrap);
                            }
                        }
                        parentInWrap = wrappedResource;
                        break;
                    }
View Full Code Here

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

                if (f != null) {
                    return f;
                }
            }
            if (pythonSourceFolder != null) {
                return new PythonFolder((IWrappedResource) parent, folder, pythonSourceFolder);
            }

        } else if (child instanceof IFile) {
            if (pythonSourceFolder != null) {
                //if the python source folder is null, that means that this is a file that is not actually below a source folder -- so, don't wrap it
View Full Code Here

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

                        if (res instanceof IProject) {
                            throw new RuntimeException("A project's parent should never be an IWrappedResource!");

                        } else if (res instanceof IFolder) {
                            childrenItr.remove();
                            convertedChildren.add(new PythonFolder(parent, (IFolder) res, parent.getSourceFolder()));

                        } else if (res instanceof IFile) {
                            childrenItr.remove();
                            convertedChildren.add(new PythonFile(parent, (IFile) res, parent.getSourceFolder()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.