本文整理汇总了Java中com.intellij.openapi.externalSystem.service.settings.AbstractExternalSystemConfigurable类的典型用法代码示例。如果您正苦于以下问题:Java AbstractExternalSystemConfigurable类的具体用法?Java AbstractExternalSystemConfigurable怎么用?Java AbstractExternalSystemConfigurable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AbstractExternalSystemConfigurable类属于com.intellij.openapi.externalSystem.service.settings包,在下文中一共展示了AbstractExternalSystemConfigurable类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: hyperlinkActivated
import com.intellij.openapi.externalSystem.service.settings.AbstractExternalSystemConfigurable; //导入依赖的package包/类
@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, new Runnable() {
@Override
public void run() {
((AbstractExternalSystemConfigurable)configurable).selectProject(myLinkedProjectPath);
}
});
}
}