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

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


    hypertext.getContent().add(term3);
   
    project.addModelElement(hypertext);
   
   
    new DeleteHypertextEmptyTermsCommand(hypertext).runWithoutUnicaseCommand();
    assertEquals(4, hypertext.getContent().size());
    assertEquals("foo ", hypertext.getContent().get(0).getVisibleContent());
    assertEquals("link1", hypertext.getContent().get(1).getVisibleContent());
    assertEquals("link2", hypertext.getContent().get(2).getVisibleContent());
    assertEquals(" bar", hypertext.getContent().get(3).getVisibleContent());
View Full Code Here


    Hypertext hypertext = EMFfitModelFactory.eINSTANCE.createHypertext();
    Link link1 = EMFfitModelFactory.eINSTANCE.createLink();
    hypertext.getContent().add(link1);
    project.addModelElement(hypertext);
   
    new DeleteHypertextEmptyTermsCommand(hypertext).runWithoutUnicaseCommand();
    assertEquals(1, hypertext.getContent().size()); //don't delete link
  }
View Full Code Here

TOP

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

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.