Package org.emftrace.metamodel.EMFfitModel

Examples of org.emftrace.metamodel.EMFfitModel.Factor


    Hypertext newInfluence = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(content);
    newInfluence.getContent().add(term);

    Factor factor = (Factor) ((FactorCategory) factorTable.getEntries()
        .get(1)).getChildren().get(0);
    factor.setInfluence(null);

    // run command
    new UpdateFactorInfluenceCommand(factor, newInfluence)
        .runWithoutUnicaseCommand();

    // check results
    assertEquals(1, factor.getInfluence().getContent().size());
    assertEquals(content,
        ((Term) factor.getInfluence().getContent().get(0))
            .getVisibleContent());
  }
View Full Code Here


    Hypertext newDescription = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(content);
    newDescription.getContent().add(term);
   
    Factor factor = (Factor)((FactorCategory)factorTable.getEntries().get(1)).getChildren().get(0);
   
    //run command
    new UpdateFactorDescriptionCommand(factor,newDescription ).runWithoutUnicaseCommand();
   
    //check results
    assertEquals(1, factor.getDescription().getContent().size());
    assertEquals(content, ((Term)factor.getDescription().getContent().get(0)).getVisibleContent());
  }
View Full Code Here

    Hypertext newDescription = EMFfitModelFactory.eINSTANCE.createHypertext();
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(content);
    newDescription.getContent().add(term);
   
    Factor factor = (Factor)((FactorCategory)factorTable.getEntries().get(1)).getChildren().get(0);
    factor.setDescription(null);
   
    //run command
    new UpdateFactorDescriptionCommand(factor,newDescription ).runWithoutUnicaseCommand();
   
    //check results
    assertEquals(1, factor.getDescription().getContent().size());
    assertEquals(content, ((Term)factor.getDescription().getContent().get(0)).getVisibleContent());
  }
View Full Code Here

  public void testDoRunForTermLinkTerm() {
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    term1.setVisibleContent("foo ");
    hyperText.getContent().add(term1);
   
    Factor target = EMFfitModelFactory.eINSTANCE.createFactor();
    Link link = EMFfitModelFactory.eINSTANCE.createLink();
    link.setVisibleContent("link");
    link.setTarget(target);
    hyperText.getContent().add(link);
   
View Full Code Here

  public void testDoRunForTermLinkLinkTerm1() {
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    term1.setVisibleContent("foo ");
    hyperText.getContent().add(term1);
   
    Factor target1 = EMFfitModelFactory.eINSTANCE.createFactor();
    Link link1 = EMFfitModelFactory.eINSTANCE.createLink();
    link1.setVisibleContent("link1");
    link1.setTarget(target1);
    hyperText.getContent().add(link1);
   
    Factor target2 = EMFfitModelFactory.eINSTANCE.createFactor();
    Link link2 = EMFfitModelFactory.eINSTANCE.createLink();
    link2.setVisibleContent("link2");
    link2.setTarget(target2);
    hyperText.getContent().add(link2);
   
View Full Code Here

  public void testDoRunForTermLinkLinkTerm2() {
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    term1.setVisibleContent("foo ");
    hyperText.getContent().add(term1);
   
    Factor target1 = EMFfitModelFactory.eINSTANCE.createFactor();
    Link link1 = EMFfitModelFactory.eINSTANCE.createLink();
    link1.setVisibleContent("link1");
    link1.setTarget(target1);
    hyperText.getContent().add(link1);
   
    Factor target2 = EMFfitModelFactory.eINSTANCE.createFactor();
    Link link2 = EMFfitModelFactory.eINSTANCE.createLink();
    link2.setVisibleContent("link2");
    link2.setTarget(target2);
    hyperText.getContent().add(link2);
   
View Full Code Here

  public void testDoRunForTermLinkLinkLinkTerm() {
    Term term1 = EMFfitModelFactory.eINSTANCE.createTerm();
    term1.setVisibleContent("foo ");
    hyperText.getContent().add(term1);
   
    Factor target1 = EMFfitModelFactory.eINSTANCE.createFactor();
    Link link1 = EMFfitModelFactory.eINSTANCE.createLink();
    link1.setVisibleContent("link1");
    link1.setTarget(target1);
    hyperText.getContent().add(link1);
   
    Factor target2 = EMFfitModelFactory.eINSTANCE.createFactor();
    Link link2 = EMFfitModelFactory.eINSTANCE.createLink();
    link2.setVisibleContent("link2");
    link2.setTarget(target2);
    hyperText.getContent().add(link2);
   
    Factor target3 = EMFfitModelFactory.eINSTANCE.createFactor();
    Link link3 = EMFfitModelFactory.eINSTANCE.createLink();
    link3.setVisibleContent("link3");
    link3.setTarget(target3);
    hyperText.getContent().add(link3);
   
View Full Code Here

    assertEquals(" bar", ((Term) hyperText.getContent().get(4)).getVisibleContent());
  }
 
  @Test
  public void testDoRunForLinkTerm() {
    Factor target = EMFfitModelFactory.eINSTANCE.createFactor();
    Link link = EMFfitModelFactory.eINSTANCE.createLink();
    link.setVisibleContent("link");
    link.setTarget(target);
    hyperText.getContent().add(link);
   
View Full Code Here

  public void testDoRunForTermLink() {
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent("foo ");
    hyperText.getContent().add(term);
   
    Factor target = EMFfitModelFactory.eINSTANCE.createFactor();
    Link link = EMFfitModelFactory.eINSTANCE.createLink();
    link.setVisibleContent("link");
    link.setTarget(target);
    hyperText.getContent().add(link);
View Full Code Here

  public void testDoRunForOneTerm(){

    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent("foo link bar");
    hyperText.getContent().add(term);
    Factor target = EMFfitModelFactory.eINSTANCE.createFactor();
   
   
    new DoHypertextLinkWordCommand(hyperText, 4, 4, "link", target).runWithoutUnicaseCommand();
   
   
View Full Code Here

TOP

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

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.