M
- the kind of Mode
this rewriter acceptsH
- the kind of history this rewriter acceptspublic interface HistoryRewriter<H,M extends Mode<H>>
HistoryRewriter
can rewrite the history information that is associated with a Dockable
in a
specific Mode
. HistoryRewriters are applied at the moment when history information is read, and are
used by the ModeManager
.Modifier and Type | Method and Description |
---|---|
H |
rewrite(Dockable dockable,
M mode,
H history)
Checks whether the history object
history is still valid. |
H rewrite(Dockable dockable, M mode, H history)
history
is still valid.dockable
- the element which is about to change its modemode
- the mode that is going to be appliedhistory
- the history object that will be forwarded to mode
, may be null
null