JtracRepositoryConnector connector = JtracPlugin.getDefault().getConnector();
JtracTaskDataHandler taskDataHandler = (JtracTaskDataHandler) connector.getTaskDataHandler();
RepositoryTaskData repositoryTaskData = new RepositoryTaskData(taskDataHandler.getAttributeFactory(),
JtracRepositoryConnector.REPO_TYPE, taskRepository.getUrl(),
TasksUiPlugin.getDefault().getNextNewRepositoryTaskId());
NewTaskEditorInput editorInput = new NewTaskEditorInput(taskRepository, repositoryTaskData);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
TasksUiUtil.openEditor(editorInput, TaskEditor.ID_EDITOR, page);
return true;
}