Examples of ProjectInformation


Examples of org.netbeans.api.project.ProjectInformation

    }
   
    private void fixDistJarProperty (final String newName) {
        ProjectManager.mutex().writeAccess(new Runnable () {
            public void run () {
                ProjectInformation pi = project.getLookup().lookup(ProjectInformation.class);
                String oldDistJar = pi == null ? null : "${dist.dir}/"+PropertyUtils.getUsablePropertyName(pi.getDisplayName())+".jar"; //NOI18N
                EditableProperties ep = project.getUpdateHelper().getProperties (AntProjectHelper.PROJECT_PROPERTIES_PATH);
                String propValue = ep.getProperty("dist.jar")//NOI18N
                if (oldDistJar != null && oldDistJar.equals (propValue)) {
                    ep.put ("dist.jar","${dist.dir}/"+PropertyUtils.getUsablePropertyName(newName)+".jar"); //NOI18N
                    project.getUpdateHelper().putProperties (AntProjectHelper.PROJECT_PROPERTIES_PATH,ep);
View Full Code Here

Examples of org.netbeans.api.project.ProjectInformation

    public static String GetProjectName(Project p)
    {

        if(p != null)
        {
            ProjectInformation info = p.getLookup().lookup(ProjectInformation.class);
            return info.getDisplayName();
        }
        return null;

    }
View Full Code Here

Examples of org.netbeans.api.project.ProjectInformation

            }
        }
        Project p = FileOwnerQuery.getOwner( file );
        String displayName = file.getName();
        if (p != null && p.getLookup().lookup( NodeJSProject.class ) != null) {
            ProjectInformation pi = p.getLookup().lookup( ProjectInformation.class );
            displayName = pi == null ? p.getProjectDirectory().getName() : pi.getDisplayName();
            MainFileProvider prov = p.getLookup().lookup( MainFileProvider.class );
            if (prov != null && !file.equals( prov.getMainFile() )) {
                displayName += "-" + file.getName(); //NOI18N
            }
        }
View Full Code Here

Examples of org.netbeans.api.project.ProjectInformation

    @SuppressWarnings ("LeakingThisInConstructor") //NOI18N
    public RootNode ( NodeJSProject project, InstanceContent content ) {
        super( createProjectChildren( project ), new ProxyLookup( project.getLookup(), new AbstractLookup( content ) ) );
        content.add( this );
        final ProjectInformation info = getLookup().lookup( ProjectInformation.class );
        setDisplayName( info.getDisplayName() );
        info.addPropertyChangeListener( new PropertyChangeListener() {
            @Override
            public void propertyChange ( PropertyChangeEvent evt ) {
                setDisplayName( info.getDisplayName() );
            }
        } );
        setIconBaseWithExtension( LOGO_ICON );
    }
View Full Code Here

Examples of org.netbeans.api.project.ProjectInformation

        File testResultsDir = getAndCreateTestResultsDir(project);
        ZipUtils.unzipResource(getResourcePath(testResultsZip), testResultsDir);
    }

    private static String getExpectedSessionName(Project project) {
        ProjectInformation projectInfo = ProjectUtils.getInformation(project);
        return projectInfo.getDisplayName();
    }
View Full Code Here

Examples of org.netbeans.api.project.ProjectInformation

        this.javaExt = JavaExtension.getJavaExtensionOfProject(project);
        this.testManager = testManager;
    }

    private String getProjectName() {
        ProjectInformation projectInfo = ProjectUtils.getInformation(project);
        return projectInfo.getDisplayName();
    }
View Full Code Here

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

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?
                 return sayString;
            }
View Full Code Here

Examples of org.netbeans.api.project.ProjectInformation

        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

Examples of org.netbeans.api.project.ProjectInformation

        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
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.