Package org.netbeans.api.project

Examples of org.netbeans.api.project.SourceGroup


               
                //just in case, hold on to this
                //speakString = classReflection(o,"sun.awt.shell.Win32ShellFolder2","getDisplayName");
            }
            else if(o instanceof SourceGroup) {
                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();
View Full Code Here


        Set<File> set = new HashSet<File>();

        Sources sources = ProjectUtils.getSources(project);
        SourceGroup[] sourceGroups = sources.getSourceGroups(Sources.TYPE_GENERIC);
        for (int j = 0; j < sourceGroups.length; j++) {
            SourceGroup sourceGroup = sourceGroups[j];
            FileObject srcRootFo = sourceGroup.getRootFolder();
            File rootFile = FileUtil.toFile(srcRootFo);
            set.add(rootFile);
        }
        return set.toArray(new File[set.size()]);
    }
View Full Code Here

TOP

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

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.