clear the log model on clearing the console

This commit is contained in:
peter
2011-06-15 15:43:42 +02:00
parent dfa8484142
commit 858b56d40f
@@ -208,7 +208,7 @@ public class EventLog implements Notifications {
myHyperlinkSupport = new EditorHyperlinkSupport(myLogEditor, project);
}
private static DefaultActionGroup createPopupActions(ActionManager actionManager) {
private DefaultActionGroup createPopupActions(ActionManager actionManager) {
DefaultActionGroup group = new DefaultActionGroup();
group.add(new DumbAwareAction("Clear All") {
@Override
@@ -223,6 +223,9 @@ public class EventLog implements Notifications {
if (editor != null) {
editor.getDocument().deleteString(0, editor.getDocument().getTextLength());
}
for (Notification notification : myProjectModel.getNotifications()) {
myProjectModel.removeNotification(notification);
}
}
});
group.add(new EditorCopyAction());