Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Link


        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


        }
        gridData = new GridData();
        gridData.grabExcessHorizontalSpace = true;
        gridData.horizontalAlignment = GridData.FILL;
        droolsRuntimeCombo.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

    Control ncssStats = createNCSSStats(composite);
    ncssStats.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
   
    //createSeparator(composite);
   
    Link link = new Link(composite, SWT.WRAP);
    link.setLayoutData(new GridData(SWT.BEGINNING, SWT.END, true, true));
    link.setText(
      "Non-Commenting Source Statements (NCSS) are an estimate of the actual lines\n" +
      "of Java code. Cyclomatic Complexity Numbers (CCN), or McCabe metrics, are a\n" +
      "measure of code complexity.\n" +
      //"<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

     *            The data to apply to the page.
     */
    public PreferenceLinkArea(Composite parent, int style, final String pageId,
            String message, final IWorkbenchPreferenceContainer pageContainer,
            final Object pageData) {
        pageLink = new Link(parent, style);

        IPreferenceNode node = getPreferenceNode(pageId);
        String result;
        if (node == null) {
      result = NLS.bind(
View Full Code Here

      // location");
      workspaceHadoop.setSelection(true);

      updateHadoopDirLabelFromPreferences();

      openPreferences = new Link(group, SWT.NONE);
      openPreferences.setText("<a>Configure Hadoop install directory...</a>");
      openPreferences.setLayoutData(new GridData(GridData.END, GridData.CENTER,
          false, false));
      openPreferences.addSelectionListener(this);
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

                conf.ivySettingsPath = settingsText.getText();
                checkCompleted();
            }
        });

        generalSettingsLink = new Link(headerComposite, SWT.NONE);
        generalSettingsLink.setFont(composite.getFont());
        generalSettingsLink.setText("<A>Configure Workspace Settings...</A>");
        generalSettingsLink.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(),
View Full Code Here

    Label btnNewButton_1 = new Label(composite, SWT.FLAT);
    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>");
   
   
    Label label = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);
    label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 3, 1));
    new Label(composite, SWT.NONE);
   
    Label lblNewLabel_1 = new Label(composite, SWT.NONE);
    lblNewLabel_1.setText(RedisClient.i18nFile.getText(I18nFile.VERSION));
   
    Label lblNewLabel_2 = new Label(composite, SWT.NONE);
    lblNewLabel_2.setText("2.0.0");
    new Label(composite, SWT.NONE);
   
    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));
   
    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));
   
    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

     * @param nColumns
     *            number of columns to span
     * @since 3.1
     */
    protected void createCommentControls(Composite composite, int nColumns) {
        Link link = new Link(composite, SWT.NONE);
        link.setText(NewWizardMessages.NewTypeWizardPage_addcomment_description);
        link.addSelectionListener(new TypeFieldsAdapter());
        link.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, nColumns, 1));
        DialogField.createEmptySpace(composite);
        fAddCommentButton.doFillIntoGrid(composite, nColumns - 1);
    }
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.