Package org.emftrace.metamodel.EMFfitModel

Examples of org.emftrace.metamodel.EMFfitModel.Term


     //setup
    String newTermContent = "foo";

    Hypertext oldHypertext = EMFfitModelFactory.eINSTANCE.createHypertext();
    String oldHypertextIdentifier = oldHypertext.getIdentifier();
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(newTermContent);
    oldHypertext.getContent().add(term);
   
    Hypertext newNullHypertext = null;

        //run command
View Full Code Here


   * note: builds only a Term!<br>
   * @param str the String
   * @return the Hypertext
   */
  public static Hypertext strToHypertext(String str){
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(str);
    Hypertext hypertext = EMFfitModelFactory.eINSTANCE.createHypertext();
    hypertext.getContent().add(term);
    return hypertext;
 
View Full Code Here

    influencingFactor.setDescription(null);
   
    Hypertext newDescription = EMFfitModelFactory.eINSTANCE.createHypertext();
   
    String newDescriptionContent = "new foo";
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(newDescriptionContent);
    newDescription.getContent().add(term);
   
    //run command
    new UpdateInfluencingFactorDescriptionCommand(influencingFactor, newDescription).runWithoutUnicaseCommand();
   
View Full Code Here

  }
 
  @Test
  public void testDoRunForTerm(){

    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent("link");
    hyperText.getContent().add(term);
    Factor target = EMFfitModelFactory.eINSTANCE.createFactor();
   
   
View Full Code Here

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

TOP

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

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.