Use help id from ServerType when there is no any other ServerTypes.

RUBY-18227 Map help button of the Heroku settings dialog
This commit is contained in:
Andrey Vokin
2016-07-29 11:31:47 +02:00
parent ac4ef4ea97
commit aa1d2b82f3
@@ -190,7 +190,14 @@ public class RemoteServerListConfigurable extends MasterDetailsComponent impleme
@Override
public String getHelpTopic() {
return ObjectUtils.notNull(super.getHelpTopic(), "reference.settings.clouds");
String result = super.getHelpTopic();
if (result == null) {
ServerType<?> singleServerType = getSingleServerType();
if (singleServerType != null) {
return singleServerType.getHelpTopic();
}
}
return "reference.settings.clouds";
}
@Override