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

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


      MessageBox messageBox = new MessageBox(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), SWT.ICON_ERROR);
      String message = "Table Type must be \"Product\"!";
      messageBox.setMessage(message);
      messageBox.open();
    }else{
      new SetFactorTableProductFactorsFromURNCommand(factorTable).runAsJob();
    }
    return null;
  }
View Full Code Here


    pFactorTable.setType(CategoryType.PRODUCT);
    project.addModelElement(pFactorTable);


     // run command for product table
    new SetFactorTableProductFactorsFromURNCommand(pFactorTable)
        .runWithoutUnicaseCommand();

    //check results
    assertEquals(1, pFactorTable.getEntries().size());
    assertEquals("foo goal", pFactorTable.getEntries().get(0).getName());
View Full Code Here

    pFactorTable.setType(CategoryType.PRODUCT);
    project.addModelElement(pFactorTable);
   

     // run command for product table
    new SetFactorTableProductFactorsFromURNCommand(pFactorTable)
        .runWithoutUnicaseCommand();

    //check results
    assertEquals(1, pFactorTable.getEntries().size());
    assertEquals("foo softgoal", pFactorTable.getEntries().get(0).getName());
View Full Code Here

    FactorTable pFactorTable = EMFfitModelFactory.eINSTANCE.createFactorTable();
    pFactorTable.setType(CategoryType.PRODUCT);
    project.addModelElement(pFactorTable);

     // run command for product table
    new SetFactorTableProductFactorsFromURNCommand(pFactorTable)
        .runWithoutUnicaseCommand();

    //check results
    assertEquals(3, pFactorTable.getEntries().size());
    assertEquals("P1", pFactorTable.getEntries().get(0).getNumbering());
View Full Code Here

    FactorTable pFactorTable = EMFfitModelFactory.eINSTANCE.createFactorTable();
    pFactorTable.setType(CategoryType.PRODUCT);
    project.addModelElement(pFactorTable);

     // run command for product table
    new SetFactorTableProductFactorsFromURNCommand(pFactorTable)
        .runWithoutUnicaseCommand();

    //check results
    assertEquals(1, pFactorTable.getEntries().size());
    assertNotNull(((Factor)pFactorTable.getEntries().get(0)).getDescription());
View Full Code Here

        .runWithoutUnicaseCommand();
      }
    }

    if (addGoalsFromURN) {
      new SetFactorTableProductFactorsFromURNCommand(prodFactorTable)
          .runWithoutUnicaseCommand();
    }

  }
View Full Code Here

TOP

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

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.