Examples of Hyperlink


Examples of org.eclipse.ui.forms.widgets.Hyperlink

          hyperLink = item.getOffering().getDocumentationUrl();
        }

        // final String hyperLinkFinal = hyperLink;

        final Hyperlink hyperLinkLabel = new Hyperlink(comp, SWT.WRAP);
        hyperLinkLabel.setBackground(c);
        hyperLinkLabel.setText(""); //$NON-NLS-1$
        hyperLinkLabel.setVisible(false);
        // if(hyperLink != null) {
        // hyperLinkLabel.setText("(link)");
        // hyperLinkLabel.setForeground(comp.getDisplay().getSystemColor(SWT.COLOR_DARK_BLUE));
        // hyperLinkLabel.setUnderlined(true);
        // hyperLinkLabel.addHyperlinkListener(new HyperlinkAdapter() {
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Hyperlink

      }

      y += p.y + GAP;

      // hyperlink
      Hyperlink localLink = (Hyperlink) children[i + 3];
      p = localLink.computeSize(SWT.DEFAULT, SWT.DEFAULT, flushCache);
      if (apply) {
        localLink.setBounds(x + w - p.x - 2, y, p.x, p.y);
      }

      // description
      Label localDescr = (Label) children[i + 2];
      p = localDescr.computeSize(w - IMG - GAP * 2, SWT.DEFAULT, flushCache);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Hyperlink

        Composite body = createTableWrapBody(1, toolkit);

        toolkit.createLabel(body, "Tools to help manage this project:");

        Hyperlink launch = toolkit.createHyperlink(body, "Resolve missing dependencies",
            SWT.NULL);
        launch.setHref("resolve");
        launch.addHyperlinkListener(this);

        Hyperlink debug = toolkit.createHyperlink(body, "Prune unused dependencies",
            SWT.NULL);
        debug.setHref("prune");
        debug.addHyperlinkListener(this);
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Hyperlink

    protected void createSection(Section section, FormToolkit toolkit)
    {
        setTitle("Project Content");

        Composite body = createTableWrapBody(2, toolkit);
        Hyperlink link = toolkit.createHyperlink(body, "Contents:", SWT.NONE);
        link.setHref(ContentsForm.PAGE_ID);
        link.addHyperlinkListener(this);
        toolkit.createLabel(body, "Manage the content that this bundle provides.");

        link = toolkit.createHyperlink(body, "Dependencies:", SWT.NONE);
        link.setHref(DependenciesForm.PAGE_ID);
        link.addHyperlinkListener(this);
        toolkit.createLabel(body,
            "Manage the dependencies that this bundle needs to run.");

        link = toolkit.createHyperlink(body, "Exports:", SWT.NONE);
        link.setHref(ExportsForm.PAGE_ID);
        link.addHyperlinkListener(this);
        toolkit.createLabel(body, "Manage the resources that this bundle exports.");
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Hyperlink

        Composite body = createTableWrapBody(1, toolkit);

        toolkit.createLabel(body,
            "Test this project by launching a separate Newton application:");

        Hyperlink launch = toolkit.createHyperlink(body, "Launch a newton container",
            SWT.NULL);
        launch.setHref("launchShortcut.run.org.cauldron.sigil.launching.shortcut");
        launch.addHyperlinkListener(this);

        Hyperlink debug = toolkit.createHyperlink(body, "Debug a newton container",
            SWT.NULL);
        debug.setHref("launchShortcut.debug.org.cauldron.sigil.launching.shortcut");
        debug.addHyperlinkListener(this);
    }
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Hyperlink

                for ( String mrdName : otherMrdNames )
                {
                    if ( getSchema().hasMatchingRuleDescription( mrdName ) )
                    {
                        MatchingRule mrd = getSchema().getMatchingRuleDescription( mrdName );
                        Hyperlink otherMatchLink = toolkit.createHyperlink( otherMatchClient, SchemaUtils
                            .toString( mrd ), SWT.WRAP );
                        otherMatchLink.setHref( mrd );
                        otherMatchLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                        otherMatchLink.setUnderlined( true );
                        otherMatchLink.setEnabled( true );
                        otherMatchLink.addHyperlinkListener( this );
                    }
                    else
                    {
                        Hyperlink otherMatchLink = toolkit.createHyperlink( otherMatchClient, mrdName, SWT.WRAP );
                        otherMatchLink.setHref( null );
                        otherMatchLink.setUnderlined( false );
                        otherMatchLink.setEnabled( false );
                    }
                }
            }
            else
            {
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Hyperlink

                supertypeSection.setText( NLS.bind( Messages
                    .getString( "AttributeTypeDescriptionDetailsPage.SupertypeCount" ), new Object[] { 1 } ) ); //$NON-NLS-1$
                if ( getSchema().hasAttributeTypeDescription( superType ) )
                {
                    AttributeType supAtd = getSchema().getAttributeTypeDescription( superType );
                    Hyperlink superLink = toolkit.createHyperlink( superClient, SchemaUtils.toString( supAtd ),
                        SWT.WRAP );
                    superLink.setHref( supAtd );
                    superLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                    superLink.setUnderlined( true );
                    superLink.setEnabled( true );
                    superLink.addHyperlinkListener( this );
                }
                else
                {
                    Hyperlink superLink = toolkit.createHyperlink( superClient, superType, SWT.WRAP );
                    superLink.setHref( null );
                    superLink.setUnderlined( false );
                    superLink.setEnabled( false );
                }
            }
            else
            {
                supertypeSection.setText( NLS.bind( Messages
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Hyperlink

                    .setText( NLS
                        .bind(
                            Messages.getString( "AttributeTypeDescriptionDetailsPage.SubtypesCount" ), new Object[] { derivedAtds.size() } ) ); //$NON-NLS-1$
                for ( AttributeType derivedAtd : derivedAtds )
                {
                    Hyperlink subAttributeTypeLink = toolkit.createHyperlink( subClient, SchemaUtils
                        .toString( derivedAtd ), SWT.WRAP );
                    subAttributeTypeLink.setHref( derivedAtd );
                    subAttributeTypeLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                    subAttributeTypeLink.setUnderlined( true );
                    subAttributeTypeLink.setEnabled( true );
                    subAttributeTypeLink.addHyperlinkListener( this );
                }
            }
            else
            {
                subtypesSection.setText( NLS.bind( Messages
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Hyperlink

                    .setText( NLS
                        .bind(
                            Messages.getString( "AttributeTypeDescriptionDetailsPage.UsedAsMustCount" ), new Object[] { usedAsMusts.size() } ) ); //$NON-NLS-1$
                for ( ObjectClass ocd : usedAsMusts )
                {
                    Hyperlink usedAsMustLink = toolkit.createHyperlink( mustClient, SchemaUtils.toString( ocd ),
                        SWT.WRAP );
                    usedAsMustLink.setHref( ocd );
                    usedAsMustLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                    usedAsMustLink.setUnderlined( true );
                    usedAsMustLink.setEnabled( true );
                    usedAsMustLink.addHyperlinkListener( this );
                }
            }
            else
            {
                usedAsMustSection.setText( NLS.bind( Messages
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Hyperlink

                    .setText( NLS
                        .bind(
                            Messages.getString( "AttributeTypeDescriptionDetailsPage.UsedAsMayCount" ), new Object[] { usedAsMays.size() } ) ); //$NON-NLS-1$
                for ( ObjectClass ocd : usedAsMays )
                {
                    Hyperlink usedAsMayLink = toolkit
                        .createHyperlink( mayClient, SchemaUtils.toString( ocd ), SWT.WRAP );
                    usedAsMayLink.setHref( ocd );
                    usedAsMayLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
                    usedAsMayLink.setUnderlined( true );
                    usedAsMayLink.setEnabled( true );
                    usedAsMayLink.addHyperlinkListener( this );
                }
            }
            else
            {
                usedAsMaySection.setText( NLS.bind( Messages
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.