diff options
| author | Paul Buetow <paul@buetow.org> | 2008-06-13 22:40:16 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-06-13 22:40:16 +0000 |
| commit | 12b26d3285b05ad3d7387280bd7e9ec016f818d8 (patch) | |
| tree | c07310163af1ae9ae10fa74146ed502561393560 /sources/events/VSAbstractEvent.java | |
| parent | 11dd825fa0e95f5312e77571fb2eadea8a797670 (diff) | |
temp
Diffstat (limited to 'sources/events/VSAbstractEvent.java')
| -rw-r--r-- | sources/events/VSAbstractEvent.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sources/events/VSAbstractEvent.java b/sources/events/VSAbstractEvent.java index 0bc5ec8..834b691 100644 --- a/sources/events/VSAbstractEvent.java +++ b/sources/events/VSAbstractEvent.java @@ -26,6 +26,7 @@ package events; import java.io.*; import core.VSProcess; +import exceptions.*; import prefs.VSPrefs; import serialize.*; import utils.*; @@ -54,6 +55,20 @@ abstract public class VSAbstractEvent extends VSPrefs { private String eventClassname; /** + * Creates a copy of the event. + * + * @return The copy + */ + final public VSAbstractEvent getCopy() throws VSEventNotCopyableException { + VSAbstractEvent copy = null + + if (this instanceof VSCopyableEvent) + throw new VSEventNotCopyableException(eventShortname); + + return copy; + } + + /** * Inits the event. * * @param process the process |
