Package org.eclipse.swt.browser

Examples of org.eclipse.swt.browser.Browser


    }
  }
 
  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
    protected void createPages() {
        sourceEditor = new HTMLSourceEditor(new HTMLConfiguration(HTMLPlugin.getDefault().getColorProvider()));
        int pageNumber = 0;
        try {
            browser = new Browser(getContainer(), SWT.NULL);
            browser.addStatusTextListener(this);
            browser.addOpenWindowListener(new BrowserWindowHelper(getContainer().getDisplay()));
            addPage(browser);
            setPageText(pageNumber++, WYSIWYGPlugin.getResourceString("wysiwyg.design.tab_name"));
        } catch (Throwable th) {
View Full Code Here

  public void open(WindowEvent event) {
    if (!event.required) return;

    final Shell shell = new Shell(display);
    shell.setLayout(new FillLayout());
    Browser browser = new Browser(shell, SWT.NONE);
    browser.addOpenWindowListener(this);
    browser.addVisibilityWindowListener(this);
    browser.addCloseWindowListener(this);
    browser.addTitleListener(new TitleListener() {

      public void changed(TitleEvent event) {
        shell.setText(event.title);
      }
     
View Full Code Here

    });
    event.browser = browser;
  }

  public void hide(WindowEvent event) {
    Browser browser = (Browser) event.widget;
    Shell shell = browser.getShell();
    shell.setVisible(false);
  }
View Full Code Here

    Shell shell = browser.getShell();
    shell.setVisible(false);
  }

  public void show(WindowEvent event) {
    Browser browser = (Browser) event.widget;
    Shell shell = browser.getShell();
    if (event.location != null)
      shell.setLocation(event.location);
    if (event.size != null) {
      Point size = event.size;
      shell.setSize(shell.computeSize(size.x, size.y));
View Full Code Here

    }
    shell.open();
  }

  public void close(WindowEvent event) {
    Browser browser = (Browser) event.widget;
    Shell shell = browser.getShell();
    shell.close();
  }
View Full Code Here

      createStyledTextChatHistory();
      //createFormChatHistory();
      return;
    }
    try {
      chatHistory = new Browser(topComposite, SWT.NONE);
    } catch (SWTError error) {
      createStyledTextChatHistory();
      //createFormChatHistory();
      return;
    }
View Full Code Here

  @Override
  public void createControl(Composite parent) {
   
    parent.setLayout(new GridLayout(1, false));
   
    Browser browser = new Browser(parent, SWT.BORDER);
    browser.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true))
   
    browser.setText(_data);
   
    browser.addLocationListener(new LocationListener() {
      public void changed(LocationEvent event) {
      }
      public void changing(LocationEvent event) {
        // Cancel default link processing.
        event.doit = false;
View Full Code Here

    _homeAction.setEnabled(false);
    _forwardAction.setEnabled(false);
  }
 
  private void initializeBrowser() {
    _browser = new Browser(_parent, SWT.NONE);          
    setLocation("index.html"); //$NON-NLS-1$
   
    _browser.addLocationListener(new LocationListener() {
      public void changed(LocationEvent event) {
        updateActionState();
View Full Code Here

    });
    for (IBrowserConfigurationPart p : parts) {
      p.createPartControl(tman, this);
    }
    tman.createControl(toolComposite);
    browser = new Browser(parent, SWT.NONE);
    browser.setLayoutData(GridDataFactory.fillDefaults().grab(true, true)
        .create());
    BroswserEditorInput br = (BroswserEditorInput) getEditorInput();
    browser.setUrl(br.uri);
    ts.addSelectionListener(new SelectionListener() {
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.