Search in sources :

Example 1 with HandleEdocLinksLocationListener

use of org.erlide.ui.internal.information.HandleEdocLinksLocationListener in project erlide_eclipse by erlang.

the class EdocView method internalCreatePartControl.

/*
     * @see AbstractInfoView#internalCreatePartControl(Composite)
     */
@Override
protected void internalCreatePartControl(final Composite parent) {
    try {
        fBrowser = new Browser(parent, SWT.NONE);
        locationListener = new HandleEdocLinksLocationListener(this);
        fBrowser.addLocationListener(locationListener);
    } catch (final SWTError er) {
        ErlLogger.warn(er);
    }
    initStyleSheet();
    getViewSite().setSelectionProvider(new SelectionProvider(getControl()));
}
Also used : SWTError(org.eclipse.swt.SWTError) HandleEdocLinksLocationListener(org.erlide.ui.internal.information.HandleEdocLinksLocationListener) ISelectionProvider(org.eclipse.jface.viewers.ISelectionProvider) Browser(org.eclipse.swt.browser.Browser)

Aggregations

ISelectionProvider (org.eclipse.jface.viewers.ISelectionProvider)1 SWTError (org.eclipse.swt.SWTError)1 Browser (org.eclipse.swt.browser.Browser)1 HandleEdocLinksLocationListener (org.erlide.ui.internal.information.HandleEdocLinksLocationListener)1