Examples of FactorTable


Examples of org.emftrace.metamodel.EMFfitModel.FactorTable

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

Examples of org.emftrace.metamodel.EMFfitModel.FactorTable

  /* (non-Javadoc)
   * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    final FactorTable factorTable = (FactorTable) UiUtil.getSelectedEObject();
    new SetFactorTableTypeCommand(factorTable, CategoryType.PRODUCT).runAsJob();;
    return null;
  }
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.FactorTable

   * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
   
    final FactorTable factorTable = (FactorTable) UiUtil.getSelectedEObject()

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

Examples of org.emftrace.metamodel.EMFfitModel.FactorTable

   * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
   
    final FactorTable factorTable = (FactorTable) UiUtil.getSelectedEObject();
    new RepairFactorTableFTEntriesNumberingsCommand(factorTable, true).runAsJob();
    return null;
  }
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.FactorTable

  /* (non-Javadoc)
   * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    final FactorTable factorTable = (FactorTable) UiUtil.getSelectedEObject();
    new SetFactorTableTypeCommand(factorTable, CategoryType.ORGANIZATIONAL).runAsJob();;
    return null;
  }
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.FactorTable

  /* (non-Javadoc)
   * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    final FactorTable factorTable = (FactorTable) UiUtil.getSelectedEObject();
    new SetFactorTableTypeCommand(factorTable, CategoryType.TECHNOLOGICAL).runAsJob();
    return null;
  }
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.FactorTable

    task.setName("foo task");
    task.setType(IntentionalElementType.TASK);
    project.addModelElement(task);

     // add a product FactorTable
    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());
    assertEquals("foo goal", pFactorTable.getEntries().get(0).getName());
    assertEquals("P1", pFactorTable.getEntries().get(0).getNumbering());

  }
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.FactorTable

    task.setName("foo task");
    task.setType(IntentionalElementType.TASK);
    project.addModelElement(task);

     // add a product FactorTable
    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());
    assertEquals("foo softgoal", pFactorTable.getEntries().get(0).getName());
    assertEquals("P1", pFactorTable.getEntries().get(0).getNumbering());
  }
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.FactorTable

    task.setName("foo task");
    task.setType(IntentionalElementType.TASK);
    project.addModelElement(task);

     // add a product FactorTable
    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());
    assertEquals("P2", pFactorTable.getEntries().get(1).getNumbering());
    assertEquals("P3", pFactorTable.getEntries().get(2).getNumbering());
  }
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.FactorTable

    goal1.setName("foo goal1");
    goal1.setType(IntentionalElementType.GOAL);
    project.addModelElement(goal1);

     // add a product FactorTable
    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());
    assertNotNull(((Factor)pFactorTable.getEntries().get(0)).getChangeability());
    assertNotNull(((Factor)pFactorTable.getEntries().get(0)).getFlexibility());
    assertNotNull(((Factor)pFactorTable.getEntries().get(0)).getInfluence());
  }
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.