Examples of Hypertext


Examples of org.emftrace.metamodel.EMFfitModel.Hypertext

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

    Hypertext currentDescription = relatedIssue.getDescription();
    if (currentDescription == null) {
      currentDescription = EMFfitModelFactory.eINSTANCE.createHypertext();
      relatedIssue.setDescription(currentDescription);
    }
    new UpdateHypertextContentsCommand(currentDescription, newDescription)
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.Hypertext

  /* (non-Javadoc)
   * @see emffit_commands.EMFfitCommand#doRun()
   */
  @Override
  protected void doRun() {
    Hypertext currentDescription = factor.getDescription();
    if (currentDescription == null){
      currentDescription = EMFfitModelFactory.eINSTANCE.createHypertext();
      factor.setDescription(currentDescription);
    }
    new UpdateHypertextContentsCommand(currentDescription, newDescription).runWithoutUnicaseCommand();
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.Hypertext

  /* (non-Javadoc)
   * @see emffit_commands.EMFfitCommand#doRun()
   */
  @Override
  protected void doRun() {
    Hypertext currentChangeability = factor.getChangeability();
    if (currentChangeability == null){
      currentChangeability = EMFfitModelFactory.eINSTANCE.createHypertext();
      factor.setChangeability(currentChangeability);
    }
    new UpdateHypertextContentsCommand(currentChangeability, newChangeability).runWithoutUnicaseCommand();
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.Hypertext

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

    Hypertext currentInfluence = factor.getInfluence();
    if (currentInfluence== null){
      currentInfluence = EMFfitModelFactory.eINSTANCE.createHypertext();
      factor.setInfluence(currentInfluence);
    }
    new UpdateHypertextContentsCommand(currentInfluence, newInfluence).runWithoutUnicaseCommand();
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.Hypertext

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

    Hypertext currentDescription = strategy.getDescription();
    if (currentDescription == null) {
      currentDescription = EMFfitModelFactory.eINSTANCE.createHypertext();
      strategy.setDescription(currentDescription);
    }
    new UpdateHypertextContentsCommand(currentDescription, newDescription)
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.Hypertext

  /* (non-Javadoc)
   * @see emffit_commands.EMFfitCommand#doRun()
   */
  @Override
  protected void doRun() {
    Hypertext currentFlexibility = factor.getFlexibility();
    if (currentFlexibility == null){
      currentFlexibility = EMFfitModelFactory.eINSTANCE.createHypertext();
      factor.setFlexibility(currentFlexibility);
    }
    new UpdateHypertextContentsCommand(currentFlexibility, newFlexibility).runWithoutUnicaseCommand();
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.Hypertext


public class SetHypertextLinkTargetCommandTest extends EMFfitTestCase {
 
  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);
    hypertext.getContent().add(term2);
   
    new SetHypertextLinkTargetCommand(hypertext, 4, issueCard).runWithoutUnicaseCommand();
   
    assertEquals(3, hypertext.getContent().size());
    assertEquals("foo ", hypertext.getContent().get(0).getVisibleContent());
    assertEquals("link", hypertext.getContent().get(1).getVisibleContent());
    assertEquals(" bar", hypertext.getContent().get(2).getVisibleContent());
   
    assertEquals(issueCard, ((Link) hypertext.getContent().get(1)).getTarget());
   

  }
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.Hypertext

   
    //setup
    RelatedIssue relatedIssue = issueCard.getRelatedIssues().get(0);

   
    Hypertext newDescription = EMFfitModelFactory.eINSTANCE.createHypertext();

   
    String newDescriptionContent = "new foo";
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(newDescriptionContent);
    newDescription.getContent().add(term);
   
    //run command
    new UpdateRelatedIssueDescriptionCommand(relatedIssue, newDescription).runWithoutUnicaseCommand();
   
    //check
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.Hypertext

  @Test
  public void testDoRun() {
    //setup
    Strategy strategy = issueCard.getStrategies().get(0);
    Hypertext newDescription = EMFfitModelFactory.eINSTANCE.createHypertext();
   
    String newDescriptionContent = "new foo";
    Term term = EMFfitModelFactory.eINSTANCE.createTerm();
    term.setVisibleContent(newDescriptionContent);
    newDescription.getContent().add(term);
   
    //run command
    new UpdateStrategyDescriptionCommand(strategy, newDescription).runWithoutUnicaseCommand();
   
    //check
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.Hypertext

  public void testDoRunForNullDescription() {
    //setup
    RelatedIssue relatedIssue = issueCard.getRelatedIssues().get(0);
    relatedIssue.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 UpdateRelatedIssueDescriptionCommand(relatedIssue, newDescription).runWithoutUnicaseCommand();
   
    //check
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.