Package org.netbeans.api.java.platform

Examples of org.netbeans.api.java.platform.JavaPlatform


                addCommonTasks(root, commonTasks);
            }
        }

        if (!snapshot.getScriptPlatform().isDefault()) {
            JavaPlatform scriptPlatform = snapshot.getScriptPlatform().getValue();
            addGenericPlatform(root, SCRIPT_PLATFORM_NODE, scriptPlatform);
        }

        if (!snapshot.getGradleHome().isDefault()) {
            String gradleHome = AbstractProjectProperties.gradleLocationToString(snapshot.getGradleHome().getValue());
View Full Code Here


        return result;
    }

    @Override
    public ProjectPlatform tryFindPlatformByName(String name, String version) {
        JavaPlatform platform = DefaultPropertySources.tryFindPlatform(name, version);
        return platform != null
                ? AbstractProjectPlatformSource.getJavaPlatform(platform)
                : null;
    }
View Full Code Here

        }

        classpathResources.put(ClassPathType.COMPILE, jarResources);
        classpathResources.put(ClassPathType.RUNTIME, jarResources);

        JavaPlatform platform = GlobalGradleSettings.getGradleJdk().getValue();
        if (platform != null) {
            List<PathResourceImplementation> platformResources = new LinkedList<>();
            for (ClassPath.Entry entry: platform.getBootstrapLibraries().entries()) {
                platformResources.add(ClassPathSupport.createResource(entry.getURL()));
            }
            classpathResources.put(ClassPathType.BOOT, platformResources);
        }
    }
View Full Code Here

        return jdkHomeObj != null ? FileUtil.toFile(jdkHomeObj) : null;
    }

    public static File getScriptJavaHome(Project project) {
        JavaPlatform platform = tryGetScriptJavaPlatform(project);
        return getScriptJavaHome(platform);
    }
View Full Code Here

                List<String> arguments,
                List<String> jvmArgs,
                ProgressHandle progress) {
            this.progress = progress;

            JavaPlatform selectedPlatform = GradleModelLoader.tryGetScriptJavaPlatform(project);
            this.jdkHome = GradleModelLoader.getScriptJavaHome(selectedPlatform);
            this.jdkPlatform = selectedPlatform != null
                    ? selectedPlatform
                    : JavaPlatform.getDefault();
View Full Code Here

        fillPlatformCombo();

        jGradlePathEdit.setText(GlobalGradleSettings.getGradleHome().getValueAsString());
        jGradleJVMArgs.setText(GlobalGradleSettings.getGradleJvmArgs().getValueAsString());

        JavaPlatform currentJdk = GlobalGradleSettings.getGradleJdk().getValue();
        if (currentJdk != null) {
            jJdkCombo.setSelectedItem(new JavaPlatformItem(currentJdk));
        }

        jSkipTestsCheck.setSelected(GlobalGradleSettings.getSkipTests().getValue());
View Full Code Here

        GradleHomeRegistry.requireGradlePaths();
        switch (type) {
            case ClassPath.SOURCE:
                return getSourcePaths(gradleHome, file);
            case ClassPath.BOOT:
                JavaPlatform platform = JavaPlatform.getDefault();
                return platform != null ? platform.getBootstrapLibraries() : null;
            case ClassPath.COMPILE:
                return getBinaryPaths(gradleHome);
            case ClassPath.EXECUTE:
                return getBinaryPaths(gradleHome);
            case JavaClassPathConstants.PROCESSOR_PATH:
View Full Code Here

    private final MutableProperty<Object> builtInChangeSignal;

    public MemProjectProperties() {
        ProjectPlatform defaultPlatform = AbstractProjectPlatformSource.getDefaultPlatform();
        JavaPlatform defaultJavaPlatform = JavaPlatform.getDefault();

        this.builtInChangeSignal = new DefaultMutableProperty<>(new Object(), true, false);
        this.sourceLevel = new DefaultMutableProperty<>(getSourceLevelFromPlatform(defaultPlatform), true, false);
        this.platform = new DefaultMutableProperty<>(defaultPlatform, true, false);
        this.scriptPlatform = new DefaultMutableProperty<>(defaultJavaPlatform, true, false);
View Full Code Here

TOP

Related Classes of org.netbeans.api.java.platform.JavaPlatform

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.