@Override public int complete(String buf, int pos, List cand) { try { return new StringsCompleter(propertyNames()).complete(buf, pos, cand); } catch (Exception e) { beeLine.handleException(e); return -1; } }
public void save(OutputStream out) throws IOException { try { Properties props = toProperties(); // don't save maxwidth: it is automatically set based on // the terminal configuration props.remove(PROPERTY_PREFIX + "maxwidth"); props.store(out, beeLine.getApplicationTitle()); } catch (Exception e) { beeLine.handleException(e); } }