Package com.intellij.openapi.projectRoots

Examples of com.intellij.openapi.projectRoots.Sdk


                     public XDebugProcess start(@NotNull XDebugSession session) throws ExecutionException {
                            return new GdbDebugProcess(project, session, (GdbExecutionResult) executionResult);
                     }
            });

            Sdk sdk = GoSdkUtil.getGoogleGoSdkForProject(project);
            if ( sdk == null ) {
                debugSession.stop();
                return null;
            }

            final GoSdkData sdkData = (GoSdkData)sdk.getSdkAdditionalData();
            if ( sdkData == null ) {
                debugSession.stop();
                return null;
            }
View Full Code Here


        CommandLineState state = new CommandLineState(env) {
            @NotNull
            @Override
            protected OSProcessHandler startProcess() throws ExecutionException {
                Sdk sdk = GoSdkUtil.getGoogleGAESdkForProject(getProject());
                if ( sdk == null ) {
                    throw new CantRunException("No Go AppEngine Sdk defined for this project");
                }

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

                String goExecName = sdkData.SDK_HOME_PATH + File.separator + "goapp";
View Full Code Here

    @NotNull
    @Override
    protected OSProcessHandler startProcess() throws ExecutionException {
        GoTestConfiguration testConfiguration = consoleProperties.getConfiguration();
        Project project = testConfiguration.getProject();
        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 projectDir = project.getBasePath();
View Full Code Here

        if (GoCommonConsoleView.consoleView == null) {
            GoCommonConsoleView.consoleView = TextConsoleBuilderFactory.getInstance().createBuilder(project).getConsole();
        }
        ConsoleView consoleView = GoCommonConsoleView.consoleView;

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

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

        return missingPackages.trim();
    }

    private void runGoGet(Project project, String command, String packagesToImport, String projectDir) {
        Sdk sdk = GoSdkUtil.getProjectSdk(project);
        if (sdk == null) {
            return;
        }

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

        if (packagesToImport.isEmpty()) {
            return;
        }

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

        if (!packagesToUpdate.isEmpty()) {
View Full Code Here

        return missingPackages.trim();
    }

    private void runGoGet(Project project, String command, String packagesToImport, String projectDir) {
        Sdk sdk = GoSdkUtil.getProjectSdk(project);
        if (sdk == null) {
            return;
        }

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

    return null;
  }

  private static boolean isFileFromErlangSdk(@NotNull Project project, @NotNull VirtualFile virtualFile) {
    ProjectRootManager projectRootManager = ProjectRootManager.getInstance(project);
    Sdk projectSdk = projectRootManager.getProjectSdk();
    if (projectSdk == null) return false;
    for (VirtualFile sdkSourceRoot : projectSdk.getRootProvider().getFiles(OrderRootType.SOURCES)) {
      if (virtualFile.getPath().startsWith(sdkSourceRoot.getPath())) return true;
    }
    return false;
  }
View Full Code Here

      List<ErlangFunction> functions = new ArrayList<ErlangFunction>();

      List<LookupElement> lookupElements = ContainerUtil.newArrayList();

      Module module = ModuleUtilCore.findModuleForPsiElement(containingFile);
      Sdk sdk = module == null ? null : ModuleRootManager.getInstance(module).getSdk();
      ErlangSdkRelease release = sdk != null ? ErlangSdkType.getRelease(sdk) : null;
      if (qAtom != null) {
        String moduleName = getName(qAtom);
        functions.addAll(getExternalFunctionForCompletion(containingFile.getProject(), moduleName));
View Full Code Here

        commandLine.addParameter(canonicalPath);
      }

//      commandLine.addParameters("+warn_unused_vars", "+nowarn_shadow_vars", "+warn_unused_import");

      Sdk sdk = moduleRootManager.getSdk();

      if (sdk == null) {
        context.addMessage(CompilerMessageCategory.ERROR, "No SDK for module: " + module.getName(), null, -1, -1);
        return;
      }

      if (sdk.getSdkType() != ErlangSdkType.getInstance()) {
        context.addMessage(CompilerMessageCategory.ERROR, "Not a Erlang SDK for module: " + module.getName(), null, -1, -1);
        return;
      }

      String sdkHomePath = sdk.getHomePath();

      if (sdkHomePath == null) {
        context.addMessage(CompilerMessageCategory.ERROR, "No home path for Erlang SDK: " + sdk.getName(), null, -1, -1);
        return;
      }

      String erlc = FileUtil.toSystemDependentName(JpsErlangSdkType.getByteCodeCompilerExecutable(sdkHomePath).getAbsolutePath());
View Full Code Here

TOP

Related Classes of com.intellij.openapi.projectRoots.Sdk

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.