Codota Logo
ProjectJdkImpl.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now