@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); try { for (String datasourceFileName : jdbcService.datasourceFileNames()) { delegate.getStrings().add(datasourceFileName.replace("datasource-", "").replace(".xml", "")); } } catch (Exception e) { // nothing to do } return delegate.complete(buffer, cursor, candidates); }
@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); delegate.getStrings().add("on"); delegate.getStrings().add("off"); return delegate.complete(buffer, cursor, candidates); } }
public int complete(String buffer, int cursor, List candidates) { StringsCompleter delegate = new StringsCompleter(); try { for (String name : jndiService.names().keySet()) { delegate.getStrings().add(name); } } catch (Exception e) { // nothing to do } return delegate.complete(buffer, cursor, candidates); }
public int complete(String buffer, int cursor, List<String> candidates) { if (session == null) { session = CommandSessionHolder.getSession(); } checkData(); int res = new StringsCompleter(commands).complete(buffer, cursor, candidates); Collections.sort(candidates); return res; }
@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); try { delegate.getStrings().addAll(getFeatureLocations()); } catch (Exception ex) { //ignore } return delegate.complete(buffer, cursor, candidates); }
@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); try { for (String connectionFactory : jmsService.connectionFactories()) { delegate.getStrings().add(connectionFactory); } } catch (Exception e) { // nothing to do } return delegate.complete(buffer, cursor, candidates); }
@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); try { delegate.getStrings().addAll(getFeatureLocations()); } catch (Exception ex) { //ignore } return delegate.complete(buffer, cursor, candidates); }
public int complete(String buffer, int cursor, List candidates) { StringsCompleter delegate = new StringsCompleter(); try { List<String> contexts = jndiService.contexts(); for (String context : contexts) { delegate.getStrings().add(context); } } catch (Exception e) { // nothing to do } return delegate.complete(buffer, cursor, candidates); }
public int complete(String buffer, int cursor, @SuppressWarnings("rawtypes") List candidates) { StringsCompleter delegate = new StringsCompleter(); try { for (String karName : karService.list()) { delegate.getStrings().add(karName); } } catch (Exception e) { // ignore } return delegate.complete(buffer, cursor, candidates); }
@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); try { for (String datasource : jdbcService.datasources()) { delegate.getStrings().add(datasource); } } catch (Exception e) { // nothing to do } return delegate.complete(buffer, cursor, candidates); }
@Override public int complete(String buffer, int cursor, List<String> candidates) { final StringsCompleter delegate = new StringsCompleter(); final List<Application> applications = _switchYard.getApplications(); for (Application application : applications) { delegate.getStrings().add(application.getName().toString()); } return delegate.complete(buffer, cursor, candidates); }
@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); ProfileService profileService = fabricService.adapt(ProfileService.class); List<String> versions = profileService.getVersions(); for (String version : versions) { delegate.getStrings().add(version); } return delegate.complete(buffer, cursor, candidates); }
@Override public int complete(final String buffer, final int cursor, final List candidates) { StringsCompleter delegate = new StringsCompleter(); List<Installation> installations = processManager.listInstallations(); for (Installation installation : installations) { String id = "" + installation.getId(); delegate.getStrings().add(id); } return delegate.complete(buffer, cursor, candidates); } }
@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter completer = new StringsCompleter(); for(DataCategory c:DataCategory.values()){ completer.getStrings().add(c.name()); } return completer.complete(buffer, cursor, candidates); } }
public int complete(String buffer, int cursor, List candidates) { StringsCompleter delegate = new StringsCompleter(); for (Instance instance : adminService.getInstances()) { if (acceptsInstance(instance)) { delegate.getStrings().add(instance.getName()); } } return delegate.complete(buffer, cursor, candidates); }
@SuppressWarnings("unchecked") public int complete(String buffer, int cursor, List candidates) { StringsCompleter delegate = new StringsCompleter(); try { if (curator.getZookeeperClient().isConnected()) { delegate.getStrings().addAll(getChildren(curator, CLUSTER_PATH)); } } catch (Exception ex) { //ignore } return delegate.complete(buffer, cursor, candidates); }
@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); for (Container container : getFabricService().getContainers()) { if (apply(container)) { delegate.getStrings().add(container.getId()); } } return delegate.complete(buffer, cursor, candidates); }
@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); for (Patch patch : service.getPatches()) { if (isInstalled() && patch.isInstalled() || isUninstalled() && !patch.isInstalled()) { delegate.getStrings().add(patch.getId()); } } return delegate.complete(buffer, cursor, candidates); }
@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); for (Patch patch : service.getPatches()) { if (isInstalled() && patch.isInstalled() || isUninstalled() && !patch.isInstalled()) { delegate.getStrings().add(patch.getId()); } } return delegate.complete(buffer, cursor, candidates); }
@Override public int complete(String buffer, int cursor, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); for (Patch patch : service.getPatches()) { if (isInstalled() && patch.isInstalled() || isUninstalled() && !patch.isInstalled()) { delegate.getStrings().add(patch.getId()); } } return delegate.complete(buffer, cursor, candidates); }