Changeset 2035
- Timestamp:
- 09/10/15 23:25:11 (9 years ago)
- Location:
- trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/commands/CMDgenerateAltIndex.java
r1956 r2035 22 22 import java.util.Iterator; 23 23 import java.util.List; 24 import java.util.logging.Level; 24 25 25 26 import de.ugoe.cs.autoquest.CommandHelpers; … … 33 34 import de.ugoe.cs.autoquest.plugin.jfc.guimodel.JFCMenuButton; 34 35 import de.ugoe.cs.util.console.Command; 36 import de.ugoe.cs.util.console.Console; 35 37 import de.ugoe.cs.util.console.GlobalDataContainer; 36 38 37 39 /** 38 40 * <p> 39 * TODO comment 41 * Command to add an alternative index to JFCGuiElementSpecs. This index counts child type 42 * separately. 40 43 * </p> 41 44 * … … 59 62 sequencesName = (String) parameters.get(0); 60 63 if (parameters.size() >= 2) { 61 menuList = 62 Files.readAllLines(Paths.get((String) parameters.get(1)), 63 Charset.defaultCharset()); 64 menuList = Files.readAllLines(Paths.get((String) parameters.get(1)), 65 Charset.defaultCharset()); 64 66 } 65 67 } … … 128 130 @Override 129 131 public String help() { 130 // TODO Auto-generated method stub131 132 System.out.println("parseJFCDirwithJacaretoIndices <path> {<sequencesName>} {<menuFile>}"); 132 133 return null; 133 134 } 134 135 135 // duplicates to parseJFCwithJacaretoIndices136 136 private int findPopupMenuIndex(IGUIElement item, GUIModel model) { 137 // TODO: refactor138 137 int index = -1; 139 138 List<IGUIElement> children = model.getChildren(item); … … 151 150 if (menuChild == null) { 152 151 // this popup menu cannot be identified 153 // TODO: exception, logging etc152 Console.traceln(Level.WARNING, "Index for popup menu item could not be found."); 154 153 return -1; 155 154 } … … 169 168 if (lineOfItem == -1) { 170 169 // failed to find this item in the menu file 171 // TODO: exception, logging etc170 Console.traceln(Level.WARNING, "Menu file seems to be missing an item."); 172 171 return -1; 173 172 }
Note: See TracChangeset
for help on using the changeset viewer.