Invoke.invokeApplication( Invoke.APP_TYPE_MEMOPAD, args );
}
private void invokeMessages( final Object arg ) throws Exception {
MessageArguments args = null;
if( arg instanceof MessageArgumentsObject ) {
final MessageArgumentsObject m = (MessageArgumentsObject) arg;
final Message msg = m.getMessage();
if( msg != null ) {
args = new MessageArguments( msg );
} else {
final int view = m.getView();
String viewArg = null;
switch( view ) {
case MessageArgumentsConstructor.VIEW_NEW:
viewArg = MessageArguments.ARG_NEW;
break;
case MessageArgumentsConstructor.VIEW_DEFAULT:
viewArg = MessageArguments.ARG_DEFAULT;
break;
case MessageArgumentsConstructor.VIEW_SAVED:
viewArg = MessageArguments.ARG_SAVED;
break;
case MessageArgumentsConstructor.VIEW_SEARCH:
viewArg = MESSAGEARGUMENTS_ARG_SEARCH;
break;
default:
viewArg = CalendarArguments.ARG_NEW;
break;
}
args = new MessageArguments( viewArg );
}
} else {
args = new MessageArguments();
}
Invoke.invokeApplication( Invoke.APP_TYPE_MESSAGES, args );
}