Package org.eclipse.swt.widgets

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


    Composite pageComponent = createComposite(parent, 2);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(pageComponent, IHelpContextIds.XML_PREFWEBX_STYLES_HELPID);

    Link link = new Link(pageComponent, SWT.WRAP);
    link.setText(SSEUIMessages.SyntaxColoring_Link);
    link.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        PreferencesUtil.createPreferenceDialogOn(parent.getShell(), e.text, null, null);
      }
    });
View Full Code Here


        BaseWidgetUtils.createSpacer( composite, 3 );

        BaseWidgetUtils.createSpacer( composite, 1 );
        String text = "See <a>Text Formats</a> for CSV file format preferences.";
        Link link = BaseWidgetUtils.createLink( composite, text, 2 );
        link.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                PreferencesUtil.createPreferenceDialogOn( getShell(), TextFormatsPreferencePage.class.getName(), null,
                    TextFormatsPreferencePage.CSV_TAB ).open();
View Full Code Here

        BaseWidgetUtils.createSpacer( composite, 3 );

        BaseWidgetUtils.createSpacer( composite, 1 );
        String text = "See <a>Text Formats</a> for LDIF file format preferences.";
        Link link = BaseWidgetUtils.createLink( composite, text, 2 );
        link.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                PreferencesUtil.createPreferenceDialogOn( getShell(), TextFormatsPreferencePage.class.getName(), null,
                    TextFormatsPreferencePage.LDIF_TAB ).open();
View Full Code Here

        Link colorsAndFontsLink = new Link( composite, SWT.NONE );
        GridData gd = new GridData( SWT.FILL, SWT.BEGINNING, true, false );
        gd.widthHint = 150;
        colorsAndFontsLink.setLayoutData( gd );
        colorsAndFontsLink.setText( Messages.getString( "ServerLogsPage.DefaultColorsAndFontsSettings" ) ); //$NON-NLS-1$
        colorsAndFontsLink.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                PreferencesUtil.createPreferenceDialogOn( getShell(), ApacheDsPlugin.getDefault().getPluginProperties()
                    .getString( "Pref_ColorsAndFontsPage_id" ), null, null ); //$NON-NLS-1$
View Full Code Here

        BaseWidgetUtils.createSpacer( composite, 3 );

        BaseWidgetUtils.createSpacer( composite, 1 );
        String text = "See <a>Text Formats</a> for Excel file format preferences.";
        Link link = BaseWidgetUtils.createLink( composite, text, 2 );
        link.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                PreferencesUtil.createPreferenceDialogOn( getShell(), TextFormatsPreferencePage.class.getName(), null,
                    TextFormatsPreferencePage.XLS_TAB ).open();
View Full Code Here

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

        String text = "See <a>Text Editors</a> for the general text editor preferences.";
        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 = "See <a>Text Formats</a> for LDIF format preferences.";
        Link link2 = BaseWidgetUtils.createLink( composite, text2, 1 );
        link2.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                PreferencesUtil.createPreferenceDialogOn( getShell(), TextFormatsPreferencePage.class.getName(), null,
                    null ); //$NON-NLS-1$
View Full Code Here

public class UIUtil {
 
  public static Link createLink(Composite parent,int style ,String text){
    Link link = new Link( parent, style );
    link.setText(text);
    link.addSelectionListener(new OpenUrlListener());
    return link;
  }
 
  private static class OpenUrlListener implements SelectionListener{
    public void widgetSelected(SelectionEvent e) {
View Full Code Here

        downloadLink.setText("You can download GWT here <a href=\""
            + Constants.GWT_DOWNLOAD_URL
            + "\">"
            + Constants.GWT_DOWNLOAD_URL
            + "</a>");
        downloadLink.addSelectionListener(new SelectionAdapter() {
          @Override
          public void widgetSelected(SelectionEvent e) {
            Program.launch(Constants.GWT_DOWNLOAD_URL);
          }
        });
View Full Code Here

        BaseWidgetUtils.createSpacer( composite, 3 );

        BaseWidgetUtils.createSpacer( composite, 1 );
        String text = Messages.getString( "ExportOdfToWizardPage.SeeTextFormats" ); //$NON-NLS-1$
        Link link = BaseWidgetUtils.createLink( composite, text, 2 );
        link.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                PreferencesUtil.createPreferenceDialogOn( getShell(), BrowserUIConstants.PREFERENCEPAGEID_TEXTFORMATS,
                    null, TextFormatsPreferencePage.ODF_TAB ).open();
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.