Examples of Browser


Examples of org.eclipse.swt.browser.Browser

  public TestabilityReportView() {
  }

  @Override
  public void createPartControl(Composite parent) {
    browser = new Browser(parent, SWT.NONE);
    browser.setUrl(url);
  }
View Full Code Here

Examples of org.eclipse.swt.browser.Browser

        dialogShell.setLayout(dialogShellLayout);
        dialogShell.layout();
        dialogShell.pack();
        dialogShell.setSize(800, 600);

        browser = new Browser(dialogShell, SWT.NONE | SWT.BORDER);
        final GridData browserLData = new GridData();
        browserLData.widthHint = 784;
        browserLData.heightHint = 500;
        browser.setLayoutData(browserLData);
        browser.setUrl(object.getHtmlPath());
View Full Code Here

Examples of org.eclipse.swt.browser.Browser

     * @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);
        }
View Full Code Here

Examples of org.eclipse.swt.browser.Browser

     * @return <code>true</code> if this control is available
     */
    public static boolean isAvailable(final Composite parent) {
        if (!fgAvailabilityChecked) {
            try {
                final Browser browser = new Browser(parent, SWT.NONE);
                browser.dispose();
                fgIsAvailable = true;

                final Slider sliderV = new Slider(parent, SWT.VERTICAL);
                final Slider sliderH = new Slider(parent, SWT.HORIZONTAL);
                final int width = sliderV.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
View Full Code Here

Examples of org.eclipse.swt.browser.Browser

     * org.eclipse.jface.text.AbstractInformationControl#createContent(org.eclipse
     * .swt.widgets.Composite)
     */
    @Override
    protected void createContent(final Composite parent) {
        fBrowser = new Browser(parent, SWT.NONE);
        fBrowser.setJavascriptEnabled(false);

        final Display display = getShell().getDisplay();
        fBrowser.setForeground(display.getSystemColor(SWT.COLOR_INFO_FOREGROUND));
        fBrowser.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
View Full Code Here

Examples of org.eclipse.swt.browser.Browser

    }

    void createPagePreview() {
        try {
            browser = new Browser(getContainer(), SWT.NONE);
            browser.setUrl(((IvyFileEditorInput) getEditorInput()).getPath().toOSString());
            int index = addPage(browser);
            setPageText(index, "Preview");
        } catch (SWTError e) {
            // IVYDE-10: under Linux if MOZILLA_FIVE_HOME is not set, it fails badly
View Full Code Here

Examples of org.eclipse.swt.browser.Browser

public class ReportView extends ViewPart implements ISelectionListener {
    private Browser browser;

    public void createPartControl(Composite parent) {
        browser = new Browser(parent, SWT.NONE);

        // add myself as a global selection listener
        getSite().getPage().addSelectionListener(this);

        // prime the selection
View Full Code Here

Examples of org.eclipse.swt.browser.Browser

              while(!requiredPluginDir.exists()) {
                Dialog dialog2 = new Dialog(shell) {
                  protected Control createDialogArea(Composite parent) {
                    Control comp;
                      try {
                      Browser browser = new Browser(parent, SWT.NONE);

                        String mainMessage = String.format(Messages.GetHTMLCopyPluginMsg,finalNewPlugin.getParentFile().getAbsolutePath(), finalNewPlugin.getAbsolutePath(), pluginsDir.getAbsolutePath());
                    browser.setText(mainMessage);
                    browser.addLocationListener(new LocationListener() {
                     
                      @Override
                      public void changing(LocationEvent event) {
                        event.doit = false;
                        org.eclipse.swt.program.Program.launch(event.location);                       
View Full Code Here

Examples of org.eclipse.swt.browser.Browser

      layout.marginHeight = 0;
      layout.verticalSpacing = 0;
      comp.setLayout(layout);
      Control msg;
        try {
        Browser browser = new Browser(comp, SWT.NONE);
        browser.setText(String.format(htmlForm,Messages.GetHTMLDriverMsg));
            msg = browser;
            browser.addLocationListener(new LocationListener() {
         
          @Override
          public void changing(LocationEvent event) {
            event.doit = false;
            org.eclipse.swt.program.Program.launch(event.location);
View Full Code Here

Examples of org.eclipse.swt.browser.Browser

        Shell shell = (Shell) e.widget;
        shell.setVisible(false);
      }
    });
    try {
      m_browser = new Browser(m_shell, SWT.MOZILLA);
    } catch (Throwable e) {
      throw new HostedModeException(HostedModeException.LINUX_BROWSER_ERROR, e);
    }
    try {
      Field webBrowserField = m_browser.getClass().getDeclaredField("webBrowser");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.