Java Code Examples for com.intellij.psi.search.FileTypeIndex#containsFileOfType()

The following examples show how to use com.intellij.psi.search.FileTypeIndex#containsFileOfType() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FlutterBazelRunConfigurationType.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
/**
 * Defined here for all Flutter Bazel run configurations.
 */
public static boolean doShowBazelRunConfigurationForProject(@NotNull Project project) {
  return FileTypeIndex.containsFileOfType(DartFileType.INSTANCE, GlobalSearchScope.projectScope(project)) &&
         FlutterModuleUtils.isFlutterBazelProject(project);
}
 
Example 2
Source File: FlutterRunConfigurationType.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
/**
 * Defined here for all Flutter run configurations.
 */
public static boolean doShowFlutterRunConfigurationForProject(@NotNull Project project) {
  return FileTypeIndex.containsFileOfType(DartFileType.INSTANCE, GlobalSearchScope.projectScope(project)) &&
         FlutterModuleUtils.hasFlutterModule(project);
}
 
Example 3
Source File: FlutterBazelRunConfigurationType.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
/**
 * Defined here for all Flutter Bazel run configurations.
 */
public static boolean doShowBazelRunConfigurationForProject(@NotNull Project project) {
  return FileTypeIndex.containsFileOfType(DartFileType.INSTANCE, GlobalSearchScope.projectScope(project)) &&
         FlutterModuleUtils.isFlutterBazelProject(project);
}
 
Example 4
Source File: FlutterRunConfigurationType.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
/**
 * Defined here for all Flutter run configurations.
 */
public static boolean doShowFlutterRunConfigurationForProject(@NotNull Project project) {
  return FileTypeIndex.containsFileOfType(DartFileType.INSTANCE, GlobalSearchScope.projectScope(project)) &&
         FlutterModuleUtils.hasFlutterModule(project);
}