Examples of Sdk


Examples of com.intellij.openapi.projectRoots.Sdk

            return;
        }

        Project project = e.getProject();
        if ( project != null ) {
            Sdk sdk = ProjectRootManager.getInstance(project).getProjectSdk();
            e.getPresentation().setVisible(debugEnabled && sdk != null && sdk.getSdkType() instanceof GoAppEngineSdkType);
        }
    }
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

    @Override
    public void update(AnActionEvent e)
    {
        super.update(e);

        Sdk sdk = ProjectRootManager.getInstance(e.getProject()).getProjectSdk();

        final Module data = LangDataKeys.MODULE.getData(e.getDataContext());
        e.getPresentation().setVisible(data != null &&
                sdk != null &&
                sdk.getSdkType() instanceof GoAppEngineSdkType);
    }
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

    @Override
    public void update(AnActionEvent e)
    {
        super.update(e);

        Sdk sdk = ProjectRootManager.getInstance(e.getProject()).getProjectSdk();

        final Module data = LangDataKeys.MODULE.getData(e.getDataContext());
        e.getPresentation().setVisible(data != null &&
                sdk != null &&
                sdk.getSdkType() instanceof GoSdkType);
    }
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

            if (packagePath != null && packagePath.isDirectory()) {
                return new GoPackageImpl(packagePath, sourceRoot, PsiManager.getInstance(myProject));
            }
        }

        Sdk projectSdk = ProjectRootManagerEx.getInstanceEx(myProject).getProjectSdk();
        if ( projectSdk == null )
            return null;

        VirtualFile[] sdkSourceRoots = projectSdk.getRootProvider().getFiles(OrderRootType.SOURCES);

        for (VirtualFile sourceRoot : sdkSourceRoots) {
            VirtualFile packagePath = sourceRoot.findFileByRelativePath(path);
            if ( packagePath != null && packagePath.isDirectory()) {
                return new GoPackageImpl(packagePath, sourceRoot, PsiManager.getInstance(myProject));
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

        String projectDir = project.getBasePath();
        if (projectDir == null) {
            return;
        }

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

        String[] goEnv = GoSdkUtil.getGoEnv(sdk, projectDir);
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

        String projectDir = project.getBasePath();
        if (projectDir == null) {
            return;
        }

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

        String[] goEnv = GoSdkUtil.getGoEnv(sdk, projectDir);
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk


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

        Sdk ownerSdk = null;

        VirtualFile ownerSdkRoot = null;
        if (projectFileIndex.isInLibraryClasses(virtualFile)) {
            VirtualFile classPathRoot = projectFileIndex.getClassRootForFile(virtualFile);
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

    @Nullable
    @Override
    public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner)
            throws ExecutionException {

        Sdk sdk = GoSdkUtil.getGoogleGoSdkForProject(project);
        if ( sdk == null ) {
            throw new CantRunException("No Go Sdk defined for this project");
        }

        final GoSdkData sdkData = (GoSdkData)sdk.getSdkAdditionalData();
        if ( sdkData == null ) {
            throw new CantRunException("No Go Sdk defined for this project");
        }

        String goExecName = sdkData.GO_BIN_PATH;
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

        if (projectDir == null) {
            return;
        }

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

        String[] goEnv = GoSdkUtil.getGoEnv(sdk, projectDir);
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

        if (project == null) {
            return;
        }


        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
TOP
Copyright © 2018 www.massapi.com. 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.