use of org.elixir_lang.utils.AncestorAdapter in project intellij-elixir by KronicDeth.
the class ElixirCompilerOptionsConfigurable method setupUiListeners.
private void setupUiListeners() {
myConfigureMixButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
DataContext context = DataManager.getInstance().getDataContext(myConfigureMixButton);
Settings settings = ObjectUtils.assertNotNull(Settings.KEY.getData(context));
Configurable configurable = settings.find(ElixirExternalToolsConfigurable.ELIXIR_RELATED_TOOLS);
if (configurable != null) {
settings.select(configurable);
}
}
});
myRootPanel.addAncestorListener(new AncestorAdapter() {
@Override
public void ancestorAdded(AncestorEvent event) {
reset();
}
});
}
Aggregations