Package org.eclipse.mylyn.internal.tasks.core

Examples of org.eclipse.mylyn.internal.tasks.core.ITaskList


    }

    public void run() {
      final IInteractionContext context = (IInteractionContext) contexts.get(task);

      final ITaskList taskList = TasksUiPlugin.getTaskList();
      if (taskList.getTask(task.getRepositoryUrl(), task.getTaskId()) != null) {
        boolean confirmed = MessageDialog.openConfirm(shell, TITLE_DIALOG, "The task '" + task.getSummary() + "' already exists. Do you want to override its context with the source?");
        if (confirmed) {
          Job job = new Job("Import context") {
            protected IStatus run(IProgressMonitor monitor) {
              ((LocalContextStore) ContextCore.getContextStore()).importContext(context);
              scheduleTaskActivationJob();
              return Status.OK_STATUS;
            }
          };
          job.schedule();
        } else {
          return;
        }
      } else {
        Job job = new Job("Import task") {
          protected IStatus run(IProgressMonitor monitor) {
            ((LocalContextStore) ContextCore.getContextStore()).importContext(context);
            taskList.addTask(task);
            scheduleTaskActivationJob();
            return Status.OK_STATUS;
          }
        };
        job.schedule();
View Full Code Here

TOP

Related Classes of org.eclipse.mylyn.internal.tasks.core.ITaskList

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.