congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ProjectJdkImpl.setHomePath
Code IndexAdd Tabnine to your IDE (free)

How to use
setHomePath
method
in
com.intellij.openapi.projectRoots.impl.ProjectJdkImpl

Best Java code snippets using com.intellij.openapi.projectRoots.impl.ProjectJdkImpl.setHomePath (Showing top 2 results out of 315)

origin: KronicDeth/intellij-elixir

@Nullable
private static Sdk createDefaultErlangSdk(@NotNull ProjectJdkTable projectJdkTable,
                     @NotNull SdkType erlangSdkType,
                     @NotNull String homePath) {
  String sdkName = erlangSdkType.suggestSdkName("Default " + erlangSdkType.getName(), homePath);
  ProjectJdkImpl projectJdkImpl = new ProjectJdkImpl(sdkName, erlangSdkType);
  projectJdkImpl.setHomePath(homePath);
  erlangSdkType.setupSdkPaths(projectJdkImpl);
  final Sdk erlangSdk;
  if (projectJdkImpl.getVersionString() != null) {
    ApplicationManager.getApplication().invokeAndWait(
        () -> ApplicationManager.getApplication().runWriteAction(() ->
            projectJdkTable.addJdk(projectJdkImpl)
        ),
        NON_MODAL
    );
    erlangSdk = projectJdkImpl;
  } else {
    erlangSdk = null;
  }
  return erlangSdk;
}
origin: Camelcade/Perl5-IDEA

/**
 * Creates and adds new Perl SDK
 *
 * @param interpreterPath interpreter path
 * @param sdkConsumer     created sdk consumer
 */
public static void createSdk(@NotNull String interpreterPath,
               @NotNull PerlHostData hostData,
               @NotNull PerlVersionManagerData versionManagerData,
               @NotNull Consumer<Sdk> sdkConsumer) {
 VersionDescriptor perlVersionDescriptor = PerlSdkType.getPerlVersionDescriptor(interpreterPath, hostData, versionManagerData);
 if (perlVersionDescriptor == null) {
  ApplicationManager.getApplication().invokeLater(
   () -> Messages.showErrorDialog("Failed to fetch perl version, see logs for more details", "Failed to Create Interpreter"));
  return;
 }
 String newSdkName = SdkConfigurationUtil.createUniqueSdkName(
  suggestSdkName(perlVersionDescriptor, hostData, versionManagerData), PerlSdkTable.getInstance().getInterpreters());
 final ProjectJdkImpl newSdk = PerlSdkTable.getInstance().createSdk(newSdkName);
 newSdk.setHomePath(interpreterPath);
 PerlImplementationData<?, ?> implementationData = PerlImplementationHandler.createData(
  interpreterPath, hostData, versionManagerData);
 if (implementationData == null) {
  return;
 }
 newSdk.setVersionString(perlVersionDescriptor.getVersionString());
 newSdk.setSdkAdditionalData(new PerlSdkAdditionalData(hostData, versionManagerData, implementationData));
 sdkConsumer.accept(newSdk);
}
com.intellij.openapi.projectRoots.implProjectJdkImplsetHomePath

Popular methods of ProjectJdkImpl

  • <init>
  • setSdkAdditionalData
  • setVersionString
  • getVersionString
  • readExternal
  • resetVersionString
  • setName
  • writeExternal

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now