|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scuflui.shared.WorkflowChanges
public class WorkflowChanges
Detect changes to open workflows since last save to disk.
Use hasChanged() to check if the workflow has been changed since the last save. Use syncedWithFile() to notify that the workflow has been saved.
| Method Summary | |
|---|---|
void |
destroy()
Unregister as listener with ScuflModelSet and known ScuflModels |
static WorkflowChanges |
getInstance()
Get the singleton WorkflowChanges instance. |
boolean |
hasChanged(ScuflModel workflow)
Return true if workflow has been changed since creation or last save, otherwise false. |
java.io.File |
lastFilename(ScuflModel workflow)
Find the latest filename to which the workflow was saved, as notified with syncedWithFile(). |
void |
synced(ScuflModel workflow)
Mark the workflow as synchronized with source. |
void |
syncedWithFile(ScuflModel workflow,
java.io.File file)
Mark the workflow as synchronized by saving to given file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WorkflowChanges getInstance()
public void destroy()
public boolean hasChanged(ScuflModel workflow)
workflow - that
public void synced(ScuflModel workflow)
workflow - ScuflModel that has been synchronized
public void syncedWithFile(ScuflModel workflow,
java.io.File file)
workflow - ScuflModel that has been synchronizedfile - File where the workflow has been storedpublic java.io.File lastFilename(ScuflModel workflow)
Note: This method does not guarantee that the actual file has not been overwritten by some other process or workflow save since the last save.
workflow - ScuflModel that has been previously saved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||