@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();
}
}