本文整理汇总了Java中org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider类的典型用法代码示例。如果您正苦于以下问题:Java IssueResolutionProvider类的具体用法?Java IssueResolutionProvider怎么用?Java IssueResolutionProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IssueResolutionProvider类属于org.eclipse.xtext.ui.editor.quickfix包,在下文中一共展示了IssueResolutionProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: newValidationJob
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
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);
});
}
示例2: getGuiceBindingsUi
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
/** {@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();
}
}
示例3: AnnotationIssueProcessor
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
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;
}
示例4: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return PkmntcgoQuickfixProvider.class;
}
示例5: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return N4JSQuickfixProvider.class;
}
示例6: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return RegularExpressionQuickfixProvider.class;
}
示例7: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return N4MFQuickfixProvider.class;
}
示例8: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return TypesQuickfixProvider.class;
}
示例9: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return MyDslQuickfixProvider.class;
}
示例10: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return BromiumQuickfixProvider.class;
}
示例11: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return DSLPoliciesQuickfixProvider.class;
}
示例12: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return LcDslQuickfixProvider.class;
}
示例13: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return DslQuickfixProvider.class;
}
示例14: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return RestauranteQuickfixProvider.class;
}
示例15: bindIssueResolutionProvider
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
return OCCIQuickfixProvider.class;
}