mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
hide non-working library and module settings actions from context menu of platform-based products (WI-4440)
This commit is contained in:
+20
@@ -47,18 +47,38 @@ public class IdeaProjectSettingsService extends ProjectSettingsService {
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canOpenModuleSettings() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void openModuleSettings(final Module module) {
|
||||
ModulesConfigurator.showDialog(myProject, module.getName(), null, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canOpenModuleLibrarySettings() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void openModuleLibrarySettings(final Module module) {
|
||||
ModulesConfigurator.showDialog(myProject, module.getName(), ClasspathEditor.NAME, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canOpenContentEntriesSettings() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void openContentEntriesSettings(final Module module) {
|
||||
ModulesConfigurator.showDialog(myProject, module.getName(), ContentEntriesEditor.NAME, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canOpenProjectLibrarySettings(NamedLibraryElement value) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void openProjectLibrarySettings(final NamedLibraryElement element) {
|
||||
final ProjectStructureConfigurable config = ProjectStructureConfigurable.getInstance(myProject);
|
||||
ShowSettingsUtil.getInstance().editConfigurable(myProject, config, new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user