congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ProjectJdkImpl.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.intellij.openapi.projectRoots.impl.ProjectJdkImpl
constructor

Best Java code snippets using com.intellij.openapi.projectRoots.impl.ProjectJdkImpl.<init> (Showing top 5 results out of 315)

origin: go-lang-plugin-org/go-lang-idea-plugin

@NotNull
private static Sdk createMockSdk(@NotNull String version) {
 String homePath = new File("testData/mockSdk-" + version + "/").getAbsolutePath();
 GoSdkType sdkType = GoSdkType.getInstance();
 ProjectJdkImpl sdk = new ProjectJdkImpl("Go " + version, sdkType, homePath, version);
 sdkType.setupSdkPaths(sdk);
 sdk.setVersionString(version);
 return sdk;
}
origin: KronicDeth/intellij-elixir

@TestOnly
@NotNull
public static Sdk createMockSdk(@NotNull String sdkHome, @NotNull Release version) {
  getInstance().mySdkHomeToReleaseCache.put(getVersionCacheKey(sdkHome), version);  // we'll not try to detect sdk version in tests environment
  Sdk sdk = new ProjectJdkImpl(getDefaultSdkName(sdkHome, version), getInstance());
  SdkModificator sdkModificator = sdk.getSdkModificator();
  sdkModificator.setHomePath(sdkHome);
  sdkModificator.setVersionString(getVersionString(version));// must be set after home path, otherwise setting home path clears the version string
  sdkModificator.commitChanges();
  configureSdkPaths(sdk);
  return sdk;
}
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: go-lang-plugin-org/go-lang-idea-plugin

String sdkHome = sdkType.adjustSelectedSdkHome(sdk.getHomePath());
if (sdkType.isValidSdkHome(sdkHome)) {
 ProjectJdkImpl newSdk = new ProjectJdkImpl(sdk.getName(), sdkType, sdkHome, sdkType.getVersionString(sdkHome));
 sdkType.setupSdkPaths(newSdk);
 sdksToAdd.add(newSdk);
origin: Camelcade/Perl5-IDEA

@Override
public void loadState(@NotNull Element element) {
 myInterpretersList.clear();
 for (Element child : element.getChildren(PERL)) {
  ProjectJdkImpl sdk = new ProjectJdkImpl(null, null);
  sdk.readExternal(child, this);
  myInterpretersList.add(sdk);
 }
}
com.intellij.openapi.projectRoots.implProjectJdkImpl<init>

Popular methods of ProjectJdkImpl

  • setHomePath
  • setSdkAdditionalData
  • setVersionString
  • getVersionString
  • readExternal
  • resetVersionString
  • setName
  • writeExternal

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Reference (javax.naming)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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