@Override public Iterable<Map.Entry<String, String>> getDescriptions() { LinkedHashMap<String, String> commands = new LinkedHashMap<String, String>(); for (String resourceName : context.listResources(ResourceKind.COMMAND)) { int index = resourceName.indexOf('.'); String name = resourceName.substring(0, index); String ext = resourceName.substring(index + 1); if (activeCompilers.containsKey(ext)) { try { CommandResolution resolution = resolveCommand2(name); commands.put(name, resolution.getDescription()); } catch (CommandException e) { // } } } return commands.entrySet(); }
@Override public Iterable<Map.Entry<String, String>> getDescriptions() { LinkedHashMap<String, String> commands = new LinkedHashMap<String, String>(); for (String resourceName : context.listResources(ResourceKind.COMMAND)) { int index = resourceName.indexOf('.'); String name = resourceName.substring(0, index); String ext = resourceName.substring(index + 1); if (activeCompilers.containsKey(ext)) { try { CommandResolution resolution = resolveCommand2(name); commands.put(name, resolution.getDescription()); } catch (CommandException e) { // } } } return commands.entrySet(); }
@Override public Iterable<Map.Entry<String, String>> getDescriptions() { LinkedHashMap<String, String> commands = new LinkedHashMap<String, String>(); for (String resourceName : context.listResources(ResourceKind.COMMAND)) { int index = resourceName.indexOf('.'); String name = resourceName.substring(0, index); String ext = resourceName.substring(index + 1); if (activeCompilers.containsKey(ext)) { try { CommandResolution resolution = resolveCommand2(name); commands.put(name, resolution.getDescription()); } catch (CommandException e) { // } } } return commands.entrySet(); }