Examples of Sdk


Examples of com.intellij.openapi.projectRoots.Sdk

  public static RunContentDescriptor getNMEDescriptor(final HaxeDebugRunner runner,
                                                      final Module module,
                                                      RunContentDescriptor contentToReuse,
                                                      final ExecutionEnvironment env,
                                                      final Executor executor, String flexSdkName) throws ExecutionException {
    final Sdk flexSdk = FlexSdkUtils.findFlexOrFlexmojosSdk(flexSdkName);
    if (flexSdk == null) {
      throw new ExecutionException(HaxeBundle.message("flex.sdk.not.found", flexSdkName));
    }

    final FlexBuildConfiguration bc = new FakeFlexBuildConfiguration(flexSdk, null);
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

  public static RunContentDescriptor getOpenFLDescriptor(final HaxeDebugRunner runner,
                                                      final Module module,
                                                      RunContentDescriptor contentToReuse,
                                                      final ExecutionEnvironment env,
                                                      final Executor executor, String flexSdkName) throws ExecutionException {
    final Sdk flexSdk = FlexSdkUtils.findFlexOrFlexmojosSdk(flexSdkName);
    if (flexSdk == null) {
      throw new ExecutionException(HaxeBundle.message("flex.sdk.not.found", flexSdkName));
    }

    final FlexBuildConfiguration bc = new FakeFlexBuildConfiguration(flexSdk, null);
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

  @NotNull
  @Override
  protected ProcessHandler startProcess() throws ExecutionException {
    final HaxeModuleSettings settings = HaxeModuleSettings.getInstance(module);
    final Sdk sdk = ModuleRootManager.getInstance(module).getSdk();
    assert sdk != null;

    GeneralCommandLine commandLine = getCommandForNeko(sdk, settings);

    return new OSProcessHandler(commandLine.createProcess(), commandLine.getCommandLineString());
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

  @NotNull
  @Override
  protected ProcessHandler startProcess() throws ExecutionException {
    final HaxeModuleSettings settings = HaxeModuleSettings.getInstance(module);
    final Sdk sdk = ModuleRootManager.getInstance(module).getSdk();
    assert sdk != null;

    GeneralCommandLine commandLine = getCommandForNeko(sdk, settings);

    return new OSProcessHandler(commandLine.createProcess(), commandLine.getCommandLineString());
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

  @NotNull
  @Override
  protected ProcessHandler startProcess() throws ExecutionException {
    final HaxeModuleSettings settings = HaxeModuleSettings.getInstance(module);
    final Sdk sdk = ModuleRootManager.getInstance(module).getSdk();
    assert sdk != null;
    assert settings.getHaxeTarget() == HaxeTarget.NEKO;
    final HaxeSdkData sdkData = sdk.getSdkAdditionalData() instanceof HaxeSdkData ? (HaxeSdkData)sdk.getSdkAdditionalData() : null;

    GeneralCommandLine commandLine = getCommandForNeko(sdkData, settings);

    return new OSProcessHandler(commandLine.createProcess(), commandLine.getCommandLineString());
  }
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

      }

      final VirtualFile virtualDir = getTargetDirectoryFor(project, flexFile, lexerClassName + ".java", lexerPackage, false);

      SimpleJavaParameters javaParameters = new SimpleJavaParameters();
      Sdk sdk = new SimpleJavaSdkType().createJdk("tmp", SystemProperties.getJavaHome());
      javaParameters.setJdk(sdk);
      javaParameters.getClassPath().add(jflex.get(0));
      javaParameters.setMainClass("JFlex.Main");
      javaParameters.getVMParametersList().add("-Xmx512m");
      javaParameters.getProgramParametersList().add("-sliceandcharat");
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

    });
  }

  @Nullable
  private static String getCommunitySrcUrl(@NotNull Project project) {
    Sdk projectSdk = ProjectRootManager.getInstance(project).getProjectSdk();
    if (projectSdk != null) {
      String[] sources = projectSdk.getRootProvider().getUrls(OrderRootType.SOURCES);
      for (String source : sources) {
        String communityPath = StringUtil.trimEnd(source, "platform/lang-api/src");
        if (communityPath.length() < source.length()) {
          return communityPath;
        }
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

    myAdditionalProperties = myRunConfiguration.getAdditionalProperties();
    myBundles = bundles;

    // validation

    Sdk jdkForRun;
    if (myRunConfiguration.isUseAlternativeJre()) {
      String path = myRunConfiguration.getAlternativeJrePath();
      if (StringUtil.isEmpty(path) || !JdkUtil.checkForJre(path)) {
        jdkForRun = null;
      }
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

    return this;
  }

  @Override
  public Sdk getSdk() {
    final Sdk sdk = super.getSdk();
    if (webXmlUrl != null) {
      IdeaTestUtil.addWebJarsTo(sdk);
    }
    return sdk;
  }
View Full Code Here

Examples of com.intellij.openapi.projectRoots.Sdk

                workingDirectoryFile = new File(workingDirectory);
            }

            Project project = ((GdbDebugProcess) m_listener).m_project;

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

            final GoSdkData sdkData = (GoSdkData)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.