Package org.eclipse.swt.widgets

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


      final Map data = new HashMap();
      data.put(DATA_NO_LINK, Boolean.TRUE);
      Link link= new Link(section, SWT.WRAP | SWT.MULTI | SWT.LEFT_TO_RIGHT);
      link.setLayoutData(GridDataFactory.fillDefaults().span(2, 1).indent(0, 0).hint(150, SWT.DEFAULT).create());
      link.setText(JSPUIMessages.VALIDATION_JAVA_NOTICE);
      link.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
          IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer)getContainer();
          container.openPage(JAVA_SEVERITY_PROPERTY_PAGE, data);
        }
      });
View Full Code Here


    // Create linked text to just to templates preference page
    Link link = new Link(parent, SWT.NONE);
    link.setText(XMLWizardsMessages.NewXMLTemplatesWizardPage_6);
    data = new GridData(SWT.END, SWT.FILL, true, false, 2, 1);
    link.setLayoutData(data);
    link.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        linkClicked();
      }
    });
View Full Code Here

    cbIsSlim3.setText("Use MVC of Slim3.");
    cbIsSlim3.setSelection(true);
   
    Link slim3Link = new Link(uig, SWT.NONE);
    slim3Link.setText("<a>http://sites.google.com/site/slim3appengine/</a>");
    slim3Link.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
          public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
            IWorkbenchBrowserSupport browserSupport =
              PlatformUI.getWorkbench().getBrowserSupport();
          try {
              IWebBrowser browser = browserSupport.getExternalBrowser();
View Full Code Here

    cbIsScenic3 = new Button(uig, SWT.RADIO);
    cbIsScenic3.setText("Use MVC of Slim3 with Scenic3.");

    Link link = new Link(uig, SWT.NONE);
    link.setText("You can create multiple action methods into a Page class. <a>http://code.google.com/p/scenic3/</a>");
        link.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
          public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
            IWorkbenchBrowserSupport browserSupport =
              PlatformUI.getWorkbench().getBrowserSupport();
          try {
              IWebBrowser browser = browserSupport.getExternalBrowser();
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

        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

        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

        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

        GridData gd = new GridData( SWT.FILL, SWT.BEGINNING, true, false );
        gd.widthHint = 150;
        colorsAndFontsLink.setLayoutData( gd );
        colorsAndFontsLink
            .setText( "Default colors and fonts settings can be configured on the <a>Colors and Fonts</a> preference page." );
        colorsAndFontsLink.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                PreferencesUtil.createPreferenceDialogOn( getShell(),
                    "org.apache.directory.studio.apacheds.ColorsAndFontsPage", null, null ); //$NON-NLS-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.