@Override public String tooltip(Object... target) throws Exception { init(); return bridge.tooltip(target); }
@Override public String tooltip(Object... target) throws Exception { init(); return bridge.tooltip(target); }
@Override public String tooltip(Object... target) throws Exception { if (target.length == 0) { try (Formatter f = new Formatter()) { if (stale) { f.format("[stale] Needs reload, see menu\n"); } f.format("Name : %s\n", getName()); f.format("Cache : %s\n", getRoot()); f.format("Max stale (secs) : %s\n", config.max_stale(YEAR)); f.format("\n" + "URLs :\n"); for (URI uri : getIndex().getURIs()) { f.format(" %s\n", uri); } return f.toString(); } } return getIndex().getBridge() .tooltip(target); }
@Override public String tooltip(Object... target) throws Exception { if (target.length == 0) { try (Formatter f = new Formatter()) { if (stale) { f.format("[stale] Needs reload, see menu\n"); } f.format("Name : %s\n", getName()); f.format("Cache : %s\n", getRoot()); f.format("Max stale (secs) : %s\n", config.max_stale(YEAR)); f.format("\n" + "URLs :\n"); for (URI uri : getIndex().getURIs()) { f.format(" %s\n", uri); } return f.toString(); } } return getIndex().getBridge() .tooltip(target); }
String tooltip(Object[] target) throws Exception { String tooltip = getBridge().tooltip(target); switch (target.length) { case 2 : ResourceInfo info = getBridge().getInfo((String) target[0], (Version) target[1]); Archive archive = getArchive(info.getResource()); if (archive != null) { tooltip += "Coordinates: " + archive + "\n"; } } return tooltip; }
String tooltip(Object[] target) throws Exception { String tooltip = getBridge().tooltip(target); switch (target.length) { case 2 : ResourceInfo info = getBridge().getInfo((String) target[0], (Version) target[1]); Archive archive = getArchive(info.getResource()); if (archive != null) { tooltip += "Coordinates: " + archive + "\n"; } } return tooltip; }