mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
clear the log model on clearing the console
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user