Package de.sebastianbenz.task

Examples of de.sebastianbenz.task.Tag


  public static Tag from(String name) {
    return create(name, null, 0, 0);
  }

  public static Tag create(String name, String value, int offset, int length) {
    Tag tag = TaskFactory.eINSTANCE.createTag();
    tag.setLength(length);
    tag.setOffset(offset);
    tag.setName(name);
    tag.setValue(value);
    return tag;
  }
View Full Code Here


    assertThat(tagsIn("adfafds @ asdfdsaf @today(1A1) adsf (6)23 23"), is("@today(1A1)"));
  }
 
  @Test
  public void shouldStoreOffsetAndLength() throws Exception {
    Tag firstTag = newTask("01234 @to(1) ").getTags().get(0);
    assertThat(firstTag.getOffset(), is(6));
    assertThat(firstTag.getLength(), is(6));
  }
View Full Code Here

  @Inject
  private BrushRegistry brushRegistry;
 
  protected void proposeTags(EObject model, ContentAssistContext context,
      ICompletionProposalAcceptor acceptor) {
    Tag done = Tags.from("done");
    createProposal(model, context, acceptor, done);
    for (Tag tag : tagProvider.in(model.eResource())) {
      createProposal(model, context, acceptor, tag);
    }
  }
View Full Code Here

TOP

Related Classes of de.sebastianbenz.task.Tag

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.