Examples of DoHypertextUnlinkWordCommand


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

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

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

   * @param offset
   *            the offset of the link
   */
  protected void unlinkWordAtModel(Hypertext hypertext, int offset,
      String text) {
    new DoHypertextUnlinkWordCommand(this.hypertext, offset, text).run();
  }
View Full Code Here

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

   
    Term term2 = EMFfitModelFactory.eINSTANCE.createTerm();
    term2.setVisibleContent(" bar");
    hyperText.getContent().add(term2);
   
    new DoHypertextUnlinkWordCommand(hyperText, link).runWithoutUnicaseCommand();
   
    assertEquals(1, hyperText.getContent().size());
    assertTrue(hyperText.getContent().get(0) instanceof Term);
    assertEquals("foo link bar", ((Term) hyperText.getContent().get(0)).getVisibleContent());
  }
View Full Code Here

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

   
    Term term2 = EMFfitModelFactory.eINSTANCE.createTerm();
    term2.setVisibleContent(" bar");
    hyperText.getContent().add(term2);
   
    new DoHypertextUnlinkWordCommand(hyperText, link1).runWithoutUnicaseCommand();
   
    assertEquals(3, hyperText.getContent().size());
    assertTrue(hyperText.getContent().get(0) instanceof Term);
    assertEquals("foo link1", ((Term) hyperText.getContent().get(0)).getVisibleContent());
    assertEquals("link2", ((Link) hyperText.getContent().get(1)).getVisibleContent());
View Full Code Here

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

   
    Term term2 = EMFfitModelFactory.eINSTANCE.createTerm();
    term2.setVisibleContent(" bar");
    hyperText.getContent().add(term2);
   
    new DoHypertextUnlinkWordCommand(hyperText, link2).runWithoutUnicaseCommand();
   
    assertEquals(3, hyperText.getContent().size());
    assertTrue(hyperText.getContent().get(0) instanceof Term);
    assertEquals("foo ", ((Term) hyperText.getContent().get(0)).getVisibleContent());
    assertEquals("link1", ((Link) hyperText.getContent().get(1)).getVisibleContent());
View Full Code Here

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

   
    Term term2 = EMFfitModelFactory.eINSTANCE.createTerm();
    term2.setVisibleContent(" bar");
    hyperText.getContent().add(term2);
   
    new DoHypertextUnlinkWordCommand(hyperText, link2).runWithoutUnicaseCommand();
   
    assertEquals(5, hyperText.getContent().size());
    assertTrue(hyperText.getContent().get(0) instanceof Term);
    assertEquals("foo ", ((Term) hyperText.getContent().get(0)).getVisibleContent());
    assertEquals("link1", ((Link) hyperText.getContent().get(1)).getVisibleContent());
View Full Code Here

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

   
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(" foo");
    hyperText.getContent().add(term);
   
    new DoHypertextUnlinkWordCommand(hyperText, link).runWithoutUnicaseCommand();
   
    assertEquals(1, hyperText.getContent().size());
    assertTrue(hyperText.getContent().get(0) instanceof Term);
    assertEquals("link foo", ((Term) hyperText.getContent().get(0)).getVisibleContent());
  }
View Full Code Here

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

    Link link = EMFfitModelFactory.eINSTANCE.createLink();
    link.setVisibleContent("link");
    link.setTarget(target);
    hyperText.getContent().add(link);

    new DoHypertextUnlinkWordCommand(hyperText, link).runWithoutUnicaseCommand();
   
    assertEquals(1, hyperText.getContent().size());
    assertTrue(hyperText.getContent().get(0) instanceof Term);
    assertEquals("foo link", ((Term) hyperText.getContent().get(0)).getVisibleContent());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.