}
@Override
public boolean canCreateEditorFor(IEditorInput input) {
if (input instanceof RepositoryTaskEditorInput) {
RepositoryTaskEditorInput existingInput = (RepositoryTaskEditorInput) input;
return existingInput.getTaskData() != null
&& JtracRepositoryConnector.REPO_TYPE.equals(existingInput.getRepository().getConnectorKind());
} else if (input instanceof TaskEditorInput) {
TaskEditorInput taskInput = (TaskEditorInput) input;
return taskInput.getTask() instanceof JtracTask;
}
return false;