Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Link


            public void widgetSelected(SelectionEvent e) {
                updateFieldsStatusRetrieve();
            }
        });

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


            public void widgetSelected(SelectionEvent e) {
                updateFieldsStatusAdvanced();
            }
        });

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

                // nothing to do
            }
        });
        confTableViewer.setLabelProvider(new ConfigurationLabelProvider());

        select = new Link(this, SWT.PUSH);
        select.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
        select.setText("<A>All</A>/<A>None</A>");
        select.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                if (e.text.equals("All") && md != null) {
View Full Code Here

    else
      text = Messages.format(
              PreferencesMessages.SmartTypingConfigurationBlock_tabs_message_others_text,
              new String[] { Integer.toString(getTabDisplaySize()), getIndentMode() });

    final Link link = new Link(composite, SWT.NONE);
    link.setText(text);
    link.setToolTipText(linkTooltip);
    GridData gd = new GridData(SWT.FILL, SWT.BEGINNING, true, false);
    gd.widthHint = 300; // don't get wider initially
    link.setLayoutData(gd);
    link.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        PreferencesUtil.createPreferenceDialogOn(link.getShell(),
                "org.apache.uima.ruta.ide.ui.EditorPreferences", null, null); //$NON-NLS-1$
      }
    });

    final IPreferenceStore combinedStore = getPreferenceStore();
    final IPropertyChangeListener propertyChangeListener = new IPropertyChangeListener() {
      private boolean fHasRun = false;

      public void propertyChange(PropertyChangeEvent event) {
        if (fHasRun)
          return;
        if (composite.isDisposed())
          return;
        String property = event.getProperty();
        if (CodeFormatterConstants.FORMATTER_TAB_CHAR.equals(property)
                || CodeFormatterConstants.FORMATTER_TAB_SIZE.equals(property)) {
          fHasRun = true;
          link.dispose();
          createMessage(composite);
          Dialog.applyDialogFont(composite);
          composite.redraw();
          composite.layout();
        }
      }
    };
    combinedStore.addPropertyChangeListener(propertyChangeListener);
    link.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e) {
        combinedStore.removePropertyChangeListener(propertyChangeListener);
      }
    });
  }
View Full Code Here

    Group executeCommands = new Group(groupGames, SWT.NONE);
    executeCommands.setText("Execute Commands");
    executeCommands.setLayoutData(new GridData(SWT.FILL,SWT.TOP,true,false,2,1));
    executeCommands.setLayout(new GridLayout(2,false));
   
    Link linkToHelp = new Link(executeCommands, SWT.NONE);
    GridData linkToHelpData = new GridData(SWT.FILL,SWT.CENTER,true,false,2,1);
    linkToHelpData.widthHint = 300;
    linkToHelp.setLayoutData(linkToHelpData);
    linkToHelp.setText("This options allow you to specify command executed before/after a game is launched. See <A>GOIM Help</A> for more information (like variable names to be used) - See 'ExecuteCommands'");
   
    linkToHelp.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event event) {
        GOIMActionHelper.openBrowser(GOIMPlugin.goimSiteURLhelp);
      }
    });
   
View Full Code Here

        "email address. The first is your name or nick while " +
        "the second is the server name. E.g. myname@myserver.com\n" +
        "There are various public servers from which you can " +
        "choose, like goim.us");
   
    link = new Link(topLevel,SWT.NULL);
    link.setLayoutData(new GridData(SWT.FILL,SWT.BEGINNING,true,false,2,1));
    link.setText("<A>Click here to see a list of public servers.</A>");
    link.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event event) {
        try {
View Full Code Here

        "It would also be nice if you would join the community " +
        "on the website and check out the Forums to discuss " +
        "features, suggestions or bugs.\n\n");
    headline.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false));
   
    Link websiteLink = new Link(shell,SWT.NULL);
    websiteLink.setText("Visit <A>GOIM Website: " + GOIMPlugin.goimSiteURL + "</A>");
    websiteLink.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false));
    Link mucLink = new Link(shell,SWT.NULL);
    mucLink.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false));
    mucLink.setText("You can also join our <A>Multi User Chatroom " +
        GOIMPlugin.defaultGOIMroom + "</A>");
   
    Link editVCard = new Link(shell,SWT.NULL);
    editVCard.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false));
    editVCard.setText("You should also <A>edit your vCard</A>.\n" +
        "The vCard stores your public information which can be " +
        "retrieved by others.");
   
    websiteLink.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event event) {
        try {
          PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(new URL(GOIMPlugin.goimSiteURL));
        } catch (Exception e) {
          throw new RuntimeException(e);
        }
      }
    });
    mucLink.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event event) {
        String name = GOIMPlugin.defaultGOIMroom;
        MUCUtils.joinMUCRoom(activeAccount, name, null);
      }
    });
    editVCard.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event event) {
        new vCardGUI(activeAccount);
      }
    });
  }
View Full Code Here

  protected Control createDialogArea(Composite parent) {
    final Control ctrl = super.createDialogArea(parent);
    Composite buttons = new Composite((Composite)ctrl,SWT.NONE);
    buttons.setLayout(new RowLayout());
    buttons.setLayoutData(new GridData(SWT.CENTER,SWT.FILL,true,false));
    Link credits = new Link(buttons,SWT.PUSH);
    credits.setText("<A>Show Credits</A>");
//    Button license = new Button(buttons,SWT.PUSH);
//    license.setText("Show License");
    Label star = new Label(buttons,SWT.NONE);
    star.setText(" * ");
    Link website = new Link(buttons,SWT.PUSH);
    website.setText("<A>Visit Website</A>");
   
    credits.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event event) {
        new GOIMCreditDialog(ctrl.getShell()).open();
      }});
//    license.addListener(SWT.Selection,new Listener() {
//      public void handleEvent(Event event) {
//      }
//    });
    website.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event event) {
        try {
          PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(new URL(GOIMPlugin.goimSiteURL));
        } catch (Exception e) {
          throw new RuntimeException(e);
View Full Code Here

    //gd.horizontalAlignment = SWT.CENTER;
    text.setLayoutData(gd);
    text.setForeground(_fgColor);
    text.setText(_text);
   
    Link link = new Link(inner, SWT.NONE);
    gd = new GridData(GridData.FILL_BOTH);
    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);
      }
    });
   
    Link closeLink = new Link(inner, SWT.NONE);
    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.horizontalSpan = 2;
    text.setLayoutData(gd);
    text.setForeground(_fgColor);
    text.setText(_text);   
   
    Link closeLink = new Link(inner, SWT.NONE);
    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

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.