本文整理汇总了Java中org.eclipse.xtext.ui.label.DefaultDescriptionLabelProvider类的典型用法代码示例。如果您正苦于以下问题:Java DefaultDescriptionLabelProvider类的具体用法?Java DefaultDescriptionLabelProvider怎么用?Java DefaultDescriptionLabelProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DefaultDescriptionLabelProvider类属于org.eclipse.xtext.ui.label包,在下文中一共展示了DefaultDescriptionLabelProvider类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configure
import org.eclipse.xtext.ui.label.DefaultDescriptionLabelProvider; //导入依赖的package包/类
@Override
public void configure(Binder binder) {
binder.bind(IResourceValidator.class).to(SCTResourceValidatorImpl.class);
binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("sct");
binder.bind(IEncodingProvider.class).to(IEncodingProvider.Runtime.class);
binder.bind(IQualifiedNameProvider.class).to(StextNameProvider.class);
binder.bind(org.eclipse.jface.viewers.ILabelProvider.class)
.annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class)
.to(DefaultDescriptionLabelProvider.class);
binder.bind(IDefaultResourceDescriptionStrategy.class).to(SCTResourceDescriptionStrategy.class);
binder.bind(MarkerCreator.class).to(SCTMarkerCreator.class);
binder.bind(MarkerTypeProvider.class).to(SCTMarkerTypeProvider.class);
binder.bind(IDiagnosticConverter.class).to(SCTDiagnosticConverterImpl.class);
binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(SCTFileEditorOpener.class);
binder.bind(IMarkerContributor.class).to(TaskMarkerContributor.class);
binder.bind(ITaskFinder.class).to(DomainSpecificTaskFinder.class);
binder.bind(TaskMarkerCreator.class).to(SCTTaskMarkerCreator.class);
binder.bind(TaskMarkerTypeProvider.class).to(SCTTaskMarkerTypeProvider.class);
}
示例2: configureResourceUIServiceLabelProvider
import org.eclipse.xtext.ui.label.DefaultDescriptionLabelProvider; //导入依赖的package包/类
public void configureResourceUIServiceLabelProvider(com.google.inject.Binder binder) {
binder.bind(org.eclipse.jface.viewers.ILabelProvider.class)
.annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class)
.to(DefaultDescriptionLabelProvider.class);
}