Package org.emftrace.emffit.ui.commands.ftentries

Examples of org.emftrace.emffit.ui.commands.ftentries.RepairFTEntryNumberingCommand


    Integer count = 0;
    for (FTEntry entry: factorTable.getEntries()){
      count++;
      String numberingStr = numbering + count.toString();
      if (entry.getNumbering() != (numberingStr) || includeSubitems){
          new RepairFTEntryNumberingCommand( entry, numberingStr, includeSubitems ).runWithoutUnicaseCommand();
      }
    }
  }
View Full Code Here


    ((FactorCategory) category1st.getChildren().get(0)).getChildren().get(0).setNumbering("O2.1.1");
    category1st.getChildren().get(1).setNumbering("O2.2");
    category1st.getChildren().get(2).setNumbering("O2.3");
    category1st.getChildren().get(3).setNumbering("O2.4");
   
    new RepairFTEntryNumberingCommand(category1st, "O1",false).runWithoutUnicaseCommand();
   
    assertEquals("O1", category1st.getNumbering());
    assertEquals("O1.1", category1st.getChildren().get(0).getNumbering());
    assertEquals("O1.1.1", ((FactorCategory)category1st.getChildren().get(0)).getChildren().get(0).getNumbering());
    assertEquals("O1.2", category1st.getChildren().get(1).getNumbering());
View Full Code Here

    ((FactorCategory) category1st.getChildren().get(0)).getChildren().get(0).setNumbering("O2.1.1");
    category1st.getChildren().get(1).setNumbering("O2.2");
    category1st.getChildren().get(2).setNumbering("O2.3");
    category1st.getChildren().get(3).setNumbering("O2.4");
   
    new RepairFTEntryNumberingCommand(category1st, "O1",false).runWithoutUnicaseCommand();
   
    assertEquals("O1", category1st.getNumbering());
    assertEquals("O1.1", category1st.getChildren().get(0).getNumbering());
    assertEquals("O1.1.1", ((FactorCategory)category1st.getChildren().get(0)).getChildren().get(0).getNumbering());
    assertEquals("O1.2", category1st.getChildren().get(1).getNumbering());
View Full Code Here

TOP

Related Classes of org.emftrace.emffit.ui.commands.ftentries.RepairFTEntryNumberingCommand

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.