mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-82593 Flex project structure, Choose Flex Build Configurations dialog: disable OK button if no BC is selected
This commit is contained in:
+4
-2
@@ -209,7 +209,9 @@ public class LibraryEditingUtil {
|
||||
return modules;
|
||||
}
|
||||
|
||||
public static void showDialogAndAddLibraryToDependencies(@NotNull Library library, @NotNull Project project) {
|
||||
ProjectStructureValidator.showDialogAndAddLibraryToDependencies(library, project);
|
||||
public static void showDialogAndAddLibraryToDependencies(@NotNull Library library,
|
||||
@NotNull Project project,
|
||||
boolean allowEmptySelection) {
|
||||
ProjectStructureValidator.showDialogAndAddLibraryToDependencies(library, project, allowEmptySelection);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ public class CreateNewLibraryAction extends DumbAwareAction {
|
||||
final DefaultMutableTreeNode
|
||||
libraryNode = MasterDetailsComponent.findNodeByObject((TreeNode)rootConfigurable.getTree().getModel().getRoot(), library);
|
||||
rootConfigurable.selectNodeInTree(libraryNode);
|
||||
LibraryEditingUtil.showDialogAndAddLibraryToDependencies(library, myProject);
|
||||
LibraryEditingUtil.showDialogAndAddLibraryToDependencies(library, myProject, true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -54,6 +54,6 @@ public class AddLibraryToModuleDependenciesAction extends DumbAwareAction {
|
||||
final LibraryProjectStructureElement element = (LibraryProjectStructureElement)myConfigurable.getSelectedElement();
|
||||
if (element == null) return;
|
||||
final Library library = element.getLibrary();
|
||||
LibraryEditingUtil.showDialogAndAddLibraryToDependencies(library, myProject);
|
||||
LibraryEditingUtil.showDialogAndAddLibraryToDependencies(library, myProject, false);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -197,7 +197,7 @@ public class LibraryProjectStructureElement extends ProjectStructureElement {
|
||||
|
||||
@Override
|
||||
public void performFix() {
|
||||
LibraryEditingUtil.showDialogAndAddLibraryToDependencies(myLibrary, myContext.getProject());
|
||||
LibraryEditingUtil.showDialogAndAddLibraryToDependencies(myLibrary, myContext.getProject(), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -55,9 +55,9 @@ public abstract class ProjectStructureValidator {
|
||||
element.check(problemsHolder);
|
||||
}
|
||||
|
||||
public static void showDialogAndAddLibraryToDependencies(final Library library, final Project project) {
|
||||
public static void showDialogAndAddLibraryToDependencies(final Library library, final Project project, boolean allowEmptySelection) {
|
||||
for (ProjectStructureValidator validator : EP_NAME.getExtensions()) {
|
||||
if (validator.addLibraryToDependencies(library, project)) {
|
||||
if (validator.addLibraryToDependencies(library, project, allowEmptySelection)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -81,7 +81,7 @@ public abstract class ProjectStructureValidator {
|
||||
/**
|
||||
* @return <code>true</code> if handled
|
||||
*/
|
||||
protected boolean addLibraryToDependencies(final Library library, final Project project) {
|
||||
protected boolean addLibraryToDependencies(final Library library, final Project project, final boolean allowEmptySelection) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user