diff options
| author | Paul Buetow <paul@buetow.org> | 2008-06-13 19:19:12 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-06-13 19:19:12 +0000 |
| commit | 86d37c2c10b9a0abbf1f4256333f13914c3c740b (patch) | |
| tree | 7049ef48ab696eedd306ca3321cc346f67dbfc35 /sources/core/VSTask.java | |
| parent | a9141ec1869f57d918473213628775c0f87d84fe (diff) | |
copy events works
Diffstat (limited to 'sources/core/VSTask.java')
| -rw-r--r-- | sources/core/VSTask.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java index 1a5718c..daa85eb 100644 --- a/sources/core/VSTask.java +++ b/sources/core/VSTask.java @@ -96,6 +96,18 @@ public class VSTask implements Comparable, VSSerializable { } /** + * Instantiates a new task, it's a copy constructor. + * + * @param task the task to copy + */ + public VSTask(VSTask task) { + init(task.getTaskTime(), + task.getProcess(), + task.getEvent(), + !task.isGlobalTimed()); + } + + /** * Instantiates a new task during a deserialization. * * @param serialize the serialize object |
