List of usage examples for org.eclipse.jface.viewers TextCellEditor isRedoEnabled
public boolean isRedoEnabled()
true if this cell editor is able to perform the redo action. From source file:de.chdev.artools.sql.handler.ResultRedoHandler.java
License:Apache License
@Override public Object execute(ExecutionEvent event) throws ExecutionException { IEditorPart activeEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage() .getActiveEditor();/*from w w w . j a v a 2 s . co m*/ if (activeEditor instanceof SQLEditor) { SQLEditor sqlEditor = (SQLEditor) activeEditor; TextCellEditor cellEditor = sqlEditor.getTextCellEditor(); if (cellEditor != null && cellEditor.isActivated() && cellEditor.isRedoEnabled()) { cellEditor.performRedo(); } } return null; }