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

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

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

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);
}
origin: Camelcade/Perl5-IDEA

protected void setUpLibrary() {
 Application application = ApplicationManager.getApplication();
 application.invokeAndWait(() -> application.runWriteAction(
  () -> {
   VirtualFile libdir = LocalFileSystem.getInstance().refreshAndFindFileByPath("../testData/testlib");
   assert libdir != null;
   PerlProjectManager perlProjectManager = PerlProjectManager.getInstance(getProject());
   ProjectJdkImpl testSdk = PerlSdkTable.getInstance().createSdk("test");
   testSdk.setSdkAdditionalData(new PerlSdkAdditionalData(
    PerlHostHandler.getDefaultHandler().createData(),
    PerlVersionManagerData.getDefault(),
    PerlImplementationHandler.getDefaultHandler().createData()));
   PerlSdkTable.getInstance().addJdk(testSdk, getTestRootDisposable());
   perlProjectManager.setProjectSdk(testSdk);
   perlProjectManager.addExternalLibrary(libdir);
   CodeInsightTestFixtureImpl.ensureIndexesUpToDate(getProject());
  }));
}
com.intellij.openapi.projectRoots.implProjectJdkImplsetSdkAdditionalData

Popular methods of ProjectJdkImpl

  • <init>
  • setHomePath
  • setVersionString
  • 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 12 Jupyter Notebook extensions
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