Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Link


        Composite composite = new Composite( parent, SWT.NONE );
        composite.setLayout( new GridLayout() );
        composite.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) );

        // Colors And Fonts Link
        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 = Messages.getString( "ExportLdifToWizardPage.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.LDIF_TAB ).open();
View Full Code Here

  }

  private Control getTabAboutControl(TabFolder tabFolder) {

    link1 = new Link(tabFolder, SWT.NONE);

    String text = "\n\u0baa\u0ba9\u0bcd\u0bae\u0bca\u0bb4\u0bbf \u0bb5\u0bbe\u0baf\u0bbf\u0bb2\u0bcd" +
        "\n\u0cb5\u0cbf\u0cb6\u0ccd\u0cb5 \u0cb5\u0cbe\u0c98\u0ccd\u0cae\u0cc1\u0c96"
        +"\n\nA Multilingual Indic Keyboard Interface\n\n"
        + "\u00A9 MILE Lab, Indian Institute of Science, Bangalore. 2009.\n\n"
View Full Code Here

  }

  private Control getTabAuthorsControl(TabFolder tabFolder) {

    link2 = new Link(tabFolder, SWT.NONE);
    String text = "\n\nAbhinava Shivakumar S.\n"
        + "<a href=\"http://www.linkedin.com/in/abhinavask\">Webpage</a>\n\n"
        + "Akshay Rao\n<a href=\"mailto:u.akshay@gmail.com\">u.akshay@gmail.com</a>\n\n"
        + "Arun S.\n<a href=\"http://www.linkedin.com/in/aruns87\">Webpage</a>\n\n"
        + "Revati P. Junnarkar\n<a href=\"mailto:revengr@gmail.com\">revengr@gmail.com</a>";
View Full Code Here

    return link2;
  }

  private Control getTabThanksControl(TabFolder tabFolder) {

    link3 = new Link(tabFolder, SWT.NONE);
    String text = "\n"
        + "Dr. A. G. Ramakrishnan\nProfessor\n"
        + "Department of Electrical Engineering\n"
        + "Indian Institute of Science\n"
        + "Bangalore 560 012, INDIA\n"
View Full Code Here

    return link3;
  }

  private Control getTabLicenseControl(TabFolder tabFolder) {

    link4 = new Link(tabFolder, SWT.NONE);
    String text = "\n\n\n\u00A9 Copyright 2009, MILE Lab, Indian Institute of Science\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a> . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language overning permissions and limitations under the License.";
    link4.setText(text);
    return link4;
  }
View Full Code Here

//        layoutData.heightHint=ScaleRatioLabel.STATUS_LINE_HEIGHT;
        layoutData.horizontalIndent=0;
//        layoutData.verticalIndent=0;       
        icon.setLayoutData( layoutData);
       
        link = new Link(group, SWT.CENTER );
        link.addListener(SWT.Selection,listener);
        layoutData  = new GridData(SWT.RIGHT,SWT.CENTER,false,true);
//        layoutData.heightHint=ScaleRatioLabel.STATUS_LINE_HEIGHT;
        layoutData.horizontalIndent=0;
//        layoutData.verticalIndent=0;       
View Full Code Here

   
    l = new Label(banner, SWT.WRAP);
    l.setText("From:");
    l.setFont(boldFont);
   
    final Link link = new Link(banner, SWT.NONE);
    link.setText("<a>nicole@mail.org</a>");
    link.addSelectionListener(new SelectionAdapter() {   
      public void widgetSelected(SelectionEvent e) {
        MessageDialog.openInformation(getSite().getShell(), "Not Implemented", "Imagine the address book or a new message being created now.");
      }   
    });
   
View Full Code Here

        composite.setLayout(layout);
        composite.setLayoutData(new GridData(GridData.FILL_BOTH));
        applyDialogFont(composite);

        // add issue tracker instructions with relevant links
        submitIssueLink = new Link(composite, SWT.WRAP | SWT.READ_ONLY | SWT.MULTI);
        GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, false);
        gridData.horizontalSpan = 2;
        submitIssueLink.setBackground(getShell().getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
        submitIssueLink.setLayoutData(gridData);
        submitIssueLink.setText(Messages.SubmitIssueDialog_instructions);
View Full Code Here

    Composite linkPnl = new Composite(main, SWT.NONE);
    linkPnl.setLayout(new GridLayout(4, false));
    linkPnl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 3, 1));
   
   
    Link lnk = new Link(linkPnl, SWT.NONE);
    lnk.setText("<a>" + Messages.SingleBandEditorPage_ReverseColorLabel + "</a>"); //$NON-NLS-1$ //$NON-NLS-2$
    lnk.addSelectionListener(new SelectionAdapter() {
     
      @Override
      public void widgetSelected(SelectionEvent e) {
        reverseColors = !reverseColors;
        if (getCurrentSelection() != null){
          Object x = ((IStructuredSelection)cmbPalette.getSelection()).getFirstElement();
          if (x instanceof BrewerPalette){
            BrewerPalette palette = (BrewerPalette) ((IStructuredSelection)cmbPalette.getSelection()).getFirstElement();
            getCurrentSelection().setColorPalette(palette, reverseColors);
          }else if (x instanceof PredefinedColorRule){
            ColorMap cm = ((PredefinedColorRule)x).getColorMap();
            if (cm != null && getCurrentSelection() != null){
              //flip colors
              if (reverseColors){
                ColorMap reverse = new ColorMapImpl();
                for (int i = 0; i < cm.getColorMapEntries().length; i ++){
                  ColorMapEntry entry = cm.getColorMapEntries()[i];
                  ColorMapEntry clone = new ColorMapEntryImpl();
                  clone.setColor(cm.getColorMapEntry(cm.getColorMapEntries().length - 1 - i).getColor());
                  clone.setLabel(entry.getLabel());
                  clone.setQuantity(entry.getQuantity());
                  clone.setOpacity(entry.getOpacity());
                  reverse.addColorMapEntry(clone);
                 
                }
                cm = reverse;
              }
             
              getCurrentSelection().init(cm);
            }
          }
        }
      }
    });
   
    Label lblSep = new Label(linkPnl, SWT.SEPARATOR | SWT.VERTICAL);
    GridData gd = new GridData(SWT.FILL, SWT.FILL, false, false);
    gd.heightHint = 10;
    lblSep.setLayoutData(gd);
   
    lnk = new Link(linkPnl, SWT.NONE);
    lnk.setText("<a>" + Messages.SingleBandEditorPage_FormatExportLink + "</a>")//$NON-NLS-1$ //$NON-NLS-2$
    lnk.addSelectionListener(new SelectionAdapter() {
     
      @Override
      public void widgetSelected(SelectionEvent e) {
        getFormat();
      }
    });
   
    Link lnk2 = new Link(linkPnl, SWT.NONE);
    lnk2.setText("<a>" + Messages.SingleBandEditorPage_OneClickExportLink + "</a>"); //$NON-NLS-1$ //$NON-NLS-2$
    lnk2.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));
    lnk2.setToolTipText(Messages.SingleBandEditorPage_OneClickTooltip);
    lnk2.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        oneClickExport();
      }
    });
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Link

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.