Package org.eclipse.swt.widgets

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


       * l3.setText("<a>Change property type</a>");
       */
      if (e.getParent() != null) {
        Link l3 = new Link(cm, SWT.NONE);
        l3.setText("<a>Edit parent entity</a>");
        l3.addSelectionListener(new SelectionListener() {

          public void widgetSelected(SelectionEvent e) {
            Entity curr = (Entity) editor.getBinding().getObject();
            if (curr.getParent() != null
                && facade.getParents().containsKey(
View Full Code Here


          layout.horizontalSpacing= convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
          linkComposite.setLayout(layout);

              Link link= new Link(linkComposite, SWT.NONE);
              link.setText(linkMessage);
              link.addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(SelectionEvent e) {
                  setReturnCode(settingsId);
                  close();
                }
              });
View Full Code Here

    }

    public void setCommand(final CommandLink comm) {
        Link l = new Link(this, SWT.NONE);
        l.setText(comm.getLabel());
        l.addSelectionListener(new SelectionListener() {

            public void widgetSelected(SelectionEvent e) {
                comm.active();
            }
View Full Code Here

    // Create linked text to just to templates preference page
    Link link = new Link(parent, SWT.NONE);
    link.setText(JSPUIMessages.NewJSPTemplatesWizardPage_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

  protected Control createMessageArea(Composite composite) {
    super.createMessageArea(composite);
    Link messageLink = new Link(composite, SWT.NONE);
    messageLink.setText(SSEUIMessages.UnknownContentTypeDialog_2);
    messageLink.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        linkClicked();
      }
    });
    return composite;
View Full Code Here

          layout.horizontalSpacing= convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
          linkComposite.setLayout(layout);

              Link link= new Link(linkComposite, SWT.NONE);
              link.setText(linkMessage);
              link.addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(SelectionEvent e) {
                  setReturnCode(settingsId);
                  close();
                }
              });
View Full Code Here

    // Create linked text to just to templates preference page
    Link link = new Link(parent, SWT.NONE);
    link.setText(JSPUIMessages.NewTagTemplatesWizardPage_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

    Composite pageComponent = createComposite(parent, 2);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(pageComponent, IHelpContextIds.JSP_PREFWEBX_STYLES_HELPID);

    Link link = new Link(pageComponent, SWT.WRAP);
    link.setText(SSEUIMessages.SyntaxColoring_Link);
    link.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        PreferencesUtil.createPreferenceDialogOn(parent.getShell(), e.text, null, null);
      }
    });
View Full Code Here

      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

    Composite pageComponent = createComposite(parent, 2);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(pageComponent, IHelpContextIds.JSP_PREFWEBX_STYLES_HELPID);

    Link link = new Link(pageComponent, SWT.WRAP);
    link.setText(SSEUIMessages.SyntaxColoring_Link);
    link.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        PreferencesUtil.createPreferenceDialogOn(parent.getShell(), e.text, null, null);
      }
    });
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.