Tabnine Logo
Location.getVirtualFile
Code IndexAdd Tabnine to your IDE (free)

How to use
getVirtualFile
method
in
com.intellij.execution.Location

Best Java code snippets using com.intellij.execution.Location.getVirtualFile (Showing top 3 results out of 315)

origin: Camelcade/Perl5-IDEA

@Nullable
public VirtualFile findPerlFile(ConfigurationContext configurationContext) {
 Location location = configurationContext.getLocation();
 VirtualFile virtualFile = location == null ? null : location.getVirtualFile();
 return virtualFile != null && isExecutableFile(virtualFile) ? virtualFile : null;
}
origin: BashSupport/BashSupport

  @Override
  public boolean isConfigurationFromContext(BashRunConfiguration configuration, ConfigurationContext context) {
    Location location = context.getLocation();
    if (location == null) {
      return false;
    }

    //fixme file checks needs to check the properties

    VirtualFile file = location.getVirtualFile();
    return file != null && FileUtil.pathsEqual(file.getPath(), configuration.getScriptName());
  }
}
origin: BashSupport/BashSupport

VirtualFile file = location.getVirtualFile();
if (file == null) {
  return false;
com.intellij.executionLocationgetVirtualFile

Popular methods of Location

  • getPsiElement
  • getAncestorOrSelf
  • getAncestors

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Collectors (java.util.stream)
  • Runner (org.openjdk.jmh.runner)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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