Search in sources :

Example 1 with BrowserDynamicPartLocationListener

use of org.talend.commons.ui.html.BrowserDynamicPartLocationListener in project tmdm-studio-se by Talend.

the class MDMStartingEditor method createPartControl.

@Override
public void createPartControl(Composite parent) {
    try {
        browser = new Browser(parent, SWT.NONE);
        browser.setText(MDMStartingHelper.getHelper().getHtmlContent());
        browser.addLocationListener(new BrowserDynamicPartLocationListener());
        return;
    } catch (IOException e) {
        ExceptionHandler.process(e);
    } catch (Throwable t) {
        // $NON-NLS-1$
        Exception ex = new Exception("The internal web browser can not be access,the starting page won't be displayed");
        ExceptionHandler.process(ex);
    }
}
Also used : BrowserDynamicPartLocationListener(org.talend.commons.ui.html.BrowserDynamicPartLocationListener) IOException(java.io.IOException) IOException(java.io.IOException) PartInitException(org.eclipse.ui.PartInitException) Browser(org.eclipse.swt.browser.Browser)

Example 2 with BrowserDynamicPartLocationListener

use of org.talend.commons.ui.html.BrowserDynamicPartLocationListener in project tesb-studio-se by Talend.

the class EsbStartingBrowser method createPartControl.

@Override
public void createPartControl(Composite parent) {
    try {
        browser = new Browser(parent, SWT.NONE);
        browser.setText(EsbStartingHelper.getHelper().getHtmlContent());
        browser.addLocationListener(new BrowserDynamicPartLocationListener());
    } catch (IOException e) {
        ExceptionHandler.process(e);
    } catch (Throwable t) {
        Exception ex = new Exception("The internal web browser can not be access,the starting page won't be displayed");
        ExceptionHandler.process(ex);
    }
}
Also used : BrowserDynamicPartLocationListener(org.talend.commons.ui.html.BrowserDynamicPartLocationListener) IOException(java.io.IOException) IOException(java.io.IOException) Browser(org.eclipse.swt.browser.Browser) StartingBrowser(org.talend.rcp.intro.starting.StartingBrowser)

Example 3 with BrowserDynamicPartLocationListener

use of org.talend.commons.ui.html.BrowserDynamicPartLocationListener in project tdi-studio-se by Talend.

the class TutorialsDialog method createDialogArea.

@Override
protected Control createDialogArea(final Composite parent) {
    browser = new Browser(parent, SWT.NONE);
    try {
        browser.setText(TutorialsHelper.getHelper().getHtmlContent());
    } catch (IOException e) {
        CommonExceptionHandler.process(e);
    }
    browser.addLocationListener(new BrowserDynamicPartLocationListener());
    return parent;
}
Also used : BrowserDynamicPartLocationListener(org.talend.commons.ui.html.BrowserDynamicPartLocationListener) IOException(java.io.IOException) Browser(org.eclipse.swt.browser.Browser)

Aggregations

IOException (java.io.IOException)3 Browser (org.eclipse.swt.browser.Browser)3 BrowserDynamicPartLocationListener (org.talend.commons.ui.html.BrowserDynamicPartLocationListener)3 PartInitException (org.eclipse.ui.PartInitException)1 StartingBrowser (org.talend.rcp.intro.starting.StartingBrowser)1