Package org.eclipse.mylyn.tasks.ui.editors

Examples of org.eclipse.mylyn.tasks.ui.editors.RepositoryTaskEditorInput


  }

  @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;
View Full Code Here


  @Override
  public IEditorInput createEditorInput(AbstractTask task) {
    JtracTask repositoryTask = (JtracTask) task;
    TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository(
        JtracRepositoryConnector.REPO_TYPE, repositoryTask.getRepositoryUrl());   
    return new RepositoryTaskEditorInput(repository,
        repositoryTask.getHandleIdentifier(), repositoryTask.getUrl());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.mylyn.tasks.ui.editors.RepositoryTaskEditorInput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.