Package ro.redeul.google.go.config.sdk

Examples of ro.redeul.google.go.config.sdk.GoAppEngineSdkData


                        LOG.error(e.getMessage());
                    }

                    VirtualFileManager.getInstance().syncRefresh();

                    GoAppEngineSdkData sdkData = GoSdkUtil.testGoAppEngineSdk(goRootPath);

                    if (sdkData == null) {
                        // skip since the folder isn't a proper go sdk
                        return;
                    }
View Full Code Here


    }

    @NotNull
    @Override
    public GoAppEngineSdkData getSettings() {
        GoAppEngineSdkData sdkData = getSdkData();
        return sdkData != null ? sdkData : new GoAppEngineSdkData();
    }
View Full Code Here

        GoAppEngineSdkType goSdk = new GoAppEngineSdkType();
        if (!goSdk.isValidSdkHome(gaeSdkPath)) {
            return new ValidationInfo(GoBundle.message("error.invalid.sdk.path", mySdkPath.getText()));
        }

        GoAppEngineSdkData goSdkData = GoSdkUtil.testGoAppEngineSdk(gaeSdkPath);

        if (goSdkData == null) {
            return new ValidationInfo(GoBundle.message("error.invalid.sdk.path", mySdkPath.getText()));
        }
View Full Code Here

        sdkList.clear();
        sdkList.addAll(GoSdkUtil.getSdkOfType(GoAppEngineSdkType.getInstance(), jdkTable));

        for (Sdk sdk : sdkList) {
            GoAppEngineSdkData sdkData = (GoAppEngineSdkData) sdk.getSdkAdditionalData();

            if (sdkData == null || sdkData.TARGET_ARCH == null || sdkData.TARGET_OS == null) {
                Notifications.Bus.notify(
                        new Notification(
                                "Go AppEngine SDK validator",
                                "Corrupt Go App Engine SDK",
                                getContent("Go App Engine", sdk.getName()),
                                NotificationType.WARNING
                        ), myProject);

                continue;
            }

            boolean needsUpgrade = false;
            try {
                sdkData.checkValid();
            } catch (ConfigurationException ex) {
                needsUpgrade = true;
            }

            if (!needsUpgrade)
                continue;

            needsUpgrade = false;
            GoAppEngineSdkData data = GoSdkUtil.testGoAppEngineSdk(sdk.getHomePath());

            if (data == null)
                needsUpgrade = true;

            try {
                if (data != null) {
                    data.checkValid();
                }
            } catch (ConfigurationException ex) {
                needsUpgrade = true;
            }
View Full Code Here

        VirtualFile goRoot = home;

        if ( ownerSdk.getSdkType() == GoAppEngineSdkType.getInstance() ) {
            goRoot = home.findFileByRelativePath("goroot");

            GoAppEngineSdkData sdkData = (GoAppEngineSdkData) ownerSdk.getSdkAdditionalData();
            if ( sdkData != null && sdkData.TARGET_OS != null && sdkData.TARGET_ARCH != null ) {
                activeTarget = String.format("%s_%s", sdkData.TARGET_OS.getName(), sdkData.TARGET_ARCH.getName());
            }
        } else {
            GoSdkData sdkData = (GoSdkData) ownerSdk.getSdkAdditionalData();
View Full Code Here

        Sdk sdk = GoSdkUtil.getGoogleGAESdkForProject(project);
        if ( sdk == null ) {
            return;
        }

        final GoAppEngineSdkData sdkData = (GoAppEngineSdkData)sdk.getSdkAdditionalData();
        if ( sdkData == null ) {
            return;
        }

        String projectDir = project.getBasePath();
View Full Code Here

        Sdk sdk = GoSdkUtil.getGoogleGAESdkForProject(project);
        if ( sdk == null ) {
            return;
        }

        final GoAppEngineSdkData sdkData = (GoAppEngineSdkData)sdk.getSdkAdditionalData();
        if ( sdkData == null ) {
            return;
        }

        String projectDir = project.getBasePath();
View Full Code Here

        Sdk sdk = GoSdkUtil.getGoogleGAESdkForProject(project);
        if ( sdk == null ) {
            return;
        }

        final GoAppEngineSdkData sdkData = (GoAppEngineSdkData)sdk.getSdkAdditionalData();
        if ( sdkData == null ) {
            return;
        }

        if (consoleView == null) {
View Full Code Here

        Sdk sdk = GoSdkUtil.getGoogleGAESdkForProject(project);
        if ( sdk == null ) {
            return;
        }

        final GoAppEngineSdkData sdkData = (GoAppEngineSdkData)sdk.getSdkAdditionalData();
        if ( sdkData == null ) {
            return;
        }

        String projectDir = project.getBasePath();
View Full Code Here

        SdkAdditionalData data = sdk.getSdkAdditionalData();
        if (!(data instanceof GoAppEngineSdkData)) {
            return;
        }

        GoAppEngineSdkData sdkData = (GoAppEngineSdkData) data;

        labelVersion.setText(sdkData.VERSION_MAJOR);
        labelTimestamp.setText(sdkData.VERSION_MINOR);
        labelAppLevel.setText(sdkData.API_VERSIONS);
View Full Code Here

TOP

Related Classes of ro.redeul.google.go.config.sdk.GoAppEngineSdkData

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.