Codota Logo
JavaDirectoryService.isSourceRoot
Code IndexAdd Codota to your IDE (free)

How to use
isSourceRoot
method
in
com.intellij.psi.JavaDirectoryService

Best Java code snippets using com.intellij.psi.JavaDirectoryService.isSourceRoot (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: com.github.adedayo.intellij.sdk/java-psi-api

public static PsiDirectory sourceRoot(PsiDirectory containingDirectory) {
 while (containingDirectory != null) {
  if (JavaDirectoryService.getInstance().isSourceRoot(containingDirectory)) {
   return containingDirectory;
  }
  containingDirectory = containingDirectory.getParentDirectory();
 }
 return null;
}
com.intellij.psiJavaDirectoryServiceisSourceRoot

Javadoc

Checks if the directory is a source root for the project to which it belongs.

Popular methods of JavaDirectoryService

  • getInstance
  • createClass
  • getPackage
    Returns the package corresponding to the directory.
  • getLanguageLevel

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • String (java.lang)
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
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