本文整理汇总了Java中org.eclipse.xtext.ui.resource.IResourceSetProvider类的典型用法代码示例。如果您正苦于以下问题:Java IResourceSetProvider类的具体用法?Java IResourceSetProvider怎么用?Java IResourceSetProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IResourceSetProvider类属于org.eclipse.xtext.ui.resource包,在下文中一共展示了IResourceSetProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getResourceSet
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
/***/
protected ResourceSet getResourceSet(IProject project) {
if (resourceSet == null) {
resourceSet = getInjector().getInstance(IResourceSetProvider.class).get(project);
}
return resourceSet;
}
示例2: EclipseBasedN4JSWorkspace
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
/**
* Public for testing purpose.
*/
@Inject
public EclipseBasedN4JSWorkspace(
IWorkspaceRoot workspace,
IResourceSetProvider resourceSetProvider) {
this.workspace = workspace;
this.resourceSetProvider = resourceSetProvider;
}
示例3: ForwardingResourceAccess
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
/**
* Configure the delegate.
*
* @param delegate
* the delegate to use.
*/
public ForwardingResourceAccess(IReferenceFinder.IResourceAccess delegate,
IResourceSetProvider resourceSetProvider) {
this.delegate = delegate;
this.resourceSetProvider = resourceSetProvider;
}
示例4: TaskGenerateAdoc
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
TaskGenerateAdoc(JSDoc2ADocSpecProcessor jsDoc2SpecProcessor, IResourceSetProvider resourceSetProvider,
IN4JSCore n4jsCore, IStructuredSelection selection, SpecConfigAdocPage configAdocPage,
SpecProcessPage processAdocPage) {
this.jsDoc2SpecProcessor = jsDoc2SpecProcessor;
this.resourceSetProvider = resourceSetProvider;
this.n4JSCore = n4jsCore;
this.selection = selection;
this.configAdocPage = configAdocPage;
this.processAdocPage = processAdocPage;
}
示例5: bindIResourceSetProvider
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
@Override
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
return XtextResourceSetProvider.class;
} else {
return SimpleResourceSetProvider.class;
}
}
示例6: bindIResourceSetProvider
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
return XtextResourceSetProvider.class;
} else {
return SimpleResourceSetProvider.class;
}
}
示例7: registerGuiceBindingsUi
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
private void registerGuiceBindingsUi() {
new GuiceModuleAccess.BindingFactory()
.addTypeToType(typeRef(XtextDocument.class), typeRef(CooperateXtextDocument.class))
.addTypeToType(typeRef(XtextDocumentProvider.class), typeRef(CooperateCDOXtextDocumentProvider.class))
.addTypeToType(typeRef(IResourceSetProvider.class), typeRef(XtextLiveScopeResourceSetProvider.class))
.contributeTo(getLanguage().getEclipsePluginGenModule());
getProjectConfig().getEclipsePlugin().getManifest().getRequiredBundles()
.add("de.cooperateproject.modeling.textual.xtext.runtime.ui");
}
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:10,代码来源:CooperateResourceHandlingBindingsFragment2.java
示例8: configure
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
@Override
protected void configure() {
bind(ToBeBuiltComputer.class).to(SadlToBeBuiltComputer.class);
bind(ProjectClasspathChangeListener.class).asEagerSingleton();
bind(IStorage2UriMapper.class).to(IStorage2UriMapperJdtExtensions.class);
bind(IStorage2UriMapperJdtExtensions.class).to(Storage2UriMapperJavaImpl.class);
bind(IResourceSetProvider.class).to(XtextResourceSetProvider.class);
// bind(TypeResourceUnloader.class).asEagerSingleton();
bind(JavaChangeQueueFiller.class).asEagerSingleton();
bind(StorageAwareTrace.class).to(JarEntryAwareTrace.class);
bind(DefaultTraceURIConverter.class).to(DefaultUITraceURIConverter.class);
}
示例9: getStaticTestModule
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
private Module getStaticTestModule() {
return new AbstractModule() {
@Override
protected void configure() {
bind(IResourceSetProvider.class).to(XtextResourceSetProvider.class);
}
};
}
示例10: createResourceSet
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
private static ResourceSet createResourceSet(IProject project) {
return N4JSActivator.getInstance().getInjector(N4JSActivator.ORG_ECLIPSE_N4JS_N4JS)
.getInstance(IResourceSetProvider.class).get(project);
}
示例11: getResourceSet
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
private XtextResourceSet getResourceSet() {
IResourceSetProvider resourceSetProvider = get(IResourceSetProvider.class);
ResourceSet result = resourceSetProvider.get(getJSProject());
return (XtextResourceSet) result;
}
示例12: ParallelResourceLoader
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
public ParallelResourceLoader(final IResourceSetProvider resourceSetProvider, final Sorter sorter, final int nThreads, final int queueSize) {
super(resourceSetProvider, sorter);
this.nThreads = nThreads;
this.queueSize = queueSize;
this.timeout = MAX_WAIT_TIME;
}
示例13: bindIResourceSetProvider
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
return SimpleResourceSetProvider.class;
}
示例14: bindIResourceSetProvider
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
return XtextResourceSetProvider.class;
}
示例15: getResourceSetProvider
import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
protected IResourceSetProvider getResourceSetProvider() {
return resourceSetProvider;
}