use of com.intellij.openapi.externalSystem.service.settings.AbstractExternalSystemConfigurable in project intellij-community by JetBrains.
the class OpenExternalSystemSettingsCallback method hyperlinkActivated.
@Override
protected void hyperlinkActivated(@NotNull Notification notification, @NotNull HyperlinkEvent event) {
ExternalSystemManager<?, ?, ?, ?, ?> manager;
if (myLinkedProjectPath == null || !((manager = ExternalSystemApiUtil.getManager(mySystemId)) instanceof ExternalSystemConfigurableAware)) {
ShowSettingsUtil.getInstance().showSettingsDialog(myProject, mySystemId.getReadableName());
return;
}
final Configurable configurable = ((ExternalSystemConfigurableAware) manager).getConfigurable(myProject);
if (configurable instanceof AbstractExternalSystemConfigurable) {
ShowSettingsUtil.getInstance().editConfigurable(myProject, configurable, () -> ((AbstractExternalSystemConfigurable) configurable).selectProject(myLinkedProjectPath));
}
}
Aggregations