use of com.intellij.openapi.roots.ui.configuration.libraries.AddCustomLibraryDialog in project intellij-community by JetBrains.
the class MvcFramework method configureAsLibraryDependency.
protected void configureAsLibraryDependency(@NotNull Module module) {
final GroovyLibraryDescription description = createLibraryDescription();
final AddCustomLibraryDialog dialog = AddCustomLibraryDialog.createDialog(description, module, null);
dialog.setTitle("Change " + getDisplayName() + " SDK version");
if (dialog.showAndGet())
module.putUserData(UPGRADE, Boolean.TRUE);
}
use of com.intellij.openapi.roots.ui.configuration.libraries.AddCustomLibraryDialog in project intellij-community by JetBrains.
the class MvcUpgradeAction method actionPerformed.
@Override
protected void actionPerformed(@NotNull AnActionEvent e, @NotNull final Module module, @NotNull final MvcFramework framework) {
final GroovyLibraryDescription description = framework.createLibraryDescription();
final AddCustomLibraryDialog dialog = AddCustomLibraryDialog.createDialog(description, module, modifiableRootModel -> removeOldMvcSdk(framework, modifiableRootModel));
dialog.setTitle("Change " + framework.getDisplayName() + " SDK version");
if (dialog.showAndGet()) {
module.putUserData(MvcFramework.UPGRADE, Boolean.TRUE);
module.putUserData(MvcModuleStructureUtil.LAST_MVC_VERSION, null);
}
}
Aggregations