From 12b26d3285b05ad3d7387280bd7e9ec016f818d8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 13 Jun 2008 22:40:16 +0000 Subject: temp --- sources/events/VSAbstractEvent.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'sources/events/VSAbstractEvent.java') 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.*; @@ -53,6 +54,20 @@ abstract public class VSAbstractEvent extends VSPrefs { /** The event classname. */ 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. * -- cgit v1.2.3