01: package org.columba.mail.gui.attachment;
02:
03: import org.columba.api.plugin.IExtensionInterface;
04:
05: /**
06: * Attachment handler is called when opening attachment.
07: * <p>
08: * Extensions should be registered as <code>IExtensionHandlerKeys.ORG_COLUMBA_ATTACHMENT_HANDLER</code>.
09: *
10: * @author frd
11: */
12: public interface IAttachmentHandler extends IExtensionInterface {
13:
14: /**
15: * Method is called when user triggered the "Open Attachment" action. Columba
16: * automatically places the attachment in a temporary file, which is removed
17: * later on automatically.
18: * <p>
19: * @param context attachment context parameters
20: * @throws IllegalArgumentException in case of invalid arguments
21: */
22: public void execute(IAttachmentContext context)
23: throws IllegalArgumentException;
24: }
|