Tabnine Logo
ProjectJdkImpl.setVersionString
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.intellij.openapi.projectRoots.impl.ProjectJdkImpl.setVersionString (Showing top 2 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: 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.implProjectJdkImplsetVersionString

Popular methods of ProjectJdkImpl

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

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • Menu (java.awt)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • 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