当前位置: 首页>>代码示例>>Java>>正文


Java IssueResolutionProvider类代码示例

本文整理汇总了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);
		});
	}
 
开发者ID:eclipse,项目名称:n4js,代码行数:20,代码来源:OwnResourceValidatorAwareValidatingEditorCallback.java

示例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();
  }
}
 
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:11,代码来源:ValidValidatorFragment.java

示例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;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:11,代码来源:AnnotationIssueProcessor.java

示例4: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return PkmntcgoQuickfixProvider.class;
}
 
开发者ID:rehne93,项目名称:pokemon-tcgo-deck-generator,代码行数:4,代码来源:AbstractPkmntcgoUiModule.java

示例5: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return N4JSQuickfixProvider.class;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSUiModule.java

示例6: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return RegularExpressionQuickfixProvider.class;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractRegularExpressionUiModule.java

示例7: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return N4MFQuickfixProvider.class;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4MFUiModule.java

示例8: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return TypesQuickfixProvider.class;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractTypesUiModule.java

示例9: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return MyDslQuickfixProvider.class;
}
 
开发者ID:fatalerrortan,项目名称:Xtext_Xtend_HTML_Generator,代码行数:4,代码来源:AbstractMyDslUiModule.java

示例10: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return BromiumQuickfixProvider.class;
}
 
开发者ID:hristo-vrigazov,项目名称:bromium,代码行数:4,代码来源:AbstractBromiumUiModule.java

示例11: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return DSLPoliciesQuickfixProvider.class;
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:4,代码来源:AbstractDSLPoliciesUiModule.java

示例12: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return LcDslQuickfixProvider.class;
}
 
开发者ID:mduft,项目名称:lcdsl,代码行数:4,代码来源:AbstractLcDslUiModule.java

示例13: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return DslQuickfixProvider.class;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:4,代码来源:AbstractDslUiModule.java

示例14: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return RestauranteQuickfixProvider.class;
}
 
开发者ID:vicegd,项目名称:org.xtext.dsl.restaurante,代码行数:4,代码来源:AbstractRestauranteUiModule.java

示例15: bindIssueResolutionProvider

import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; //导入依赖的package包/类
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
	return OCCIQuickfixProvider.class;
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:4,代码来源:AbstractOCCIUiModule.java


注:本文中的org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。