private static Builder<DefaultQuickfixProvider> collectRegisteredProviders() { final Builder<DefaultQuickfixProvider> builder = ImmutableList.<DefaultQuickfixProvider> builder(); if (Platform.isRunning()) { final IConfigurationElement[] elements = getQuickfixSupplierElements(); for (final IConfigurationElement element : elements) { try { final Object extension = element.createExecutableExtension(CLAZZ_PROPERTY_NAME); if (extension instanceof QuickfixProviderSupplier) { builder.add(((QuickfixProviderSupplier) extension).get()); } } catch (final CoreException e) { LOGGER.error("Error while instantiating quickfix provider supplier instance.", e); } } } return builder; }
@Override public DefaultQuickfixProvider get() { return getInjector().getInstance(N4JSQuickfixProvider.class); }
private Iterable<DefaultQuickfixProvider> getDelegates() { return DELEGATES_SUPPLIER.get(); }
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() { return DefaultQuickfixProvider.class; }
/** * Returns with the supplier {@link DefaultQuickfixProvider quickfix provider} instance. * * @return the quick fix provider instance. */ @Override DefaultQuickfixProvider get();