Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Link


        }
        gridData = new GridData();
        gridData.grabExcessHorizontalSpace = true;
        gridData.horizontalAlignment = GridData.FILL;
        jBPMRuntimeCombo.setLayoutData(gridData);
        Link changeWorkspaceSettingsLink = createLink(composite, "Configure Workspace Settings...");
        changeWorkspaceSettingsLink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));

    Composite subPanel = new Composite(composite, SWT.NONE);
    gridLayout = new GridLayout();
        gridLayout.numColumns = 2;
        subPanel.setLayout(gridLayout);
View Full Code Here


        button.setLayoutData(data);
        return button;
    }
 
  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

    welcomeLabel = new Label(composite, SWT.NONE);
    welcomeLabel.setLayoutData(new GridData(GridData.FILL));
    ((GridData) welcomeLabel.getLayoutData()).horizontalSpan = 1;
    welcomeLabel.setText("Use this wizard to translate your Android project's string resources with Google Translate\u2122");

    supportLink = new Link(composite, SWT.NONE);
    supportLink.setLayoutData(new GridData(GridData.FILL_BOTH));
    ((GridData) supportLink.getLayoutData()).horizontalSpan = 1;
    supportLink.setText("send feedback to <a href=\"native\">support@cicadalane.com</a>.");
    supportLink.addListener (SWT.Selection, new Listener () {
      public void handleEvent(Event event) {
View Full Code Here

    contents.setLayout(new GridLayout(3, false));
    if (isPropertyPage()) {
      btnEnableProjectSettings = new Button(contents, SWT.CHECK);
      btnEnableProjectSettings.setText(enableProjectSettings);

      lnkEnableWorkspaceSettings = new Link(contents, SWT.NONE);
      lnkEnableWorkspaceSettings.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
      lnkEnableWorkspaceSettings.setText("<a>" + configureWorkspaceSettings + "</a>");

      Label label = new Label(contents, SWT.SEPARATOR | SWT.HORIZONTAL);
      label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
View Full Code Here

public class EditorPreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
  @Override protected Control createContents(Composite parent) {
    Composite contents = new Composite(parent, NONE);
    contents.setLayout(new GridLayout(1, false));

    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

        String key= fAppearanceColorListModel[i][1];
        PreferenceConverter.setValue(fOverlayStore, key, fAppearanceColorEditor.getColorValue());
      }
    });
   
    Link link= new Link(appearanceComposite, SWT.NONE);
    link.setText(TextEditorMessages.TextEditorPreferencePage_colorsAndFonts_link);
    link.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        PreferencesUtil.createPreferenceDialogOn(getShell(), "org.eclipse.ui.preferencePages.ColorsAndFonts", null, null); //$NON-NLS-1$
      }
    });
    // TODO replace by link-specific tooltips when
    // bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=88866 gets fixed
    link.setToolTipText(TextEditorMessages.TextEditorPreferencePage_colorsAndFonts_link_tooltip);
   
    GridData gridData= new GridData(SWT.FILL, SWT.BEGINNING, true, false);
    gridData.widthHint= 150; // only expand further if anyone else requires it
    gridData.horizontalSpan= 2;
    link.setLayoutData(gridData);
   
    addFiller(appearanceComposite, 2);
   
    appearanceComposite.layout();
   
View Full Code Here

   * @param wHint
   * @return
   */
  protected Link addLink(String labelValue, Composite parent, boolean fillHorizontal, int colSpan, int wHint) {
    // new project label
    Link link = new Link(parent, SWT.NONE);
    link.setText(labelValue);
    link.setFont(parent.getFont());
    link.setLayoutData(createGridData(fillHorizontal, colSpan, wHint));
    link.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event event) {
        openURL(event.text);
      }
    });
    return link;
View Full Code Here

    final Label proyectoFinDeLabel_1_1_1_1_1 = new Label(shell, SWT.NONE);
    proyectoFinDeLabel_1_1_1_1_1.setBounds(10, 108, 264, 13);
    proyectoFinDeLabel_1_1_1_1_1.setText(ApplicationResources.getString("HelpDialog.8")); //$NON-NLS-1$

    final Link eclipseorgLink = new Link(shell, SWT.NONE);
    eclipseorgLink.setText(ApplicationResources.getString("HelpDialog.9")); //$NON-NLS-1$
    eclipseorgLink.setBounds(10, 137, 71, 13);
    //
  }
View Full Code Here

        FormData fileViewerIconContainerLabelLData = new FormData();
        fileViewerIconContainerLabelLData.left = new FormAttachment(0, 1000, 0);
        fileViewerIconContainerLabelLData.top = new FormAttachment(0, 1000, 0);
        fileViewerIconContainerLabel.setLayoutData(fileViewerIconContainerLabelLData);

        fileDescriptionLinkCLabel = new Link(this, SWT.LEFT);
        fileDescriptionLinkCLabel.setText("<a>"+fileDescription+"</a>");
        FormData fileDescriptionLinkCLabelLData = new FormData();
        int tmpLeftAlign = 10;
        try {
            tmpLeftAlign = image.getBounds().width+5;
View Full Code Here

                conf.ivySettingsPath = settingsText.getSettingsPath();
                settingsUpdated();
            }
        });

        mainGeneralSettingsLink = new Link(headerComposite, SWT.NONE);
        mainGeneralSettingsLink.setFont(headerComposite.getFont());
        mainGeneralSettingsLink.setText("<A>Configure Workspace Settings...</A>");
        mainGeneralSettingsLink.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(),
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.