Package org.emftrace.emffit.ui.commands.hypertexts

Examples of org.emftrace.emffit.ui.commands.hypertexts.AddHypertextTermCommand


        new DoHypertextUnlinkWordCommand(this.hypertext,offset, text).runWithoutUnicaseCommand();
  }
  @Override
  protected void addHypertextTermInModel(Hypertext hypertext, int offset,
      String text) {
    new AddHypertextTermCommand(hypertext, offset, text).runWithoutUnicaseCommand();
  }
View Full Code Here


   * @param text
   *            a text for the new Term
   */
  protected void addHypertextTermInModel(Hypertext hypertext, int offset,
      String text) {
    new AddHypertextTermCommand(hypertext, offset, text).run();
  }
View Full Code Here

    hypertext.getContent().add(term1);
    hypertext.getContent().add(link1);
    hypertext.getContent().add(link2);
    hypertext.getContent().add(term2);
   
    new AddHypertextTermCommand(hypertext, 5, " thing ").runWithoutUnicaseCommand();
   
    assertEquals(5, hypertext.getContent().size());
   
    assertEquals(term1, hypertext.getContent().get(0));
    assertEquals(link1, hypertext.getContent().get(1));
View Full Code Here

    link1.setVisibleContent("link");
   
    hypertext.getContent().add(term1);
    hypertext.getContent().add(link1);
   
    new AddHypertextTermCommand(hypertext, 6, "").runWithoutUnicaseCommand();
   
    assertEquals(3, hypertext.getContent().size());
   
    assertEquals(term1, hypertext.getContent().get(0));
    assertEquals(link1, hypertext.getContent().get(1));
View Full Code Here

    term1.setVisibleContent(" foo");

    hypertext.getContent().add(link1);
    hypertext.getContent().add(term1);
   
    new AddHypertextTermCommand(hypertext, 0, "").runWithoutUnicaseCommand();
   
    assertEquals(3, hypertext.getContent().size());
   
    assertTrue(hypertext.getContent().get(0) instanceof Term);
    assertEquals(link1, hypertext.getContent().get(1));
View Full Code Here

TOP

Related Classes of org.emftrace.emffit.ui.commands.hypertexts.AddHypertextTermCommand

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.