/** * build plugin info cell. */ protected void buildPluginInfoCell() { this.ascLink = new Link( this.dialog, SWT.NONE ); this.ascLink.setText( BaseMessages.getString( PKG, "TeraFastDialog.About.Plugin.Info" ) ); GridData grdData = new GridData(); grdData.horizontalIndent = DEFAULT_INDENT; grdData.verticalIndent = DEFAULT_INDENT; this.ascLink.setLayoutData( grdData ); this.ascLink.addListener( SWT.Selection, new Listener() { public void handleEvent( final Event event ) { Program.launch( event.text ); } } ); } }
/** * build plugin info cell. */ protected void buildPluginInfoCell() { this.ascLink = new Link( this.dialog, SWT.NONE ); this.ascLink.setText( BaseMessages.getString( PKG, "OlapInputDialog.About.Plugin.Info" ) ); GridData grdData = new GridData(); grdData.horizontalIndent = DEFAULT_INDENT; grdData.verticalIndent = DEFAULT_INDENT; this.ascLink.setLayoutData( grdData ); this.ascLink.addListener( SWT.Selection, new Listener() { public void handleEvent( final Event event ) { Program.launch( event.text ); } } ); } }
/** * build plugin info cell. */ protected void buildPluginInfoCell() { this.ascLink = new Link( this.dialog, SWT.NONE ); this.ascLink.setText( BaseMessages.getString( PKG, "SapInputDialog.About.Plugin.Info" ) ); GridData grdData = new GridData(); grdData.horizontalIndent = DEFAULT_INDENT; grdData.verticalIndent = DEFAULT_INDENT; this.ascLink.setLayoutData( grdData ); this.ascLink.addListener( SWT.Selection, new Listener() { public void handleEvent( final Event event ) { Program.launch( event.text ); } } ); } }
/** * @param factory * factory to use. */ protected void buildAscLink( final PluginWidgetFactory factory ) { final Control topControl = this.wReturn; this.wAscLink = new Link( this.shell, SWT.NONE ); this.wAscLink.setText( BaseMessages.getString( PKG, "TeraFastDialog.Provided.Info" ) ); FormData formData = factory.createLabelLayoutData( topControl ); formData.right = null; this.wAscLink.setLayoutData( formData ); }
Link lblNewLabel = new Link(composite, SWT.NONE); lblNewLabel.addSelectionListener(openUrl); lblNewLabel.setFont(SWTResourceManager.getFont("Arial", 20, SWT.NORMAL)); 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>"); 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>"); 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>");
private void setHelpLink( Display display, String helpLink, int maxTextWidth, EnvironmentCase environment ) { link = new Link( shell, SWT.SINGLE | SWT.WRAP ); link.setText( helpLink ); if ( environment == EnvironmentCase.MAC_OS_X || environment == EnvironmentCase.MAC_OS_X_THIN ) { FontData[] fD = link.getFont().getFontData(); fD[0].setHeight( 13 ); link.setFont( new Font( display, fD[0] ) ); } FormData fdlink = new FormData(); fdlink.left = new FormAttachment( warningIcon, margin ); // Link should be below description right of icon fdlink.top = new FormAttachment( description, margin ); fdlink.width = maxTextWidth; link.setLayoutData( fdlink ); props.setLook( link ); link.addListener( SWT.Selection, new Listener() { public void handleEvent( Event event ) { if ( Desktop.isDesktopSupported() ) { try { Desktop.getDesktop().browse( new URI( Const.getDocUrl( URI_PATH ) ) ); } catch ( Exception e ) { log.logError( "Error opening external browser", e ); } } } } ); }
lastControl = wOutput; this.wAscLink = new Link( this.shell, SWT.NONE ); FormData fdAscLink = new FormData(); fdAscLink.left = new FormAttachment( 0, 0 );
this.wAscLink = new Link( this.shell, SWT.NONE ); FormData fdAscLink = new FormData(); fdAscLink.left = new FormAttachment( 0, 5 );
wGaCustomProfileReference = new Link( gConnect, SWT.SINGLE ); wGaCustomProfileReference .setText( BaseMessages.getString( PKG, "GoogleAnalyticsDialog.Query.Reference.Label" ) ); wQuDimensionsReference = new Link( gQuery, SWT.SINGLE ); wQuMetricsReference = new Link( gQuery, SWT.SINGLE ); wQuMetricsReference.setText( BaseMessages.getString( PKG, "GoogleAnalyticsDialog.Query.Reference.Label" ) ); props.setLook( wQuMetricsReference ); wQuFiltersReference = new Link( gQuery, SWT.SINGLE ); wQuFiltersReference.setText( BaseMessages.getString( PKG, "GoogleAnalyticsDialog.Query.Reference.Label" ) ); props.setLook( wQuFiltersReference ); wQuSortReference = new Link( gQuery, SWT.SINGLE ); wQuSortReference.setText( BaseMessages.getString( PKG, "GoogleAnalyticsDialog.Query.Reference.Label" ) ); props.setLook( wQuSortReference ); wQuCustomSegmentReference = new Link( gQuery, SWT.SINGLE ); wQuCustomSegmentReference .setText( BaseMessages.getString( PKG, "GoogleAnalyticsDialog.Query.Reference.Label" ) ); wQuSamplingLevelReference = new Link( gQuery, SWT.SINGLE ); wlFields = new Link( shell, SWT.NONE ); wlFields.setText( BaseMessages.getString( PKG, "GoogleAnalyticsDialog.Return.Label" ) ); props.setLook( wlFields );
websiteLink = new Link(themeDetails, SWT.NONE); GridDataFactory.swtDefaults().grab(true, false).applyTo(websiteLink); updateDetails(colorThemeManager.getTheme(activeThemeName)); Link ectLink = new Link(container, SWT.NONE); ectLink.setText("Download more themes or create your own on " + "<a>eclipsecolorthemes.org</a>.");
private void createPreferencePageLink(Composite composite, String label, final Map<String, String> targetInfo) { final Link link= new Link(composite, SWT.NONE); link.setText(label); link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { PreferencesUtil.createPreferenceDialogOn(link.getShell(), e.text, null, targetInfo); } }); }
private void addLink(Composite parent) { Link link= new Link(parent, SWT.NONE); link.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false)); link.setText(ReorgMessages.RenameInformationPopup_OptionsLink); link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { activateEditor(); fRenameLinkedMode.startFullDialog(); } }); }
private Link createLink(Composite composite, ListenerMix listener) { Link link= new Link(composite, SWT.WRAP); GridData layoutData= new GridData(SWT.FILL, SWT.CENTER, true, false); layoutData.widthHint= convertWidthInCharsToPixels(80); link.setLayoutData(layoutData); link.addSelectionListener(listener); return link; }
/** * Creates the "Example" widgets. */ @Override void createExampleWidgets () { /* Compute the widget style */ int style = getDefaultStyle(); if (borderButton.getSelection ()) style |= SWT.BORDER; /* Create the example widgets */ link1 = new Link (linkGroup, style); link1.setText (ControlExample.getResourceString("LinkText")); }
private void addLink(Composite parent) { Link link= new Link(parent, SWT.NONE); link.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false)); link.setText(ReorgMessages.RenameInformationPopup_OptionsLink); link.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { activateEditor(); fRenameLinkedMode.startFullDialog(); } }); }
private void createRemindSection(Composite parent) { remindLink = new Link(parent, SWT.MULTI | SWT.WRAP | SWT.RIGHT); updateRemindText(); remindLink.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(), PreferenceConstants.PREF_PAGE_AUTO_UPDATES, null, null); dialog.open(); } }); remindLink.setLayoutData(new GridData(GridData.FILL_BOTH)); }
public static Link createLink(Composite parent, String text, Font font, int hspan, int fill) { Link l = new Link(parent, SWT.UNDERLINE_LINK); l.setFont(font); l.setText(text); GridData gd = new GridData(fill); gd.horizontalSpan = hspan; l.setLayoutData(gd); return l; }
public static Link createLink(Composite parent, String text, Font font, int hspan, int fill) { Link l = new Link(parent, SWT.UNDERLINE_LINK); l.setFont(font); l.setText(text); GridData gd = new GridData(fill); gd.horizontalSpan = hspan; l.setLayoutData(gd); return l; }
public static Link createLink(Composite parent,int style ,String text){ Link link = new Link( parent, style ); link.setText(text); link.addSelectionListener(new OpenUrlListener()); return link; }
public void setStatus(final String statusMessage) { disposeChildren(status); final Link link = new Link(status, SWT.NONE); link.setText(statusMessage); link.setBackground(link.getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND)); layout(); }