Package org.netbeans.gradle.project.java

Examples of org.netbeans.gradle.project.java.JavaExtension


        }
        return result;
    }

    public JavaExtension tryGetJavaExtension() {
        JavaExtension result = javaExtensionRef.get();
        if (result == null) {
            Project project = tryGetProject();
            if (project != null) {
                result = project.getLookup().lookup(JavaExtension.class);
                if (result != null) {
View Full Code Here


        }
        return result;
    }

    public NbJavaModule tryGetModule() {
        JavaExtension javaExt = tryGetJavaExtension();
        if (javaExt == null) {
            return null;
        }

        if (!javaExt.hasEverBeenLoaded()) {
            NbJavaModule result = initialModule;
            if (result != null) {
                return result;
            }
            // Else: This means that some other thread noticed that
            //   javaExt has been loaded and set initialModule to null.
        }

        // This reference is no longer needed, allow it to be garbage collected.
        initialModule = null;
        return javaExt.getCurrentModel().getMainModule();
    }
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.project.java.JavaExtension

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.