Package org.eclipse.swt.widgets

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


        composite.setLayout( layout );
        composite.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );

        String text = Messages.getString( "LdifEditorPreferencePage.LinkToTextEditors" ); //$NON-NLS-1$
        Link link = BaseWidgetUtils.createLink( composite, text, 1 );
        link.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                PreferencesUtil.createPreferenceDialogOn( getShell(),
                    "org.eclipse.ui.preferencePages.GeneralTextEditor", null, null ); //$NON-NLS-1$
View Full Code Here


                    "org.eclipse.ui.preferencePages.GeneralTextEditor", null, null ); //$NON-NLS-1$
            }
        } );
        String text2 = Messages.getString( "LdifEditorPreferencePage.LinkToTextFormats" ); //$NON-NLS-1$
        Link link2 = BaseWidgetUtils.createLink( composite, text2, 1 );
        link2.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                PreferencesUtil.createPreferenceDialogOn( getShell(), LdifEditorConstants.PREFERENCEPAGEID_TEXTFORMATS,
                    null, null ); //$NON-NLS-1$
View Full Code Here

    private Link createLink(Composite composite, String text) {
        Link link= new Link(composite, SWT.NONE);
        link.setFont(composite.getFont());
        link.setText("<A>" + text + "</A>")//$NON-NLS-1$//$NON-NLS-2$
        link.addSelectionListener(new SelectionListener() {
            public void widgetSelected(SelectionEvent e) {
                openLink();
            }
            public void widgetDefaultSelected(SelectionEvent e) {
                openLink();
View Full Code Here

    private Link createLink(Composite composite, String text) {
        Link link= new Link(composite, SWT.NONE);
        link.setFont(composite.getFont());
        link.setText("<A>" + text + "</A>")//$NON-NLS-1$//$NON-NLS-2$
        link.addSelectionListener(new SelectionListener() {
            public void widgetSelected(SelectionEvent e) {
                openLink();
            }
            public void widgetDefaultSelected(SelectionEvent e) {
                openLink();
View Full Code Here

      //"<a href=\"http://en.wikipedia.org/wiki/Cyclomatic_complexity\">Cyclomatic Complexity Numbers</a> (CCN), or McCabe metrics, are a measure of code complexity.\n" +
      "\n" +
      "Metrics are calculated using the JavaNCSS library. JavaNCSS is copyright Chr.\n" +
      "Clemens Lee and licensed under the GNU General Public License.\n" +
      "<a>" + NCSS_URL + "</a>");
    link.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent event) {
        openURL(event.text);
      }
    });
   
View Full Code Here

        // some spacer
        new Composite(composite, SWT.NONE);

        Link select = new Link(composite, SWT.PUSH);
        select.setText("<A>All</A>/<A>None</A>");
        select.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                if (e.text.equals("All") && md != null) {
                    confTableViewer.setCheckedElements(md.getConfigurations());
                } else {
                    confTableViewer.setCheckedElements(new Configuration[0]);
View Full Code Here

    btnNewButton_1.setBounds(0, 0, 80, 27);
    btnNewButton_1.setImage(scaled050);
   
   
    Link lblNewLabel = new Link(composite, SWT.NONE);
    lblNewLabel.addSelectionListener(openUrl);
    lblNewLabel.setFont(SWTResourceManager.getFont("Arial", 20, SWT.NORMAL));
    lblNewLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    lblNewLabel.setBounds(0, 0, 61, 17);
    lblNewLabel.setText("<a href=\"https://github.com/caoxinyu/RedisClient\">RedisClient for Windows</a>");
   
View Full Code Here

   
    Label lblNewLabel_3 = new Label(composite, SWT.NONE);
    lblNewLabel_3.setText(RedisClient.i18nFile.getText(I18nFile.DEVELOPER));
   
    Link link = new Link(composite, SWT.NONE);
    link.addSelectionListener(openUrl);
    link.setText("<a href=\"mailto:caoxinyu@gmail.com\">" + RedisClient.i18nFile.getText(I18nFile.CAOXINYU) + "</a>");
    new Label(composite, SWT.NONE);
   
    Label lblReportIssue = new Label(composite, SWT.NONE);
    lblReportIssue.setText(RedisClient.i18nFile.getText(I18nFile.ISSUE));
View Full Code Here

   
    Label lblReportIssue = new Label(composite, SWT.NONE);
    lblReportIssue.setText(RedisClient.i18nFile.getText(I18nFile.ISSUE));
   
    Link link_1 = new Link(composite, SWT.NONE);
    link_1.addSelectionListener(openUrl);
    link_1.setText("<a href=\"https://github.com/caoxinyu/redisclient/issues?state=open\">" + RedisClient.i18nFile.getText(I18nFile.CLICK) + "</a>");
    new Label(composite, SWT.NONE);
   
    Label lblStar = new Label(composite, SWT.NONE);
    lblStar.setText(RedisClient.i18nFile.getText(I18nFile.STAR));
View Full Code Here

   
    Label lblStar = new Label(composite, SWT.NONE);
    lblStar.setText(RedisClient.i18nFile.getText(I18nFile.STAR));
   
    Link link_2 = new Link(composite, SWT.NONE);
    link_2.addSelectionListener(openUrl);
    link_2.setText("<a href=\"https://github.com/caoxinyu/RedisClient/stargazers\">" + RedisClient.i18nFile.getText(I18nFile.CLICK) + "</a>");
   
    Composite composite_1 = new Composite(shell, SWT.NONE);
    composite_1.setLayout(new FillLayout(SWT.HORIZONTAL));
    composite_1.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));
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.