Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IProject


            new BndContainer(javaProject, entries, null)
        }, null);
    }

    public static List<IClasspathEntry> calculateProjectClasspath(Project model, IJavaProject javaProject, Collection< ? super String> errors) throws CoreException {
        IProject project = javaProject.getProject();
        if (!project.exists() || !project.isOpen())
            return null;

        if (model == null) {
            setClasspathEntries(javaProject, EMPTY_ENTRIES);
            errors.add("bnd workspace is not configured.");
View Full Code Here


    @Override
    public IStatus validate(Builder builder) {
        IStatus status = Status.OK_STATUS;

        try {
            IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(builder.getBase().getName());
            IJavaProject javaProject = JavaCore.create(project);
            Map<String,String> sourceOutputLocations = JavaProjectUtils.getSourceOutputLocations(javaProject);

            ProjectPaths bndLayout = ProjectPaths.get(ProjectLayout.BND);
            String src = builder.getProperty(Constants.DEFAULT_PROP_SRC_DIR, bndLayout.getSrc());
View Full Code Here

    @Override
    public IStatus validate(Builder builder) {
        IStatus status = Status.OK_STATUS;

        try {
            IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(builder.getBase().getName());
            IJavaProject javaProject = JavaCore.create(project);

            @SuppressWarnings("unchecked")
            Map<String,String> options = javaProject.getOptions(true);
View Full Code Here

    private void deployBundleOnServer(boolean installBundleLocally) throws Exception {
        wstServer.waitForServerToStart();

        // create faceted project
        IProject bundleProject = projectRule.getProject();

        ProjectAdapter project = new ProjectAdapter(bundleProject);
        project.addNatures(JavaCore.NATURE_ID, "org.eclipse.wst.common.project.facet.core.nature");

        // configure java project with dependencies
View Full Code Here

    if (javaPackage.getText().length()==0) {
      updateStatus("package must be specified");
      return;
    }

        IProject existingProject = ResourcesPlugin.getWorkspace().getRoot().getProject(artifactId.getText());

        if (existingProject.exists()) {
            updateStatus("A project with the name " + artifactId.getText() + " already exists.");
            return;
        }

    int cnt = propertiesTable.getItemCount();
View Full Code Here

    @Override
    public void configure(ProjectConfigurationRequest configRequest, IProgressMonitor monitor) throws CoreException {
        // at this point the JDT project is already created by the tycho plugin
        // we just need to setup the appropriate facets
        Logger logger = Activator.getDefault().getPluginLogger();
        IProject project = configRequest.getProject();
        logger.trace("BundleProjectActivator called for POM {0} and project {1}", configRequest.getPom().getFullPath(),
                project.getName());

        // check for maven-sling-plugin as well (to make sure this is a Sling project)
        for (Plugin plugin : configRequest.getMavenProject().getBuildPlugins()) {
            if (plugin.getArtifactId().equals(MAVEN_SLING_PLUGIN_ARTIFACT_ID)
                    && plugin.getGroupId().equals(MAVEN_SLING_PLUGIN_GROUP_ID)) {
                logger.trace(
                        "Found maven-sling-plugin in build plugins for project {0}, therefore adding sling bundle facets!",
                        project.getName());
                ConfigurationHelper.convertToBundleProject(project);
                return;
            }
        }
        logger.trace("Couldn't find maven-sling-plugin in build plugins for project {0}", project.getName());
    }
View Full Code Here

        String version = archetypeParametersPage.getVersion();
        String javaPackage = archetypeParametersPage.getJavaPackage();
        Properties properties = archetypeParametersPage.getProperties();
        ProjectImportConfiguration configuration = new ProjectImportConfiguration();

        IProject existingProject = ResourcesPlugin.getWorkspace().getRoot().getProject(artifactId);
        if (existingProject!=null && existingProject.exists()) {
            throw new IllegalStateException("A project with the name " + artifactId + " already exists.");
        }

        advance(monitor, 1);
View Full Code Here

        if (!(first instanceof IProject)) {
            return Collections.emptyList();
        }

        IProject project = (IProject) first;
        return getServersLinkedToProject(project, monitor);
    }
View Full Code Here

    public void deployFile() throws CoreException, InterruptedException, URIException, HttpException, IOException {

        wstServer.waitForServerToStart();

        // create faceted project
        IProject contentProject = projectRule.getProject();

        ProjectAdapter project = new ProjectAdapter(contentProject);
        project.addNatures(JavaCore.NATURE_ID, "org.eclipse.wst.common.project.facet.core.nature");

        // install bundle facet
View Full Code Here

    public void changeNodePrimaryType() throws Exception {

        wstServer.waitForServerToStart();

        // create faceted project
        IProject contentProject = projectRule.getProject();

        ProjectAdapter project = new ProjectAdapter(contentProject);
        project.addNatures("org.eclipse.wst.common.project.facet.core.nature");

        // install bundle facet
View Full Code Here

TOP

Related Classes of org.eclipse.core.resources.IProject

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.