Package org.eclipse.swt.browser

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


        shell.setMinimized(false);
        shell.setMaximized(false);
        shell.setVisible(false);
      }
    });
    m_browser = new Browser(m_shell, SWT.NONE);
    Utils.ensureProxyBypassLocal();
    m_helper = new IEInitializer(m_browser);
    m_shell.layout();
    // keep Shell disabled, so it will not accept focus/activation
    m_shell.setEnabled(false);
View Full Code Here

  private void createBrowser() {
    final Shell shell = new Shell( display, SWT.NO_TRIM );
    shell.setMaximized( true );
    shell.setLayout( new FillLayout() );
    final Browser browser = new Browser( shell, SWT.NONE );
    browser.setUrl( "http://www.eclipse.org" );
    shell.open();
  }
View Full Code Here

    private Integer lastScroll;

    private static Logger LOGGER = Logger.getLogger(MarkdownBrowserDefault.class.getPackage().getName());

    public MarkdownBrowserDefault(Composite parent) {
        browser = new Browser(parent, SWT.NONE);
        LOGGER.fine("browser type: " + browser.getBrowserType());
        browser.addProgressListener(this);
//        setDropTarget();
    }
View Full Code Here

        public void propertyChanged(Object source, int propertyId) {
          firePropertyChange(propertyId);
        }
      });
      _editor.createPartControl(sash);
      _browser = new Browser(sash,SWT.NONE);
      _wrapper.updatePreview();
    } catch (PartInitException e) {
      HTMLPlugin.logException(e);
      ErrorDialog.openError(getSite().getShell(),
        "Error creating nested text editor",null,e.getStatus()); //$NON-NLS-1$
View Full Code Here

    }
  }
 
  private void createPage1() {
    if(isFileEditorInput()){
      _browser = new Browser(getContainer(),SWT.NONE);
      int index = addPage(_browser);
      setPageText(index, HTMLPlugin.getResourceString("MultiPageHTMLEditor.Preview")); //$NON-NLS-1$
    }
  }
View Full Code Here

  }

  @Override
  public void createControl(Composite parent) {
    try {
      _browser = new Browser(parent, SWT.NONE);
      _browser.addStatusTextListener(this);
    }
    catch (Throwable t) {
      HTMLPlugin.logException(t);
    }
View Full Code Here

    // do nothing
  }

  public void createPartControl(Composite parent) {
    try {
      _browser = new Browser(parent, SWT.READ_ONLY);
    }
    catch (Exception e) {
      HtmlPreviewPlugin.getDefault().log("Failed to create Browser component.", e);
    }
  }
View Full Code Here

    labelFormData.left = new FormAttachment(0, leftMargin - 3);
    labelFormData.right = new FormAttachment(100, -rightMargin);
    labelFormData.top = new FormAttachment(_documentationText, 5);
    previewLabel.setLayoutData(labelFormData);

    _browser = new Browser(composite, SWT.NONE);
    FormData browserFormData = new FormData();
    browserFormData.left = new FormAttachment(0, leftMargin);
    browserFormData.right = new FormAttachment(100, -rightMargin);
    browserFormData.top = new FormAttachment(previewLabel, -3);
    browserFormData.bottom = new FormAttachment(100, -5);
View Full Code Here

  @Override
  public void createPartControl(Composite parent) {
    contentPanel = new Composite(parent, SWT.NONE);
    contentPanel.setLayout(stackLayout);
    dashboard = new DashboardPane(contentPanel);
    browser = new Browser(contentPanel, SWT.NONE);
    // Some day I will regret this, but it's currently the only way to have clickable links in the alert viewer
    browser.setJavascriptEnabled(true);
    linkClick = new LinkHandler(browser, getSite());
   
    getSite().getPage().addSelectionListener(new ISelectionListener() {
View Full Code Here

TOP

Related Classes of org.eclipse.swt.browser.Browser

Copyright © 2018 www.massapicom. 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.