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


Java IResourceSetProvider类代码示例

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

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

示例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;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:13,代码来源:ForwardingResourceAccess.java

示例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;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:12,代码来源:TaskGenerateAdoc.java

示例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;
	}
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:9,代码来源:SGenUiModule.java

示例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;
	}
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:8,代码来源:STextUiModule.java

示例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);
	}
 
开发者ID:crapo,项目名称:sadlos2,代码行数:13,代码来源:SadlSharedModule.java

示例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);
        }
    };
}
 
开发者ID:bmwcarit,项目名称:joynr,代码行数:10,代码来源:TestsStandaloneSetup.java

示例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);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:5,代码来源:ProjectUtils.java

示例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;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:6,代码来源:AbstractN4JSContentAssistTest.java

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

示例13: bindIResourceSetProvider

import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
	return SimpleResourceSetProvider.class;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:4,代码来源:EmfUiModule.java

示例14: bindIResourceSetProvider

import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
	return XtextResourceSetProvider.class;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:4,代码来源:DefaultUiModule.java

示例15: getResourceSetProvider

import org.eclipse.xtext.ui.resource.IResourceSetProvider; //导入依赖的package包/类
protected IResourceSetProvider getResourceSetProvider() {
	return resourceSetProvider;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:4,代码来源:ResourceForIEditorInputFactory.java


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