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

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


    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


    for (IWorkbenchWindow window : windows) {
      IEditorReference[] editorReferences = window.getActivePage().getEditorReferences();
      for (IEditorReference editorReference : editorReferences) {
        try {
          if (editorReference.getEditorInput() instanceof TaskEditorInput) {
            TaskEditorInput input = (TaskEditorInput) editorReference.getEditorInput();
            if (input.getTask()!=null && (input.getTask()==task || input.getTask().getHandleIdentifier().equals(task.getHandleIdentifier()))) {
              return true;
            }
          }
        } catch (PartInitException e) {
          // ignore
View Full Code Here

TOP

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

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.