Example usage for org.eclipse.jface.viewers TextCellEditor performRedo

List of usage examples for org.eclipse.jface.viewers TextCellEditor performRedo

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers TextCellEditor performRedo.

Prototype

public void performRedo() 

Source Link

Document

Performs the redo action.

Usage

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   ww w . ja va2s.  c  o m
    if (activeEditor instanceof SQLEditor) {
        SQLEditor sqlEditor = (SQLEditor) activeEditor;
        TextCellEditor cellEditor = sqlEditor.getTextCellEditor();
        if (cellEditor != null && cellEditor.isActivated() && cellEditor.isRedoEnabled()) {
            cellEditor.performRedo();
        }
    }

    return null;
}