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

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


   */
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
   
    final FactorTable factorTable = (FactorTable) UiUtil.getSelectedEObject();
    new SetFactorTableDefaultEntriesCommand(factorTable).runAsJob();
    return null;
  }
View Full Code Here


  public void testDoRunForOrgFT() {
    //setup
    FactorTable ft = EMFfitModelFactory.eINSTANCE.createFactorTable();
    ft.setType(CategoryType.ORGANIZATIONAL);
    //run command
    new SetFactorTableDefaultEntriesCommand(ft, configFilePath).runWithoutUnicaseCommand();
    //check
    assertEquals(5, ft.getEntries().size());
  }
View Full Code Here

  public void testDoRunForTechFT() {
    //setup
    FactorTable ft = EMFfitModelFactory.eINSTANCE.createFactorTable();
    ft.setType(CategoryType.TECHNOLOGICAL);
    //run command
    new SetFactorTableDefaultEntriesCommand(ft, configFilePath).runWithoutUnicaseCommand();
    //check
    assertEquals(5, ft.getEntries().size());
  }
View Full Code Here

  public void testDoRunForProdFT() {
    //setup
    FactorTable ft = EMFfitModelFactory.eINSTANCE.createFactorTable();
    ft.setType(CategoryType.PRODUCT);
    //run command
    new SetFactorTableDefaultEntriesCommand(ft, configFilePath).runWithoutUnicaseCommand();
    //check
    assertEquals(7, ft.getEntries().size());
   
  }
View Full Code Here

    createFactorTables();

    if (addDefaultEntries) {
      if (customConfigFile != null){
        new SetFactorTableDefaultEntriesCommand(orgFactorTable, customConfigFile)
        .runWithoutUnicaseCommand();
    new SetFactorTableDefaultEntriesCommand(techFactorTable, customConfigFile)
        .runWithoutUnicaseCommand();
    new SetFactorTableDefaultEntriesCommand(prodFactorTable, customConfigFile)
        .runWithoutUnicaseCommand();
      } else {
        new SetFactorTableDefaultEntriesCommand(orgFactorTable)
        .runWithoutUnicaseCommand();
    new SetFactorTableDefaultEntriesCommand(techFactorTable)
        .runWithoutUnicaseCommand();
    new SetFactorTableDefaultEntriesCommand(prodFactorTable)
        .runWithoutUnicaseCommand();
      }
    }

    if (addGoalsFromURN) {
View Full Code Here

TOP

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

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.