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

项目:n4js    文件:OwnResourceValidatorAwareValidatingEditorCallback.java   
private ValidationJob newValidationJob(final XtextEditor editor) {

        final IXtextDocument document = editor.getDocument();
        final IAnnotationModel annotationModel = editor.getInternalSourceViewer().getAnnotationModel();

        final IssueResolutionProvider issueResolutionProvider = getService(editor, IssueResolutionProvider.class);
        final MarkerTypeProvider markerTypeProvider = getService(editor, MarkerTypeProvider.class);
        final MarkerCreator markerCreator = getService(editor, MarkerCreator.class);

        final IValidationIssueProcessor issueProcessor = new CompositeValidationIssueProcessor(
                new AnnotationIssueProcessor(document, annotationModel, issueResolutionProvider),
                new MarkerIssueProcessor(editor.getResource(), markerCreator, markerTypeProvider));

        return editor.getDocument().modify(resource -> {
            final IResourceServiceProvider serviceProvider = resource.getResourceServiceProvider();
            final IResourceValidator resourceValidator = serviceProvider.getResourceValidator();
            return new ValidationJob(resourceValidator, editor.getDocument(), issueProcessor, ALL);
        });
    }
项目:dsl-devkit    文件:ValidValidatorFragment.java   
/** {@inheritDoc} */
@Override
public Set<Binding> getGuiceBindingsUi(final Grammar grammar) {
  if (hasQuickfixes(getValidModel(grammar))) {
    final BindFactory addTypeToInstance = new BindFactory().addTypeToType(IssueResolutionProvider.class.getName(), getQuickfixProviderName(grammar, getNaming()));
    return addTypeToInstance.getBindings();
  } else {
    return Collections.emptySet();
  }
}
项目:bts    文件:AnnotationIssueProcessor.java   
public AnnotationIssueProcessor(IXtextDocument xtextDocument, IAnnotationModel annotationModel,
        IssueResolutionProvider issueResolutionProvider) {
    super();
    this.annotationModel = annotationModel;
    if(annotationModel == null) 
        throw new IllegalArgumentException("Annotation model cannot be null");
    annotationModel.addAnnotationModelListener(this);
    this.xtextDocument = xtextDocument;
    this.issueResolutionProvider = issueResolutionProvider;
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return PkmntcgoQuickfixProvider.class;
}
项目:n4js    文件:AbstractN4JSUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return N4JSQuickfixProvider.class;
}
项目:n4js    文件:AbstractRegularExpressionUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return RegularExpressionQuickfixProvider.class;
}
项目:n4js    文件:AbstractN4MFUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return N4MFQuickfixProvider.class;
}
项目:n4js    文件:AbstractTypesUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return TypesQuickfixProvider.class;
}
项目:Xtext_Xtend_HTML_Generator    文件:AbstractMyDslUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return MyDslQuickfixProvider.class;
}
项目:bromium    文件:AbstractBromiumUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return BromiumQuickfixProvider.class;
}
项目:gw4e.project    文件:AbstractDSLPoliciesUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return DSLPoliciesQuickfixProvider.class;
}
项目:lcdsl    文件:AbstractLcDslUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return LcDslQuickfixProvider.class;
}
项目:gemoc-studio    文件:AbstractDslUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return DslQuickfixProvider.class;
}
项目:org.xtext.dsl.restaurante    文件:AbstractRestauranteUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return RestauranteQuickfixProvider.class;
}
项目:OCCI-Studio    文件:AbstractOCCIUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return OCCIQuickfixProvider.class;
}
项目:M2Doc    文件:AbstractMyDslUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return MyDslQuickfixProvider.class;
}
项目:minitl    文件:AbstractMinitlUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return MinitlQuickfixProvider.class;
}
项目:Sparrow    文件:AbstractModelEditorUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return ModelEditorQuickfixProvider.class;
}
项目:dsl-devkit    文件:AbstractQuickFixTest.java   
private IssueResolutionProvider getIssueResolutionProvider() {
  return getXtextTestUtil().get(IssueResolutionProvider.class);
}
项目:chariot    文件:MongoBeansUiModule.java   
@Override
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return org.xtext.mongobeans.ui.quickfix.MongoBeansQuickfixProvider.class;
}
项目:bts    文件:DefaultUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return DefaultQuickfixProvider.class;
}
项目:statecharts    文件:StyledTextXtextAdapter.java   
protected IssueResolutionProvider getResolutionProvider() {
    return this.resolutionProvider;
}
项目:CooperateModelingEnvironment    文件:AbstractComponentUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return ComponentQuickfixProvider.class;
}
项目:CooperateModelingEnvironment    文件:AbstractClsUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return ClsQuickfixProvider.class;
}
项目:CooperateModelingEnvironment    文件:AbstractUsecaseUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return UsecaseQuickfixProvider.class;
}
项目:cs2as    文件:AbstractASBHLangUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return ASBHLangQuickfixProvider.class;
}
项目:cs2as    文件:AbstractMiniOCLUiModule.java   
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
    return MiniOCLQuickfixProvider.class;
}
项目:dsl-devkit    文件:FixedXtextResourceMarkerAnnotationModel.java   
/**
 * Creates a new instance of {@link FixedXtextResourceMarkerAnnotationModel}.
 *
 * @param file
 *          the {@link IFile}, must not be {@code null}
 * @param issueResolutionProvider
 *          the {@link IssueResolutionProvider}, must not be {@code null}
 * @param markerUtil
 *          the {@link IssueUtil}, must not be {@code null}
 */
public FixedXtextResourceMarkerAnnotationModel(final IFile file, final IssueResolutionProvider issueResolutionProvider, final IssueUtil markerUtil) {
  super(file, issueResolutionProvider, markerUtil);
}