public Action[] getActions() {
if (defaultActions == null) {
ActionThread folderThread = messageInfo.getFolderInfo().getFolderThread();
defaultActions = new Action[] {
new ActionWrapper(new OpenAction(), folderThread),
new ActionWrapper(new OpenDefaultDisplayAction(), folderThread),
new ActionWrapper(new OpenFullDisplayAction(), folderThread),
new ActionWrapper(new OpenRawDisplayAction(), folderThread),
new ActionWrapper(new OpenTextDisplayAction(), folderThread),
new ActionWrapper(new OpenHtmlDisplayAction(), folderThread),
new ActionWrapper(new DefaultOpenAction(), folderThread),
new ActionWrapper(new MoveAction(), folderThread),
new ActionWrapper(new CopyAction(), folderThread),
new ActionWrapper(new ReplyAction(), folderThread),
new ActionWrapper(new ReplyAllAction(), folderThread),
new ActionWrapper(new ReplyWithAttachmentsAction(), folderThread),
new ActionWrapper(new ReplyAllWithAttachmentsAction(), folderThread),
new ActionWrapper(new ForwardAction(), folderThread),
new ActionWrapper(new ForwardWithAttachmentsAction(), folderThread),
new ActionWrapper(new ForwardAsInlineAction(), folderThread),
new ActionWrapper(new ForwardAsAttachmentAction(), folderThread),
new ActionWrapper(new ForwardQuotedAction(), folderThread),
new BounceAction(),
new DeleteAction(),
new ActionWrapper(new PrintAction(), folderThread),
new ActionWrapper(new SaveMessageAction(), folderThread),
new ActionWrapper(new CacheMessageAction(), folderThread),
new ActionWrapper(new SaveAddressAction(), folderThread),
new ActionWrapper(new OpenAsNewAction(), folderThread),
new ActionWrapper(new OpenCopyAction(), folderThread),
new ActionWrapper(new MessageFilterAction(), folderThread),
new ActionWrapper(new SpamAction(), folderThread),
new ActionWrapper(new DecryptAction(), folderThread),
new ActionWrapper(new CheckSignatureAction(), folderThread),
new ActionWrapper(new ImportKeysAction(), folderThread),
new ActionWrapper(new SignatureStatusAction(), folderThread),
new ActionWrapper(new EncryptionStatusAction(), folderThread)
};
commands = new Hashtable();
for (int i = 0; i < defaultActions.length; i++) {