本文整理了Java中org.eclipse.jdt.core.WorkingCopyOwner.setPrimaryBufferProvider()
方法的一些代码示例,展示了WorkingCopyOwner.setPrimaryBufferProvider()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkingCopyOwner.setPrimaryBufferProvider()
方法的具体详情如下:
包路径:org.eclipse.jdt.core.WorkingCopyOwner
类名称:WorkingCopyOwner
方法名:setPrimaryBufferProvider
[英]Sets the buffer provider of the primary working copy owner. Note that even if the buffer provider is a working copy owner, only its createBuffer(ICompilationUnit)
method is used by the primary working copy owner. It doesn't replace the internal primary working owner.
This method is for internal use by the jdt-related plug-ins. Clients outside of the jdt should not reference this method.
[中]设置主要工作副本所有者的缓冲区提供程序。请注意,即使缓冲区提供程序是工作副本所有者,主工作副本所有者也只使用其createBuffer(ICompilationUnit)
方法。它不会替换内部主要工作所有者。
此方法供jdt相关插件内部使用。jdt之外的客户端不应引用此方法。
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
fDebugRegistration= context.registerService(DebugOptionsListener.class, this, properties);
WorkingCopyOwner.setPrimaryBufferProvider(new WorkingCopyOwner() {
@Override
public IBuffer createBuffer(ICompilationUnit workingCopy) {
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public void start(BundleContext context) throws Exception {
super.start(context);
WorkingCopyOwner.setPrimaryBufferProvider(new WorkingCopyOwner() {
public IBuffer createBuffer(ICompilationUnit workingCopy) {
ICompilationUnit original= workingCopy.getPrimary();
代码示例来源:origin: eclipse/eclipse.jdt.ls
public void connectClient(JavaLanguageClient client) {
this.client = new JavaClientConnection(client);
progressReporterManager = new ProgressReporterManager(client, preferenceManager);
Job.getJobManager().setProgressProvider(progressReporterManager);
this.workingCopyOwner = new LanguageServerWorkingCopyOwner(this.client);
pm.setConnection(client);
WorkingCopyOwner.setPrimaryBufferProvider(this.workingCopyOwner);
this.documentLifeCycleHandler = new DocumentLifeCycleHandler(this.client, preferenceManager, pm, true);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
fDebugRegistration= context.registerService(DebugOptionsListener.class, this, properties);
WorkingCopyOwner.setPrimaryBufferProvider(new WorkingCopyOwner() {
@Override
public IBuffer createBuffer(ICompilationUnit workingCopy) {
内容来源于网络,如有侵权,请联系作者删除!