本文整理了Java中com.intellij.openapi.module.Module.getMessageBus()
方法的一些代码示例,展示了Module.getMessageBus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.getMessageBus()
方法的具体详情如下:
包路径:com.intellij.openapi.module.Module
类名称:Module
方法名:getMessageBus
暂无
代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin
public void initPanel(@NotNull Module module) {
if (!module.isDisposed()) {
MessageBusConnection connection = module.getMessageBus().connect(this);
connection.subscribe(ProjectTopics.PROJECT_ROOTS, new ModuleRootAdapter() {
@Override
public void rootsChanged(ModuleRootEvent event) {
initComboValues(module);
}
});
initComboValues(module);
}
}
代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin
public GoModuleLibrariesInitializer(@NotNull Module module) {
myModule = module;
myAlarm = ApplicationManager.getApplication().isUnitTestMode() ? new Alarm() : new Alarm(Alarm.ThreadToUse.POOLED_THREAD, myModule);
myConnection = myModule.getMessageBus().connect();
}
代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin
public void initPanel(@NotNull Module module) {
if (!module.isDisposed()) {
MessageBusConnection connection = module.getMessageBus().connect(this);
//noinspection unchecked
myVendoringEnabledCombo.setModel(myVendoringEnabledComboModel);
connection.subscribe(ProjectTopics.PROJECT_ROOTS, new ModuleRootAdapter() {
@Override
public void rootsChanged(ModuleRootEvent event) {
initComboValues(module);
}
});
initComboValues(module);
}
}
代码示例来源:origin: ballerina-platform/ballerina-lang
public BallerinaModuleLibrariesInitializer(@NotNull Module module) {
myModule = module;
myAlarm = ApplicationManager.getApplication().isUnitTestMode() ? new Alarm() :
new Alarm(Alarm.ThreadToUse.POOLED_THREAD, myModule);
myConnection = myModule.getMessageBus().connect();
}
内容来源于网络,如有侵权,请联系作者删除!