use of javax.swing.event.ListDataEvent in project android by JetBrains.
the class RenderErrorPanel method setModel.
public void setModel(@NotNull RenderErrorModel model) {
if (model.equals(myModel)) {
return;
}
myModel.removeListDataListener(this);
// The user has seen the new errors only if the panel is not minimized
hasUserSeenNewErrors = !isMinimized();
myModel = model;
myModel.addListDataListener(this);
contentsChanged(new ListDataEvent(myModel, ListDataEvent.CONTENTS_CHANGED, 0, myModel.getSize()));
}
Aggregations