List of usage examples for org.eclipse.jface.viewers TextCellEditor performCopy
@Override public void performCopy()
TextCellEditor implementation of this CellEditor method copies the current selection to the clipboard. From source file:de.chdev.artools.sql.handler.ResultCopyHandler.java
License:Apache License
@Override public Object execute(ExecutionEvent event) throws ExecutionException { IEditorPart activeEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage() .getActiveEditor();/* www .j a va 2s . co m*/ if (activeEditor instanceof SQLEditor) { SQLEditor sqlEditor = (SQLEditor) activeEditor; TextCellEditor cellEditor = sqlEditor.getTextCellEditor(); if (cellEditor != null && cellEditor.isActivated() && cellEditor.isCopyEnabled()) { cellEditor.performCopy(); } } return null; }