Search in sources :

Example 1 with SpecfileQuickOutlineDialog

use of org.eclipse.linuxtools.internal.rpm.ui.editor.outline.SpecfileQuickOutlineDialog in project linuxtools by eclipse.

the class SpecfileEditorShowOutlineActionDelegate method execute.

@Override
public Object execute(ExecutionEvent event) {
    IEditorPart editor = HandlerUtil.getActiveEditor(event);
    ITextEditor textEditor = editor.getAdapter(ITextEditor.class);
    SpecfileQuickOutlineDialog quickOutlinePopupDialog = new SpecfileQuickOutlineDialog(editor.getSite().getShell(), SWT.NONE, textEditor);
    quickOutlinePopupDialog.setVisible(true);
    return null;
}
Also used : ITextEditor(org.eclipse.ui.texteditor.ITextEditor) SpecfileQuickOutlineDialog(org.eclipse.linuxtools.internal.rpm.ui.editor.outline.SpecfileQuickOutlineDialog) IEditorPart(org.eclipse.ui.IEditorPart)

Aggregations

SpecfileQuickOutlineDialog (org.eclipse.linuxtools.internal.rpm.ui.editor.outline.SpecfileQuickOutlineDialog)1 IEditorPart (org.eclipse.ui.IEditorPart)1 ITextEditor (org.eclipse.ui.texteditor.ITextEditor)1