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

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


  }
 
  @Override
  protected void linkWordAtModel(Hypertext hypertext2, int offset, int length, String linkText,
          EObject target) {
    new DoHypertextLinkWordCommand(this.hypertext, offset, length, linkText, target).runWithoutUnicaseCommand();
   
  }
View Full Code Here


   * @param target
   *            the target ModelElement
   */
  protected void linkWordAtModel(Hypertext hypertext, int offset, int length,
      String linkText, EObject target) {
    new DoHypertextLinkWordCommand(this.hypertext, offset, length,
        linkText, target).run();

  }
View Full Code Here

    term.setVisibleContent("foo link bar");
    hyperText.getContent().add(term);
    Factor target = EMFfitModelFactory.eINSTANCE.createFactor();
   
   
    new DoHypertextLinkWordCommand(hyperText, 4, 4, "link", target).runWithoutUnicaseCommand();
   
   
    //content must be [Term, Link, Term]
   
    assertEquals(3, hyperText.getContent().size());
View Full Code Here

    term.setVisibleContent("foolinkbar");
    hyperText.getContent().add(term);
    Factor target = EMFfitModelFactory.eINSTANCE.createFactor();
   
   
    new DoHypertextLinkWordCommand(hyperText, 3, 4,"link", target).runWithoutUnicaseCommand();
   
   
    //content must be [Term, Link, Term]
   
    assertEquals(3, hyperText.getContent().size());
View Full Code Here

    hyperText.getContent().add(term3);

   
   
    Factor target3 = EMFfitModelFactory.eINSTANCE.createFactor();
    new DoHypertextLinkWordCommand(hyperText, 16, 7, "newlink",target3).runWithoutUnicaseCommand();
   
   
    //content must be [Term, Link, Term, Link, Term, Link, Term]
   
    System.out.println(hyperText.getContent());
View Full Code Here

    term.setVisibleContent("link foo");
    hyperText.getContent().add(term);
    Factor target = EMFfitModelFactory.eINSTANCE.createFactor();
 

    new DoHypertextLinkWordCommand(hyperText, 0, 4,"link", target).runWithoutUnicaseCommand();

   
    //content must be [Link, Term]
    assertEquals(2, hyperText.getContent().size());
    assertTrue(hyperText.getContent().get(0) instanceof Link);
View Full Code Here

    hyperText.getContent().add(term);
    Factor target = EMFfitModelFactory.eINSTANCE.createFactor();
   
   

    new DoHypertextLinkWordCommand(hyperText, 4, 4, "link",target).runWithoutUnicaseCommand();
   
    //content must be [Term, Link]
    assertEquals(2, hyperText.getContent().size());
    assertTrue(hyperText.getContent().get(0) instanceof Term);
    assertEquals("foo ", ((Term)hyperText.getContent().get(0)).getVisibleContent());
View Full Code Here

    hyperText.getContent().add(term);
    Factor target = EMFfitModelFactory.eINSTANCE.createFactor();
   
   

    new DoHypertextLinkWordCommand(hyperText, 0, 4, "link",target).runWithoutUnicaseCommand();
   
    //content must be [Term, Link]
    assertEquals(1, hyperText.getContent().size());
    assertTrue(hyperText.getContent().get(0) instanceof Link);
    assertEquals("link", ((Link)hyperText.getContent().get(0)).getVisibleContent());
View Full Code Here

TOP

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

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.