Package org.eclipse.swt.widgets

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


    gd.horizontalSpan = 2;
    //gd.horizontalAlignment = SWT.CENTER;
    link.setLayoutData(gd);
    link.setForeground(_fgColor);
    link.setText(_urlText);
    link.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) { 
        Program.launch(_url);
      }
    });
   
View Full Code Here


    gd = new GridData(GridData.FILL_BOTH);
    gd.horizontalSpan = 2;
    gd.horizontalAlignment = SWT.CENTER;
    closeLink.setLayoutData(gd);
    closeLink.setText("<a>" + Messages.getString("NewVersionOSD.CloseLink") + "</a>");
    closeLink.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        _closed = true;
        moveShellsDown();
      }
    });
View Full Code Here

    gd = new GridData(GridData.FILL_BOTH);
    gd.horizontalSpan = 2;
    gd.horizontalAlignment = SWT.CENTER;
    closeLink.setLayoutData(gd);
    closeLink.setText("<a>" + Messages.getString("NewVersionOSD.CloseLink") + "</a>");
    closeLink.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        _closed = true;
        moveShellsDown();
      }
    });
View Full Code Here

                  .align(SWT.FILL, SWT.BEGINNING)
                  .grab(true, false)
                  .hint(
                      convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH),
                      SWT.DEFAULT).applyTo(link);
              link.addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(
                    org.eclipse.swt.events.SelectionEvent e) {
                  try {
                    PlatformUI
                        .getWorkbench()
View Full Code Here

                  .align(SWT.FILL, SWT.BEGINNING)
                  .grab(true, false)
                  .hint(
                      convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH),
                      SWT.DEFAULT).applyTo(link);
              link.addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(
                    org.eclipse.swt.events.SelectionEvent e) {
                  try {
                    PlatformUI
                        .getWorkbench()
View Full Code Here

            c.setLayout(layout);
            gridLayout.makeColumnsEqualWidth = false;
            gridLayout.numColumns += 1;
            Link l = new Link(c, SWT.NONE);
            l.setText("<a>Open User guide</a>  ");
            l.addSelectionListener(new SelectionAdapter() {
             
              public void widgetSelected(SelectionEvent e) {
                IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem();
                helpSystem.displayHelpResource("/com.onpositive.gae.tools.core/html/overview.html");
              }
View Full Code Here

                IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem();
                helpSystem.displayHelpResource("/com.onpositive.gae.tools.core/html/overview.html");
              }
            });
            Link l1 = new Link(c, SWT.NONE);
            l1.addSelectionListener(new SelectionAdapter() {
             
              public void widgetSelected(SelectionEvent e) {
                try {
                  PlatformUI
                      .getWorkbench()
View Full Code Here

        cm.setLayout(new GridLayout(4, false));
      }
      if (showParentLink) {
        Link l0 = new Link(cm, SWT.NONE);
        l0.setText("<a>Customize Key</a>");
        l0.addSelectionListener(new SelectionAdapter() {

          public void widgetSelected(SelectionEvent e) {
            Binding b = new Binding("");
            b.setName("Customize Key");
            b.setDescription("Please type long or string key in 'Id or Name' field");
View Full Code Here

          }
        });
      }
      Link l1 = new Link(cm, SWT.NONE);
      l1.setText("<a>Add new property</a>");
      l1.addSelectionListener(new SelectionListener() {

        public void widgetSelected(SelectionEvent e) {
          Binding b = new Binding("");
          b.setName("Configure new Property");
          final Binding binding = b.getBinding("name");
View Full Code Here

        }
      });
      Link l2 = new Link(cm, SWT.NONE);
      l2.setText("<a>Remove property</a>");
      l2.addSelectionListener(new SelectionListener() {

        public void widgetSelected(SelectionEvent e) {
          Binding bnd2 = new Binding("");
          bnd2.setName("Select property to remove");
          CompositeEditor ed = new CompositeEditor(bnd2);
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.