Package org.emftrace.metamodel.EMFfitModel

Examples of org.emftrace.metamodel.EMFfitModel.Link


  @Test
  public void testOffsetUpdate11() {
    System.out.println("testOffsetUpdate11");
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    term1.setVisibleContent("foo ");
    Link link1 = EMFfitModelFactory.eINSTANCE.createLink();
    link1.setVisibleContent("link");
    Link link2 = EMFfitModelFactory.eINSTANCE.createLink();
    link2.setVisibleContent("link");
    Link link3 = EMFfitModelFactory.eINSTANCE.createLink();
    link3.setVisibleContent("link");
    Term term3 = EMFfitModelFactory.eINSTANCE.createTerm();
    term3.setVisibleContent(" bar");

    testHypertext.getContent().add(term1);
    testHypertext.getContent().add(link1);
View Full Code Here


  public void testOffsetUpdate12() {
    System.out.println("testOffsetUpdate12");

    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    term1.setVisibleContent("foo ");
    Link link1 = EMFfitModelFactory.eINSTANCE.createLink();
    link1.setVisibleContent("link1");
    Link link2 = EMFfitModelFactory.eINSTANCE.createLink();
    link2.setVisibleContent("link2");
    Link link3 = EMFfitModelFactory.eINSTANCE.createLink();
    link3.setVisibleContent("link3");
    Term term3 = EMFfitModelFactory.eINSTANCE.createTerm();
    term3.setVisibleContent(" bar");

    testHypertext.getContent().add(term1);
    testHypertext.getContent().add(link1);
View Full Code Here

  @Test
  public void testOffsetUpdate14() {
    System.out.println("testOffsetUpdate14");
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    term1.setVisibleContent("foo ");
    Link link1 = EMFfitModelFactory.eINSTANCE.createLink();
    link1.setVisibleContent("link");
    Link link2 = EMFfitModelFactory.eINSTANCE.createLink();
    link2.setVisibleContent("link");
    Term term3 = EMFfitModelFactory.eINSTANCE.createTerm();
    term3.setVisibleContent(" bar");

    testHypertext.getContent().add(term1);
    testHypertext.getContent().add(link1);
View Full Code Here

   
    System.out.println("testOffsetUpdate15");

    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    term1.setVisibleContent("foo ");
    Link link1 = EMFfitModelFactory.eINSTANCE.createLink();
    link1.setVisibleContent("link");
    Link link2 = EMFfitModelFactory.eINSTANCE.createLink();
    link2.setVisibleContent("link");
    Term term3 = EMFfitModelFactory.eINSTANCE.createTerm();
    term3.setVisibleContent(" bar");

    testHypertext.getContent().add(term1);
    testHypertext.getContent().add(link1);
View Full Code Here

   */
  @Test
  public void testOffsetUpdate19() {
    System.out.println("testOffsetUpdate19");
   
    Link link = EMFfitModelFactory.eINSTANCE.createLink();
    link.setVisibleContent("x");
    testHypertext.getContent().add(link);


    linkedText.setHypertext(testHypertext);
    linkedText.callOffsetUpdate(0, 1, 0);
View Full Code Here

   * @see emffit_commands.EMFfitCommand#doRun()
   */
  @Override
  protected void doRun() {

    Link link = (Link) HypertextHelpers.findTextElementAtOffset(hypertext, offset);

    link.setTarget(newTarget);

  }
View Full Code Here

 
  public void testDoRun() {
    Hypertext hypertext = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    term1.setVisibleContent("foo ");
    Link link = EMFfitModelFactory.eINSTANCE.createLink();
    link.setVisibleContent("link");
    Term term2 = EMFfitModelFactory.eINSTANCE.createTerm();
    term2.setVisibleContent(" bar");
   
    hypertext.getContent().add(term1);
    hypertext.getContent().add(link);
View Full Code Here

 
  public void testDoRun() {
    Hypertext hypertext = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    term1.setVisibleContent("foo ");
    Link link = EMFfitModelFactory.eINSTANCE.createLink();
    link.setVisibleContent("link");
    Term term2 = EMFfitModelFactory.eINSTANCE.createTerm();
    term2.setVisibleContent(" bar");
   
    hypertext.getContent().add(term1);
    hypertext.getContent().add(link);
View Full Code Here

  @Test
  public void testDoRun() {
    Hypertext hypertext = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    Link link1 = EMFfitModelFactory.eINSTANCE.createLink();
    Link link2 = EMFfitModelFactory.eINSTANCE.createLink();
    Term term2 = EMFfitModelFactory.eINSTANCE.createTerm();
   
    term1.setVisibleContent("foo ");
    link1.setVisibleContent("link1");
    link2.setVisibleContent("link2");
    term2.setVisibleContent(" bar");
   
    hypertext.getContent().add(term1);
    hypertext.getContent().add(link1);
    hypertext.getContent().add(link2);
View Full Code Here

  // tests add a term behind a link at text end
  @Test
  public void testDoRunForAppend() {
    Hypertext hypertext = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    Link link1 = EMFfitModelFactory.eINSTANCE.createLink();
   
    term1.setVisibleContent("foo ");
    link1.setVisibleContent("link");
   
    hypertext.getContent().add(term1);
    hypertext.getContent().add(link1);
   
    new AddHypertextTermCommand(hypertext, 6, "").runWithoutUnicaseCommand();
View Full Code Here

TOP

Related Classes of org.emftrace.metamodel.EMFfitModel.Link

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.