本文整理汇总了Java中org.eclipse.ui.dialogs.PreferenceLinkArea类的典型用法代码示例。如果您正苦于以下问题:Java PreferenceLinkArea类的具体用法?Java PreferenceLinkArea怎么用?Java PreferenceLinkArea使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PreferenceLinkArea类属于org.eclipse.ui.dialogs包,在下文中一共展示了PreferenceLinkArea类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createUI_60_HrZone
import org.eclipse.ui.dialogs.PreferenceLinkArea; //导入依赖的package包/类
private Control createUI_60_HrZone(final Composite parent) {
final Composite container = new Composite(parent, SWT.NONE);
GridDataFactory.fillDefaults().grab(true, false).applyTo(container);
GridLayoutFactory.swtDefaults().extendedMargins(5, 5, 10, 5).numColumns(1).applyTo(container);
{
final PreferenceLinkArea prefLink = new PreferenceLinkArea(
container,
SWT.NONE,
PrefPagePeople.ID,
Messages.Compute_HrZone_Link,
(IWorkbenchPreferenceContainer) getContainer(),
new PrefPagePeopleData(PrefPagePeople.PREF_DATA_SELECT_HR_ZONES, null));
GridDataFactory
.fillDefaults()//
.grab(true, false)
.hint(DEFAULT_DESCRIPTION_WIDTH, SWT.DEFAULT)
.applyTo(prefLink.getControl());
}
return container;
}
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:24,代码来源:PrefPageComputedValues.java
示例2: createLinkArea
import org.eclipse.ui.dialogs.PreferenceLinkArea; //导入依赖的package包/类
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 );
}
}
开发者ID:eclipse,项目名称:birt,代码行数:17,代码来源:PreviewPreferencePage.java
示例3: addRelatedLink
import org.eclipse.ui.dialogs.PreferenceLinkArea; //导入依赖的package包/类
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);
}
开发者ID:eclipse,项目名称:tm4e,代码行数:8,代码来源:TextMatePreferencePage.java
示例4: createPrefLink
import org.eclipse.ui.dialogs.PreferenceLinkArea; //导入依赖的package包/类
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));
}
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:8,代码来源:AbstractOptionsBlock.java
示例5: createLink
import org.eclipse.ui.dialogs.PreferenceLinkArea; //导入依赖的package包/类
private void createLink(final Composite parent, final String text,
String target) {
final PreferenceLinkArea link = new PreferenceLinkArea(parent, SWT.NONE,
target, text, (IWorkbenchPreferenceContainer) getContainer(), null);
link.getControl().setLayoutData(new GridData());
}
开发者ID:eclipse,项目名称:eclemma,代码行数:7,代码来源:CoveragePreferencePage.java
示例6: createPreferenceLink
import org.eclipse.ui.dialogs.PreferenceLinkArea; //导入依赖的package包/类
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;
}
开发者ID:subclipse,项目名称:subclipse,代码行数:5,代码来源:SWTUtils.java
注:本文中的org.eclipse.ui.dialogs.PreferenceLinkArea类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论