Package org.emftrace.emffit.ui.commands.factortables

Examples of org.emftrace.emffit.ui.commands.factortables.NewFactorTableFactorCommand


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

      command = new NewFactorTableFactorCommand(factorTable, newModelElementWizardPage.getName(),"2");
      break;

    case 1: //FactorCategory

      command = new NewFactorTableCategoryCommand(factorTable, newModelElementWizardPage.getName());
View Full Code Here


public class NewFactorTableFactorCommandTest extends EMFfitTestCase{

  @Test
  public void testDoRun() {   
    new NewFactorTableFactorCommand(factorTable, "new foo factor", "2").runWithoutUnicaseCommand();
    assertEquals(3, factorTable.getEntries().size());
    Factor newFactor = (Factor) factorTable.getEntries().get(2);
    assertEquals("new foo factor", newFactor.getName());
    assertEquals("O3", newFactor.getNumbering());
    assertEquals("2", newFactor.getPriority());
View Full Code Here

TOP

Related Classes of org.emftrace.emffit.ui.commands.factortables.NewFactorTableFactorCommand

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.