Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Link.addListener()


        Link link = new Link(commonPanel, SWT.NONE);
        link.setFont(font);
        link.setText(" - <a>visit homepage</a>");
        link.setToolTipText("You need just a sense of humor!");
        link.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                handleUrlClick("http://andrei.gmxhome.de/bytecode");
            }
        });
View Full Code Here


        link = new Link(commonPanel, SWT.NONE);
        link.setFont(font);
        link.setText(" - <a>report issue or feature request</a>");
        link.setToolTipText("You need a valid account at ow2.org!");
        link.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                handleUrlClick("http://forge.ow2.org/tracker/?group_id=23");
            }
        });
View Full Code Here

        link = new Link(commonPanel, SWT.NONE);
        link.setFont(font);
        link.setText(" - <a>add to your favorites at Eclipse MarketPlace</a>");
        link.setToolTipText("You need a valid bugzilla account at Eclipse.org!");
        link.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                handleUrlClick("http://marketplace.eclipse.org/content/bytecode-outline");
            }
        });
View Full Code Here

        link = new Link(commonPanel, SWT.NONE);
        link.setFont(font);
        link.setText(" - <a>make a donation to support plugin development</a>");
        link.setToolTipText("You do NOT need a PayPal account!");
        link.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                handleUrlClick("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R5SHJLNGUXKHU");
            }
        });
    }
View Full Code Here

        viewer.addCheckStateListener(this);
        resourcesFilter = new ExcludedResourcesFilter();
        viewer.addFilter(resourcesFilter);
        viewer.setInput(base);

        link.addListener(SWT.Selection, new Listener()
        {
            public void handleEvent(Event event)
            {
                if ("excludedResourcePrefs".equals(event.text))
                {
View Full Code Here

        imgControl.setBackgroundImage(imageCache.get(WWControl.IMG_DEMIS));
       
        Link link = new Link(control, SWT.BORDER);
        link.setText(Messages.Wizard_Ww_Example_Demis_Link);
        link.setLayoutData(new RowData(400, 40));
        link.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                Program.launch(Messages.Wizard_Ww_Example_Demis_LinkUrl);
            }
        });
       
View Full Code Here

        text.setText(Messages.Wizard_Osm_Info);
       
        Link link = new Link(control, SWT.BORDER);
        link.setText(Messages.Wizard_Osm_InfoLink);
        link.setLayoutData(new RowData(400, 40));
        link.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                Program.launch("http://www.openstreetmap.org/"); //$NON-NLS-1$
            }
        });
View Full Code Here

       
        //region Description
        Link text = new Link(control, SWT.HORIZONTAL | SWT.WRAP);
        text.setLayoutData(new RowData(400, 110));
        text.setText(Messages.Wizard_CS_Description);
        text.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                Program.launch(Messages.Wizard_CS_UrlTileNames);
            }
        });
        //endregion
View Full Code Here

        text.setText(Messages.Wizard_Nasa_Info);
       
        Link link = new Link(control, SWT.BORDER);
        link.setText(Messages.Wizard_Nasa_InfoLink);
        link.setLayoutData(new RowData(400, 40));
        link.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                Program.launch("http://onearth.jpl.nasa.gov/tiled.html"); //$NON-NLS-1$
            }
        });
View Full Code Here

    Link link = new Link(contents, SWT.NONE);
    GridData gridData = new GridData(SWT.FILL, SWT.BEGINNING, true, false);
    gridData.widthHint = 150; // only expand further if anyone else requires it
    link.setLayoutData(gridData);
    link.setText(header);
    link.addListener(SWT.Selection, new Listener() {
      @Override public void handleEvent(Event event) {
        String text = event.text;
        createPreferenceDialogOn(getShell(), text, null, null);
      }
    });
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.