Java Code Examples for org.eclipse.ui.console.ConsolePlugin#log()

The following examples show how to use org.eclipse.ui.console.ConsolePlugin#log() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConsoleFactory.java    From tlaplus with MIT License 5 votes vote down vote up
public void openConsole()
{
    IWorkbenchPage activePage = UIHelper.getActivePage();
    if (activePage != null)
    {
        try
        {
            activePage.showView(IConsoleConstants.ID_CONSOLE_VIEW, TLC_ID, IWorkbenchPage.VIEW_ACTIVATE);
        } catch (PartInitException e)
        {
            ConsolePlugin.log(e);
        }
    }
}
 
Example 2
Source File: TLAPMConsoleFactory.java    From tlaplus with MIT License 5 votes vote down vote up
/**
 * Opens a generic console view using {@link TLAPMConsoleFactory#TLAPM_CONSOLE_ID} as the
 * console name so that it can be found later.
 */
public void openConsole()
{
    IWorkbenchPage activePage = UIHelper.getActivePage();
    if (activePage != null)
    {
        try
        {
            activePage.showView(IConsoleConstants.ID_CONSOLE_VIEW, TLAPM_CONSOLE_ID, IWorkbenchPage.VIEW_ACTIVATE);
        } catch (PartInitException e)
        {
            ConsolePlugin.log(e);
        }
    }
}
 
Example 3
Source File: DebugConsoleAction.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run(IAction action) {
    try {
        AnyPyStackFrameSelected anyPyStackFrameSelected = new AnyPyStackFrameSelected();
        PyStackFrame suspendedFrame = anyPyStackFrameSelected.getLastSelectedFrame();
        fFactory.createDebugConsole(suspendedFrame, null, true, true, anyPyStackFrameSelected);
    } catch (Exception e) {
        ConsolePlugin.log(e);
    }
}