Package org.netbeans.api.project

Examples of org.netbeans.api.project.ProjectInformation


            SourceGroup group = (SourceGroup)o;
            sayString = group.getDisplayName();
        }
        else if(o instanceof Project) {
            Project proj = (Project) o;
            ProjectInformation info = proj.getLookup().lookup(ProjectInformation.class);
            sayString = info.getDisplayName();
        }

        if(sayString != null) {//null values for separators?
             proc.setText(sayString);
        }
View Full Code Here


                SourceGroup group = (SourceGroup)o;
                sayString = group.getDisplayName();
            }
            else if(o instanceof Project) {
                Project proj = (Project) o;
                ProjectInformation info = proj.getLookup().lookup(ProjectInformation.class);
                sayString = info.getDisplayName();
            }

            if(sayString != null) {//null values for separators?
                 return sayString;
            }
View Full Code Here

        Project proj = project;
        if(proj == null) {
            return;
        }

        ProjectInformation info = ProjectUtils.getInformation(proj);
        String name = info.getName();
        if (name.compareTo(PROJECT_KEY) == 0) { //it's a quorum project
            //so build it!
            MainFileProvider provider =
                    proj.getLookup().lookup(MainFileProvider.class);
            if (provider.getMainFile() == null) {
View Full Code Here

        compiler.setBuildFolder(provider.getBuildDirectory());
        compiler.setDistributionFolder(provider.getDistributionDirectory());

        //clean the build.
        compiler.clean();
        ProjectInformation info = proj.getLookup().lookup(ProjectInformation.class);
        if (TextToSpeechOptions.isScreenReading())
            speech.speak("Cleaning project " + info.getDisplayName(), SpeechPriority.HIGHEST);
    }
View Full Code Here

            final VCSContext ctx = VCSContext.forNodes(allNodes.toArray(new Node[allNodes.size()]));
            final String title;
            if (projects.length == 1) {
                Project project = projects[0];
                ProjectInformation pinfo = ProjectUtils.getInformation(project);
                title = pinfo.getDisplayName();
            } else {
                title = NbBundle.getMessage(ShowAllChangesAction.class, "CTL_ShowAllChanges_WindowTitle", Integer.toString(projects.length)); // NOI18N
            }
            SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

    public static String getProjectName(final Project p) {
        if (p == null) {
            return null;
        }
        ProjectInformation pi = ProjectUtils.getInformation(p);
        return pi == null ? null : pi.getDisplayName();
    }
View Full Code Here

        project = p;
    }

    @Override
    public String toString() {
        ProjectInformation pi = ProjectUtils.getInformation(project);
        return pi.getDisplayName() + " [" + project.getProjectDirectory().getPath() + "]";
    }
View Full Code Here

TOP

Related Classes of org.netbeans.api.project.ProjectInformation

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.