Search in sources :

Example 1 with QuickOutlinePopupDialog

use of org.erlide.ui.editors.erl.outline.QuickOutlinePopupDialog in project erlide_eclipse by erlang.

the class ShowOutlineAction method run.

@Override
public void run() {
    if (getTextEditor() instanceof ErlangEditor) {
        final ErlangEditor editor = (ErlangEditor) getTextEditor();
        final Shell parent = getTextEditor().getSite().getShell();
        final QuickOutlinePopupDialog quickOutlinePopupDialog = new QuickOutlinePopupDialog(parent, SWT.NONE, editor, editor, editor);
        quickOutlinePopupDialog.open();
    }
}
Also used : Shell(org.eclipse.swt.widgets.Shell) QuickOutlinePopupDialog(org.erlide.ui.editors.erl.outline.QuickOutlinePopupDialog) ErlangEditor(org.erlide.ui.editors.erl.ErlangEditor)

Aggregations

Shell (org.eclipse.swt.widgets.Shell)1 ErlangEditor (org.erlide.ui.editors.erl.ErlangEditor)1 QuickOutlinePopupDialog (org.erlide.ui.editors.erl.outline.QuickOutlinePopupDialog)1