Examples of SetFactorTableTypeCommand


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

   * @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.emffit.ui.commands.factortables.SetFactorTableTypeCommand

   * @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.emffit.ui.commands.factortables.SetFactorTableTypeCommand

   * @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.emffit.ui.commands.factortables.SetFactorTableTypeCommand

public class SetFactorTableTypeCommandTest extends EMFfitTestCase {

  @Test
  public void testDoRun() {
    new SetFactorTableTypeCommand(factorTable, CategoryType.TECHNOLOGICAL).runWithoutUnicaseCommand();
    assertEquals(CategoryType.TECHNOLOGICAL, factorTable.getType());
    assertEquals("T1", factorTable.getEntries().get(0).getNumbering());
    assertEquals("T1.1", factorTable.getEntries().get(0).getChildren().get(0).getNumbering());
    assertEquals("T2", factorTable.getEntries().get(1).getNumbering());
  }
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.