}
public void run(IAction action) {
ScriptConsoleManager manager = ScriptConsoleManager.getInstance();
IScriptConsole console = manager.getActiveScriptConsole(RutaConsole.CONSOLE_TYPE);
if (console == null) {
return;
}
if (selection instanceof ITextSelection) {
String text = ((ITextSelection) selection).getText();
console.insertText(text);
}
}