Package org.emftrace.emffit.ui.commands.ftentries

Examples of org.emftrace.emffit.ui.commands.ftentries.NewFTEntryFactorCommand


    EMFfitCommand command;
   
    switch (newModelElementWizardPage.getSelectionIndex()) {
    case 0: //Factor

      command = new NewFTEntryFactorCommand(entry, newModelElementWizardPage.getName(),"2");
      break;

    case 1: //FactorCategory

      command = new NewFTEntryCategoryCommand(entry, newModelElementWizardPage.getName());
View Full Code Here


  public void testDoRunForFactorCategory() {
    //setup
    FactorCategory fc1st  = (FactorCategory) factorTable.getEntries().get(0);
   
    //run command
    new NewFTEntryFactorCommand(fc1st, "new foo factor", "2").runWithoutUnicaseCommand();
   
    //check 
    assertEquals(5, fc1st.getChildren().size());
    Factor newFactor = (Factor) fc1st.getChildren().get(4);
    assertEquals("new foo factor", newFactor.getName());
View Full Code Here

    //setup
    FactorCategory fc1st  = (FactorCategory) factorTable.getEntries().get(0);
    Factor factor12 = (Factor) fc1st.getChildren().get(1);
   
    //run command
    new NewFTEntryFactorCommand(factor12, "new foo factor", "2").runWithoutUnicaseCommand();
   
    //check
    assertEquals(1, factor12.getChildren().size());
    Factor newFactor = (Factor) factor12.getChildren().get(0);
    assertEquals("new foo factor", newFactor.getName());
View Full Code Here

TOP

Related Classes of org.emftrace.emffit.ui.commands.ftentries.NewFTEntryFactorCommand

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.