Package org.netbeans.api.project.libraries

Examples of org.netbeans.api.project.libraries.Library


    public Set extend(WebModule wm) {
        Set retVal = new HashSet();
        final FileObject documentBase = wm.getDocumentBase();
        Project project = FileOwnerQuery.getOwner(documentBase);

        Library sipLibrary = LibraryManager.getDefault().getLibrary(libname);
        Sources s = project.getLookup().lookup(Sources.class);
        SourceGroup[] sources = null;
        if (null != s) {
            sources = s.getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);
        }
View Full Code Here


        URL libraryLocation = preferences.getSharedLibraryLocation();
        LibraryManager manager = LibraryManager.forLocation(libraryLocation);
        for (ParsedConfArtifacts parsedConfArtifacts : parsedArtifacts) {
            try {
                String libraryName = getLibraryName(parsedConfArtifacts.getConf());
                Library library = manager.getLibrary(libraryName);
                Map<String, List<URI>> libraryEntries = convertParsedArtifacts(parsedConfArtifacts);
                if (library != null) {
                    manager.removeLibrary(library);
                }
                manager.createURILibrary("j2se", libraryName, libraryEntries);
View Full Code Here

            if(0 != sgs.length){
                srcRootFO = sgs[0].getRootFolder();
            }


            Library lib = LibraryManager.getDefault().getLibrary(libraryName);
            if (lib != null && srcRootFO != null) {
                try {
                    ProjectClassPathModifier.addLibraries(
                            new Library[]{lib}, srcRootFO, ClassPath.COMPILE);
                } catch (IOException ioe) {
View Full Code Here

@org.openide.util.lookup.ServiceProvider(service=org.netbeans.spi.java.classpath.ClassPathProvider.class, position=156)
public class J2SELibraryClassPathProvider implements ClassPathProvider {

    public ClassPath findClassPath(FileObject file, String type) {
        assert file != null;
        Library ll = this.getLastUsedLibrary(file);
        if (ll != null) {
            ClassPath[] cp = findClassPathOrNull(file, type, ll);
            return cp != null ? cp[0] : null;
        }
        else {
View Full Code Here

    /** Creates a new instance of J2SELibrarySourceLevelQueryImpl */
    public J2SELibrarySourceLevelQueryImpl() {
    }
   
    public String getSourceLevel(org.openide.filesystems.FileObject javaFile) {       
        Library ll = this.isLastUsed (javaFile);
        if (ll != null) {
            return getSourceLevel (ll);
        }
        for (LibraryManager mgr : LibraryManager.getOpenManagers()) {
            for (Library lib : mgr.getLibraries()) {
View Full Code Here

TOP

Related Classes of org.netbeans.api.project.libraries.Library

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.