Examples of NewIssueCardInfluencingFactorCommand


Examples of org.emftrace.emffit.ui.commands.issuecards.NewIssueCardInfluencingFactorCommand

  /* (non-Javadoc)
   * @see org.eclipse.jface.wizard.Wizard#performFinish()
   */
  @Override
    public boolean performFinish() {
      new NewIssueCardInfluencingFactorCommand(issueCard, (Factor) selectModelElementsWizardPage.getSelectedModelElement()).runThreaded();
             return true;
    }
View Full Code Here

Examples of org.emftrace.emffit.ui.commands.issuecards.NewIssueCardInfluencingFactorCommand

    //new element will be added to project by command
    Factor newFactor = EMFfitModelFactory.eINSTANCE.createFactor();
    newFactor.setName(newModelElementWizardPage.getName())
    newFactor.setPriority("2")

    new NewIssueCardInfluencingFactorCommand(issueCard,
        newFactor).runAsJob();
    return true;

  }
View Full Code Here

Examples of org.emftrace.emffit.ui.commands.issuecards.NewIssueCardInfluencingFactorCommand

public class NewIssueCardInfluencingFactorCommandTest extends EMFfitTestCase {

  @Test
  public void testDoRunForNullItem() {
    new NewIssueCardInfluencingFactorCommand(issueCard,null).runWithoutUnicaseCommand();
    assertEquals(4, issueCard.getInfluencingFactors().size());
    assertEquals(null, issueCard.getInfluencingFactors().get(3).getFactor());
    assertNotNull(issueCard.getInfluencingFactors().get(3).getDescription());
  }
View Full Code Here

Examples of org.emftrace.emffit.ui.commands.issuecards.NewIssueCardInfluencingFactorCommand

  }
 
  @Test
  public void testDoRunForNonNullItem() {
    Factor factor = EMFfitModelFactory.eINSTANCE.createFactor();
    new NewIssueCardInfluencingFactorCommand(issueCard, factor).runWithoutUnicaseCommand();
    assertEquals(4, issueCard.getInfluencingFactors().size());
    assertEquals(factor, issueCard.getInfluencingFactors().get(3).getFactor());
    assertNotNull(issueCard.getInfluencingFactors().get(3).getDescription());
    assertEquals(project, ModelUtil.getProject(issueCard.getInfluencingFactors().get(3).getFactor()));
   
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.