Java 类org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider 实例源码

项目:n4js    文件:DelegatingQuickfixProvider.java   
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;
}
项目:n4js    文件:N4JSQuickfixProviderSupplier.java   
@Override
public DefaultQuickfixProvider get() {
    return getInjector().getInstance(N4JSQuickfixProvider.class);
}
项目:n4js    文件:DelegatingQuickfixProvider.java   
private Iterable<DefaultQuickfixProvider> getDelegates() {
    return DELEGATES_SUPPLIER.get();
}
项目:bts    文件:DefaultUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return DefaultQuickfixProvider.class;
}
项目:n4js    文件:QuickfixProviderSupplier.java   
/**
 * Returns with the supplier {@link DefaultQuickfixProvider quickfix provider} instance.
 *
 * @return the quick fix provider instance.
 */
@Override
DefaultQuickfixProvider get();