org.eclipse.jdt.core.WorkingCopyOwner.createBuffer()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(683)

本文整理了Java中org.eclipse.jdt.core.WorkingCopyOwner.createBuffer()方法的一些代码示例,展示了WorkingCopyOwner.createBuffer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkingCopyOwner.createBuffer()方法的具体详情如下:
包路径:org.eclipse.jdt.core.WorkingCopyOwner
类名称:WorkingCopyOwner
方法名:createBuffer

WorkingCopyOwner.createBuffer介绍

[英]Creates a buffer for the given working copy. The new buffer will be initialized with the contents of the underlying file if and only if it was not already initialized by the compilation owner (a buffer is uninitialized if its content is null).

Note: This buffer will be associated to the working copy for its entire life-cycle. Another working copy on same unit but owned by a different owner would not share the same buffer unless its owner decided to implement such a sharing behaviour.
[中]为给定的工作副本创建缓冲区。当且仅当编译所有者尚未初始化新缓冲区时(如果缓冲区的内容为[$0$]),新缓冲区将使用基础文件的内容进行初始化。
注意:此缓冲区将在其整个生命周期内与工作副本关联。同一单元上但由不同所有者拥有的另一个工作副本不会共享同一缓冲区,除非其所有者决定实施这种共享行为。

代码示例

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.primaryBufferProvider != null) return this.primaryBufferProvider.createBuffer(workingCopy);
  return super.createBuffer(workingCopy);
}
public String toString() {

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.primaryBufferProvider != null) return this.primaryBufferProvider.createBuffer(workingCopy);
  return super.createBuffer(workingCopy);
}
@Override

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.primaryBufferProvider != null) return this.primaryBufferProvider.createBuffer(workingCopy);
  return super.createBuffer(workingCopy);
}
public String toString() {

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.primaryBufferProvider != null) return this.primaryBufferProvider.createBuffer(workingCopy);
  return super.createBuffer(workingCopy);
}
public String toString() {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.primaryBufferProvider != null) return this.primaryBufferProvider.createBuffer(workingCopy);
  return super.createBuffer(workingCopy);
}
public String toString() {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.primaryBufferProvider != null) return this.primaryBufferProvider.createBuffer(workingCopy);
  return super.createBuffer(workingCopy);
}
public String toString() {

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.factory == null) return super.createBuffer(workingCopy);
  return this.factory.createBuffer(workingCopy);
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.factory == null) return super.createBuffer(workingCopy);
  return this.factory.createBuffer(workingCopy);
}

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.factory == null) return super.createBuffer(workingCopy);
  return this.factory.createBuffer(workingCopy);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.factory == null) return super.createBuffer(workingCopy);
  return this.factory.createBuffer(workingCopy);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.factory == null) return super.createBuffer(workingCopy);
  return this.factory.createBuffer(workingCopy);
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

public IBuffer createBuffer(ICompilationUnit workingCopy) {
  if (this.factory == null) return super.createBuffer(workingCopy);
  return this.factory.createBuffer(workingCopy);
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

IBuffer buffer = this.owner.createBuffer(this);
if (buffer == null) return null;

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

IBuffer buffer =
  isWorkingCopy
    ? this.owner.createBuffer(this)
    : BufferManager.createBuffer(this);
if (buffer == null) return null;

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

IBuffer buffer =
  isWorkingCopy
    ? this.owner.createBuffer(this)
    : BufferManager.createBuffer(this);
if (buffer == null) return null;

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

IBuffer buffer =
  isWorkingCopy
    ? this.owner.createBuffer(this)
    : BufferManager.createBuffer(this);
if (buffer == null) return null;

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

IBuffer buffer =
  isWorkingCopy
    ? this.owner.createBuffer(this)
    : BufferManager.createBuffer(this);
if (buffer == null) return null;

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

IBuffer buffer =
  isWorkingCopy
    ? this.owner.createBuffer(this)
    : BufferManager.createBuffer(this);
if (buffer == null) return null;

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

IBuffer buffer =
  isWorkingCopy
    ? this.owner.createBuffer(this)
    : BufferManager.createBuffer(this);
if (buffer == null) return null;

相关文章