Java 类com.intellij.util.ui.EmptyClipboardOwner 实例源码

项目:intellij-ce-playground    文件:CaretImpl.java   
private void updateSystemSelection() {
  if (GraphicsEnvironment.isHeadless()) return;

  final Clipboard clip = myEditor.getComponent().getToolkit().getSystemSelection();
  if (clip != null) {
    clip.setContents(new StringSelection(myEditor.getSelectionModel().getSelectedText(true)), EmptyClipboardOwner.INSTANCE);
  }
}
项目:tools-idea    文件:SelectionModelImpl.java   
private void updateSystemSelection() {
  if (GraphicsEnvironment.isHeadless()) return;

  final Clipboard clip = myEditor.getComponent().getToolkit().getSystemSelection();
  if (clip != null) {
    clip.setContents(new StringSelection(getSelectedText()), EmptyClipboardOwner.INSTANCE);
  }
}
项目:consulo    文件:CaretImpl.java   
private void updateSystemSelection() {
  if (GraphicsEnvironment.isHeadless()) return;

  final Clipboard clip = myEditor.getComponent().getToolkit().getSystemSelection();
  if (clip != null) {
    clip.setContents(new StringSelection(myEditor.getSelectionModel().getSelectedText(true)), EmptyClipboardOwner.INSTANCE);
  }
}