mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-140785 Replace check getFacets().size() > 0 with hasFacet() which stops on first match
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ public class UploadApplicationAction extends AnAction {
|
||||
public void update(AnActionEvent e) {
|
||||
final Project project = e.getProject();
|
||||
e.getPresentation().setEnabledAndVisible(
|
||||
project != null && !ProjectFacetManager.getInstance(project).getFacets(AppEngineFacet.ID).isEmpty());
|
||||
project != null && ProjectFacetManager.getInstance(project).hasFacets(AppEngineFacet.ID));
|
||||
|
||||
if (project != null) {
|
||||
String text;
|
||||
|
||||
Reference in New Issue
Block a user