diff options
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 |
