public interface JIPipeHistoryJournal
Modifier and Type | Interface and Description |
---|---|
static class |
JIPipeHistoryJournal.ChangedEvent
Event when the history log was changed
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the journal
|
JIPipeHistoryJournalSnapshot |
getCurrentSnapshot()
Gets the snapshot that represents the current state of the data
|
EventBus |
getEventBus()
The event bus
|
JIPipeHistoryJournalSnapshot |
getRedoSnapshot()
Gets the snapshot for the next redo operation
|
List<JIPipeHistoryJournalSnapshot> |
getSnapshots()
Gets the list of all snapshots.
|
JIPipeHistoryJournalSnapshot |
getUndoSnapshot()
Gets the snapshot for the next undo operation
|
boolean |
goToSnapshot(JIPipeHistoryJournalSnapshot snapshot,
UUID compartment)
Attempts to go to a specified snapshot
|
default boolean |
redo(UUID compartment)
Redo the last undo operation
|
void |
snapshot(String name,
String description,
UUID compartment,
Icon icon)
Creates a new snapshot in the history journal
|
default void |
snapshotBeforeAddCompartment(String compartment)
Create a snapshot for adding a node
|
default void |
snapshotBeforeAddNode(JIPipeGraphNode node,
UUID compartment)
Create a snapshot for adding a node
|
default void |
snapshotBeforeAddNodes(Collection<JIPipeGraphNode> nodes,
UUID compartment)
Create a snapshot for adding a node
|
default void |
snapshotBeforeAddSlot(JIPipeGraphNode node,
JIPipeDataSlotInfo info,
UUID compartment)
Snapshot before adding a slot
|
default void |
snapshotBeforeConnect(JIPipeDataSlot source,
JIPipeDataSlot target,
UUID compartment)
Snapshot before connecting two slots
|
default void |
snapshotBeforeCutCompartment(JIPipeProjectCompartment compartment)
Snapshot before cutting a compartment
|
default void |
snapshotBeforeCutNodes(Set<JIPipeGraphNode> nodes,
UUID compartment)
Snapshot before cutting a compartment
|
default void |
snapshotBeforeDisconnect(JIPipeDataSlot source,
JIPipeDataSlot target,
UUID compartment)
Snapshot before disconnecting two slots
|
default void |
snapshotBeforeDisconnectAll(JIPipeDataSlot slot,
UUID compartment)
Snapshot before disconnecting two slots
|
default void |
snapshotBeforeEditSlot(JIPipeDataSlot slot,
UUID compartment)
Create snapshot before a slot edit
|
default void |
snapshotBeforeLabelSlot(JIPipeDataSlot slot,
UUID compartment)
Snapshot before adding a slot
|
default void |
snapshotBeforeMoveNodes(Set<JIPipeGraphNode> nodes,
UUID compartment)
Create a snapshot for moving nodes
|
default void |
snapshotBeforeMoveSlot(JIPipeDataSlot slot,
UUID compartment)
Snapshot before adding a slot
|
default void |
snapshotBeforePasteNodes(Collection<JIPipeGraphNode> nodes,
UUID compartment)
Create a snapshot for adding a node
|
default void |
snapshotBeforeRemoveCompartment(JIPipeProjectCompartment compartment)
Create a snapshot for removing a node
|
default void |
snapshotBeforeRemoveNode(JIPipeGraphNode node,
UUID compartment)
Create a snapshot for removing a node
|
default void |
snapshotBeforeRemoveNodes(Collection<JIPipeGraphNode> nodes,
UUID compartment)
Create a snapshot for adding a node
|
default void |
snapshotBeforeRemoveSlot(JIPipeGraphNode node,
JIPipeDataSlotInfo info,
UUID compartment)
Snapshot before adding a slot
|
default boolean |
undo(UUID compartment)
Undo the last undo operation
|
EventBus getEventBus()
void snapshot(String name, String description, UUID compartment, Icon icon)
name
- the name of the snapshotdescription
- the description of the snapshotcompartment
- the compartment. can be null.icon
- an icon. can be null.List<JIPipeHistoryJournalSnapshot> getSnapshots()
default void snapshotBeforeCutNodes(Set<JIPipeGraphNode> nodes, UUID compartment)
nodes
- the nodescompartment
- the compartment. can be null.default void snapshotBeforeCutCompartment(JIPipeProjectCompartment compartment)
compartment
- the compartmentdefault void snapshotBeforeDisconnectAll(JIPipeDataSlot slot, UUID compartment)
slot
- the slotcompartment
- the compartment. can be null.default void snapshotBeforeDisconnect(JIPipeDataSlot source, JIPipeDataSlot target, UUID compartment)
source
- the sourcetarget
- the targetcompartment
- the compartment. can be null.default void snapshotBeforeConnect(JIPipeDataSlot source, JIPipeDataSlot target, UUID compartment)
source
- the sourcetarget
- the targetcompartment
- the compartment. can be null.default void snapshotBeforeAddSlot(JIPipeGraphNode node, JIPipeDataSlotInfo info, UUID compartment)
node
- the nodeinfo
- the slot infocompartment
- the compartment. can be null.default void snapshotBeforeRemoveSlot(JIPipeGraphNode node, JIPipeDataSlotInfo info, UUID compartment)
node
- the nodeinfo
- the slot infocompartment
- the compartment. can be null.default void snapshotBeforeLabelSlot(JIPipeDataSlot slot, UUID compartment)
slot
- the slotcompartment
- the compartment. can be null.default void snapshotBeforeMoveSlot(JIPipeDataSlot slot, UUID compartment)
slot
- the slotcompartment
- the compartment. can be null.default void snapshotBeforeEditSlot(JIPipeDataSlot slot, UUID compartment)
slot
- the slotdefault void snapshotBeforeAddNodes(Collection<JIPipeGraphNode> nodes, UUID compartment)
nodes
- the nodescompartment
- the compartment. can be null.default void snapshotBeforePasteNodes(Collection<JIPipeGraphNode> nodes, UUID compartment)
nodes
- the nodescompartment
- the compartment. can be null.default void snapshotBeforeAddNode(JIPipeGraphNode node, UUID compartment)
node
- the nodecompartment
- the compartment. can be null.default void snapshotBeforeAddCompartment(String compartment)
compartment
- the compartment.default void snapshotBeforeRemoveNodes(Collection<JIPipeGraphNode> nodes, UUID compartment)
nodes
- the nodescompartment
- the compartment. can be null.default void snapshotBeforeMoveNodes(Set<JIPipeGraphNode> nodes, UUID compartment)
nodes
- the nodescompartment
- the compartmentdefault void snapshotBeforeRemoveNode(JIPipeGraphNode node, UUID compartment)
node
- the nodecompartment
- the compartment. can be null.default void snapshotBeforeRemoveCompartment(JIPipeProjectCompartment compartment)
compartment
- the nodedefault boolean redo(UUID compartment)
compartment
- the compartment. can be null.default boolean undo(UUID compartment)
compartment
- the compartment. can be null.boolean goToSnapshot(JIPipeHistoryJournalSnapshot snapshot, UUID compartment)
snapshot
- the snapshotcompartment
- the compartment. can be null.JIPipeHistoryJournalSnapshot getUndoSnapshot()
JIPipeHistoryJournalSnapshot getRedoSnapshot()
JIPipeHistoryJournalSnapshot getCurrentSnapshot()
void clear()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.