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

  • 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: 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

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JTextField (javax.swing)
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