org.eclipse.ui.dialogs.PreferenceLinkArea源码实例Demo

类org.eclipse.ui.dialogs.PreferenceLinkArea源码实例Demo

下面列出了org.eclipse.ui.dialogs.PreferenceLinkArea 类实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: birt   文件: PreviewPreferencePage.java
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 );
	}
}
 
源代码2 项目: tm4e   文件: TextMatePreferencePage.java
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);
}
 
源代码3 项目: APICloud-Studio   文件: AbstractOptionsBlock.java
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));
}
 
源代码4 项目: APICloud-Studio   文件: SWTUtils.java
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;
}
 
源代码评论
动弹
沙发等你来抢
 类所在包
 类方法
 同包方法