本文整理汇总了Java中org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil.setHeightHint方法的典型用法代码示例。如果您正苦于以下问题:Java LayoutUtil.setHeightHint方法的具体用法?Java LayoutUtil.setHeightHint怎么用?Java LayoutUtil.setHeightHint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil
的用法示例。
在下文中一共展示了LayoutUtil.setHeightHint方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDialogArea
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
initializeDialogUnits(parent);
Composite composite= (Composite) super.createDialogArea(parent);
Composite inner= new Composite(composite, SWT.NONE);
inner.setLayoutData(new GridData(GridData.FILL_BOTH));
inner.setFont(composite.getFont());
LayoutUtil.doDefaultLayout(inner, new DialogField[] { fHistoryList }, true, 0, 0);
LayoutUtil.setHeightHint(fHistoryList.getListControl(null), convertHeightInCharsToPixels(12));
LayoutUtil.setHorizontalGrabbing(fHistoryList.getListControl(null));
applyDialogFont(composite);
return composite;
}
示例2: createDialogArea
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
initializeDialogUnits(parent);
Composite composite= (Composite) super.createDialogArea(parent);
Composite inner= new Composite(composite, SWT.NONE);
inner.setFont(parent.getFont());
inner.setLayoutData(new GridData(GridData.FILL_BOTH));
LayoutUtil.doDefaultLayout(inner, new DialogField[] { fHistoryList }, true, 0, 0);
LayoutUtil.setHeightHint(fHistoryList.getListControl(null), convertHeightInCharsToPixels(12));
LayoutUtil.setHorizontalGrabbing(fHistoryList.getListControl(null));
applyDialogFont(composite);
return composite;
}
示例3: createDialogArea
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
initializeDialogUnits(parent);
Composite composite= (Composite) super.createDialogArea(parent);
Composite inner= new Composite(composite, SWT.NONE);
inner.setLayoutData(new GridData(GridData.FILL_BOTH));
inner.setFont(composite.getFont());
LayoutUtil.doDefaultLayout(inner, new DialogField[] { fHistoryList, new Separator() }, true);
LayoutUtil.setHeightHint(fHistoryList.getListControl(null), convertHeightInCharsToPixels(12));
LayoutUtil.setHorizontalGrabbing(fHistoryList.getListControl(null));
Composite additionalControls= new Composite(inner, SWT.NONE);
additionalControls.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
LayoutUtil.doDefaultLayout(additionalControls, new DialogField[] { fMaxEntriesField }, false);
LayoutUtil.setHorizontalGrabbing(fMaxEntriesField.getTextControl(null));
applyDialogFont(composite);
return composite;
}
示例4: createContents
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
protected Control createContents(Composite parent) {
initializeDialogUnits(parent);
int nColumns= 1;
Composite result= new Composite(parent, SWT.NONE);
result.setFont(parent.getFont());
GridLayout layout= new GridLayout();
layout.marginHeight= convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
layout.marginWidth= 0;
layout.numColumns= nColumns;
result.setLayout(layout);
fShowMethodReturnType.doFillIntoGrid(result, nColumns);
fShowMethodTypeParameters.doFillIntoGrid(result, nColumns);
fShowCategory.doFillIntoGrid(result, nColumns);
fShowMembersInPackageView.doFillIntoGrid(result, nColumns);
fFoldPackagesInPackageExplorer.doFillIntoGrid(result, nColumns);
new Separator().doFillIntoGrid(result, nColumns);
fCompressPackageNames.doFillIntoGrid(result, nColumns);
fPackageNamePattern.doFillIntoGrid(result, 2);
LayoutUtil.setHorizontalIndent(fPackageNamePattern.getLabelControl(null));
Text packageNamePatternControl= fPackageNamePattern.getTextControl(null);
LayoutUtil.setHorizontalIndent(packageNamePatternControl);
LayoutUtil.setHorizontalGrabbing(packageNamePatternControl);
LayoutUtil.setWidthHint(fPackageNamePattern.getLabelControl(null), convertWidthInCharsToPixels(65));
new Separator().doFillIntoGrid(result, nColumns);
fAbbreviatePackageNames.doFillIntoGrid(result, nColumns);
fAbbreviatePackageNamePattern.doFillIntoGrid(result, 2);
LayoutUtil.setHorizontalIndent(fAbbreviatePackageNamePattern.getLabelControl(null));
Text abbreviatePackageNamePatternControl= fAbbreviatePackageNamePattern.getTextControl(null);
LayoutUtil.setHorizontalIndent(abbreviatePackageNamePatternControl);
LayoutUtil.setHorizontalGrabbing(abbreviatePackageNamePatternControl);
LayoutUtil.setWidthHint(fAbbreviatePackageNamePattern.getLabelControl(null), convertWidthInCharsToPixels(65));
LayoutUtil.setVerticalGrabbing(abbreviatePackageNamePatternControl);
LayoutUtil.setHeightHint(abbreviatePackageNamePatternControl, convertHeightInCharsToPixels(3));
new Separator().doFillIntoGrid(result, nColumns);
fStackBrowsingViewsVertically.doFillIntoGrid(result, nColumns);
String noteTitle= PreferencesMessages.AppearancePreferencePage_note;
String noteMessage= PreferencesMessages.AppearancePreferencePage_preferenceOnlyEffectiveForNewPerspectives;
Composite noteControl= createNoteComposite(JFaceResources.getDialogFont(), result, noteTitle, noteMessage);
GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
gd.horizontalSpan= 2;
gd.horizontalIndent= LayoutUtil.getIndent();
noteControl.setLayoutData(gd);
initFields();
Dialog.applyDialogFont(result);
return result;
}
示例5: createContents
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
protected Control createContents(Composite parent) {
initializeDialogUnits(parent);
int nColumns= 1;
Composite result= new Composite(parent, SWT.NONE);
result.setFont(parent.getFont());
GridLayout layout= new GridLayout();
layout.marginHeight= convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
layout.marginWidth= 0;
layout.numColumns= nColumns;
result.setLayout(layout);
fShowMethodReturnType.doFillIntoGrid(result, nColumns);
fShowMethodTypeParameters.doFillIntoGrid(result, nColumns);
fShowCategory.doFillIntoGrid(result, nColumns);
fShowMembersInPackageView.doFillIntoGrid(result, nColumns);
fFoldPackagesInPackageExplorer.doFillIntoGrid(result, nColumns);
new Separator().doFillIntoGrid(result, nColumns);
fCompressPackageNames.doFillIntoGrid(result, nColumns);
fPackageNamePattern.doFillIntoGrid(result, 2);
LayoutUtil.setHorizontalIndent(fPackageNamePattern.getLabelControl(null), AbstractConfigurationBlock.INDENT);
Text packageNamePatternControl= fPackageNamePattern.getTextControl(null);
LayoutUtil.setHorizontalIndent(packageNamePatternControl, AbstractConfigurationBlock.INDENT);
LayoutUtil.setHorizontalGrabbing(packageNamePatternControl);
LayoutUtil.setWidthHint(fPackageNamePattern.getLabelControl(null), convertWidthInCharsToPixels(65));
new Separator().doFillIntoGrid(result, nColumns);
fAbbreviatePackageNames.doFillIntoGrid(result, nColumns);
fAbbreviatePackageNamePattern.doFillIntoGrid(result, 2);
LayoutUtil.setHorizontalIndent(fAbbreviatePackageNamePattern.getLabelControl(null), AbstractConfigurationBlock.INDENT);
Text abbreviatePackageNamePatternControl= fAbbreviatePackageNamePattern.getTextControl(null);
LayoutUtil.setHorizontalIndent(abbreviatePackageNamePatternControl, AbstractConfigurationBlock.INDENT);
LayoutUtil.setHorizontalGrabbing(abbreviatePackageNamePatternControl);
LayoutUtil.setWidthHint(fAbbreviatePackageNamePattern.getLabelControl(null), convertWidthInCharsToPixels(65));
LayoutUtil.setVerticalGrabbing(abbreviatePackageNamePatternControl);
LayoutUtil.setHeightHint(abbreviatePackageNamePatternControl, convertHeightInCharsToPixels(3));
new Separator().doFillIntoGrid(result, nColumns);
fStackBrowsingViewsVertically.doFillIntoGrid(result, nColumns);
String noteTitle= PreferencesMessages.AppearancePreferencePage_note;
String noteMessage= PreferencesMessages.AppearancePreferencePage_preferenceOnlyEffectiveForNewPerspectives;
Composite noteControl= createNoteComposite(JFaceResources.getDialogFont(), result, noteTitle, noteMessage);
GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
gd.horizontalSpan= 2;
gd.horizontalIndent= AbstractConfigurationBlock.INDENT;
noteControl.setLayoutData(gd);
initFields();
Dialog.applyDialogFont(result);
return result;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:58,代码来源:AppearancePreferencePage.java