Skip to content

Commit

Permalink
Added clean class comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisCnockaert committed Jan 27, 2025
1 parent fd9e2db commit 5f07e35
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/NewTools-WindowManager/SpClosedWindowListPresenter.class.st
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
"
A SpClosedWindowListPresenter is a presenter that manages and displays a list of recently closed windows in the Pharo image.
It maintains a history of the last 5 closed windows and provides functionality to either
permanently close them or restore them to their previous state.
Class Instance Variable:
lastClosedWindows <OrderedCollection> Collection holding up to 5 recently closed window
Example usage:
```smalltalk
SpClosedWindowListPresenter new open
```
Implementation Points:
- Uses a fixed-size ring buffer (max 5 elements) to track closed windows
- Windows can be restored to their original position and state
- Updates the list automatically when windows are closed or restored
Public API:
- #addClosedWindow: aWindow Add a window to the history
"
Class {
#name : 'SpClosedWindowListPresenter',
#superclass : 'SpPresenter',
Expand Down

0 comments on commit 5f07e35

Please sign in to comment.