private static boolean shouldBeBuiltByExternalSystem(@NotNull Project project) {
   // skip resource compilation by IDE for Android projects
   // TODO [vlad] this check should be replaced when an option to make any gradle project with
   // gradle be introduced.
   ProjectType projectType = ProjectTypeService.getProjectType(project);
   if (projectType != null && "Android".equals(projectType.getId())) return true;
   return false;
 }
コード例 #2
0
 @Nullable
 private AnAction getAction(AnActionEvent e) {
   Project project = e.getProject();
   ProjectType projectType = ProjectTypeService.getProjectType(project);
   AnAction action = myActions.get(projectType);
   if (action == null) action = myActions.get(null);
   return action;
 }