Package org.eclipse.mylyn.context.core

Examples of org.eclipse.mylyn.context.core.IInteractionContext


        fos.write(data);
        List tasks = TasksUiPlugin.getTaskListManager().getTaskListWriter().readTasks(file);
        final ITask task = (ITask) tasks.get(0);
        Set repositories = TasksUiPlugin.getTaskListManager().getTaskListWriter().readRepositories(file);
        TasksUiPlugin.getRepositoryManager().insertRepositories(repositories, TasksUiPlugin.getDefault().getRepositoriesFilePath());
        IInteractionContext context = ContextCore.getContextStore().importContext(task.getHandleIdentifier(), file);
        CompoundContextActivationContributionItem.enqueue(task, context);

        IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
        Shell aShell = null;
        for (int i = 0; i < windows.length; i++) {
View Full Code Here


      this.task = task;
      setText(task.getSummary());
    }

    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) {
View Full Code Here

TOP

Related Classes of org.eclipse.mylyn.context.core.IInteractionContext

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.