Package org.eclipse.core.internal.resources

Examples of org.eclipse.core.internal.resources.Project


            if (structuredSelection.size() == 1)
            {
                Object selectedResource = structuredSelection.getFirstElement();
                if (selectedResource instanceof org.eclipse.core.internal.resources.Project)
                {
                  Project project = (Project) selectedResource;
                    selectedProject = JavaCore.create(project);
                }
            }
        }
    }
View Full Code Here


                //Speedup: as this method is called a lot, we just check if the nature is available internally without
                //any locks, and just lock if it's not (which is needed to avoid a racing condition creating more
                //than 1 nature).
                try {
                    if (project instanceof Project) {
                        Project p = (Project) project;
                        ProjectInfo info = (ProjectInfo) p.getResourceInfo(false, false);
                        IProjectNature nature = info.getNature(PYTHON_NATURE_ID);
                        if (nature instanceof PythonNature) {
                            return (PythonNature) nature;
                        }
                    }
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.resources.Project

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.