Invoke.invokeApplication( Invoke.APP_TYPE_SEARCH, args );
}
private void invokeTasks( final Object arg ) throws Exception {
TaskArguments args = null;
if( arg instanceof TaskArgumentsObject ) {
final TaskArgumentsObject t = (TaskArgumentsObject) arg;
final TaskObject to = t.getTaskObject();
if( to != null ) {
to.update();
}
final ToDo todo = t.getTodo();
final int view = t.getView();
if( todo == null ) {
args = new TaskArguments( TaskArguments.ARG_NEW );
} else {
args = new TaskArguments( view == TaskArgumentsConstructor.VIEW_EDIT ? TaskArguments.ARG_VIEW
: TaskArguments.ARG_NEW, todo );
}
} else {
args = new TaskArguments();
}
Invoke.invokeApplication( Invoke.APP_TYPE_TASKS, args );
}