use of com.intellij.openapi.roots.ModuleRootAdapter in project go-lang-idea-plugin by go-lang-plugin-org.
the class GoVendoringUI method initPanel.
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);
}
}
use of com.intellij.openapi.roots.ModuleRootAdapter in project go-lang-idea-plugin by go-lang-plugin-org.
the class GoBuildTagsUI method initPanel.
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);
}
}
use of com.intellij.openapi.roots.ModuleRootAdapter in project android by JetBrains.
the class GradleFacet method initFacet.
@Override
public void initFacet() {
MessageBusConnection connection = getModule().getMessageBus().connect(this);
connection.subscribe(PROJECT_ROOTS, new ModuleRootAdapter() {
@Override
public void rootsChanged(ModuleRootEvent event) {
ApplicationManager.getApplication().invokeLater(() -> {
if (!isDisposed()) {
PsiDocumentManager.getInstance(getModule().getProject()).commitAllDocuments();
updateConfiguration();
}
});
}
});
updateConfiguration();
}
Aggregations