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

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


                                   DataStore.TASK_STORE);
  }

  @Override
  protected TaskFileEvent createEventDiff(DateTime dateTime) {
    LocalTask task = new LocalTask("taskId", "what?");
    task.setCreationDate(dateTime.toDate());
    return new TaskFileEvent(new Interval(dateTime, dateTime.plus(1)),
        new Path("/p/f/a"), task);
  }
View Full Code Here


        new Path("/p/f/a"), task);
  }

  @Override
  protected TaskFileEvent createEvent(DateTime dateTime) {
    LocalTask task = new LocalTask("tas1kId", "what?1");
    task.setCreationDate(dateTime.toDate());
    return new TaskFileEvent(new Interval(dateTime, dateTime.plus(2)),
        new Path("/a/b/c"), task);
  }
View Full Code Here

        null);
  }

  @Test
  public void testGetTask() {
    ITask task = new LocalTask("abc", "def");
    assertEquals(
        task,
        new TaskFileEvent(new Interval(0, 1), Path
            .fromPortableString("/p/a.txt"), task).getTask());
  }
View Full Code Here

            .fromPortableString("/p/a.txt"), task).getTask());
  }

  @Override
  protected final FileEvent createEvent(Interval interval, IPath filePath) {
    return createEvent(interval, filePath, new LocalTask("a", "1"));
  }
View Full Code Here

  private ITask task;

  @Before
  public void setUpActiveTask() {
    task = new LocalTask(System.currentTimeMillis() + "", "what?");
    task.setCreationDate(new Date());
    TasksUi.getTaskActivityManager().activateTask(task);
  }
View Full Code Here

TOP

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

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.