hide non-working library and module settings actions from context menu of platform-based products (WI-4440)

This commit is contained in:
Dmitry Jemerov
2011-01-20 13:08:23 +01:00
parent 2608b99dc8
commit 899aa3b87c
6 changed files with 59 additions and 15 deletions
@@ -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() {