Package org.eclipse.swt.browser

Examples of org.eclipse.swt.browser.LocationListener


        }
      }
    });

    /* Listen to Location-Changes */
    fBrowser.addLocationListener(new LocationListener() {
      public void changed(LocationEvent event) {
        if (event.top && useExternalBrowser())
          fBlockNavigation = true;
      }

View Full Code Here


    fBrowser = browser;
    registerListeners();
  }

  private void registerListeners() {
    LocationListener locationListener = new LocationAdapter() {
      @Override
      public void changed(LocationEvent event) {
        fNavigationToolBarManager.find(BACK_ACTION).update(IAction.ENABLED);
        fNavigationToolBarManager.find(FORWARD_ACTION).update(IAction.ENABLED);
      }
View Full Code Here

        }
      }
    });

    /* Listen to Location-Changes */
    fBrowser.addLocationListener(new LocationListener() {
      public void changed(LocationEvent event) {
        if (event.top && useExternalBrowser())
          fBlockNavigation = true;
      }

View Full Code Here

    fBrowser = browser;
    registerListeners();
  }

  private void registerListeners() {
    LocationListener locationListener = new LocationAdapter() {
      @Override
      public void changed(LocationEvent event) {
        fNavigationToolBarManager.find(BACK_ACTION).update(IAction.ENABLED);
        fNavigationToolBarManager.find(FORWARD_ACTION).update(IAction.ENABLED);
      }
View Full Code Here

    /* Listen to Open-Window-Changes */
    fBrowser.addOpenWindowListener(getOpenWindowListener());

    /* Listen to Location-Changes */
    fBrowser.addLocationListener(new LocationListener() {
      public void changed(LocationEvent event) {

        /* The website is fully loaded and external navigation is supported from now on. */
        if (event.top) {

View Full Code Here

    fBrowser = browser;
    registerListeners();
  }

  private void registerListeners() {
    LocationListener locationListener = new LocationAdapter() {
      @Override
      public void changed(LocationEvent event) {
        fNavigationToolBarManager.find(BACK_ACTION).update(IAction.ENABLED);
        fNavigationToolBarManager.find(FORWARD_ACTION).update(IAction.ENABLED);
        setBusy(false);
View Full Code Here

            browser.refresh();
          else if (item == itemGo)
            browser.setUrl(location.getText());
        }
      };
      browser.addLocationListener(new LocationListener() {
        public void changed(LocationEvent event) {
          busy = true;
          if (event.top)
            location.setText(event.location);
        }
View Full Code Here

                      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

      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

            return "".hashCode(); //$NON-NLS-1$
        return getID().hashCode();
    }

    public LocationListener getListener() {
        LocationListener blah = null;
        try {
            blah = (LocationListener)element.createExecutableExtension("listener"); //$NON-NLS-1$
        } catch (CoreException e) {
            //
        }
View Full Code Here

TOP

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

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.