org.eclipse.ui.dialogs.PreferenceLinkArea Java Examples
The following examples show how to use
org.eclipse.ui.dialogs.PreferenceLinkArea.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PreviewPreferencePage.java From birt with Eclipse Public License 1.0 | 6 votes |
private void createLinkArea( Composite parent ) { IPreferenceNode node = getPreferenceNode( WBROWSER_PAGE_ID ); if ( node != null ) { PreferenceLinkArea linkArea = new PreferenceLinkArea( parent, SWT.WRAP, WBROWSER_PAGE_ID, Messages.getString( "designer.preview.preference.browser.extbrowser.link" ), //$NON-NLS-1$ (IWorkbenchPreferenceContainer) getContainer( ), null ); GridData data = new GridData( GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL ); linkArea.getControl( ).setLayoutData( data ); } }
Example #2
Source File: TextMatePreferencePage.java From tm4e with Eclipse Public License 1.0 | 5 votes |
private void addRelatedLink(Composite parent, String pageId, String message) { PreferenceLinkArea contentTypeArea = new PreferenceLinkArea(parent, SWT.NONE, pageId, message, (IWorkbenchPreferenceContainer) getContainer(), null); GridData data = new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL); contentTypeArea.getControl().setLayoutData(data); }
Example #3
Source File: AbstractOptionsBlock.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
protected void createPrefLink(Composite composite, String message, final String prefPageId, final Object data) { PreferenceLinkArea area = new PreferenceLinkArea(composite, SWT.NONE, prefPageId, message, getPreferenceContainer(), data); area.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false)); }
Example #4
Source File: SWTUtils.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
public static PreferenceLinkArea createPreferenceLink(IWorkbenchPreferenceContainer container, Composite parent, String pageId, String text) { final PreferenceLinkArea area = new PreferenceLinkArea(parent, SWT.NONE, pageId, text, container, null); return area; }