本文整理汇总了Java中org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil.doDefaultLayout方法的典型用法代码示例。如果您正苦于以下问题:Java LayoutUtil.doDefaultLayout方法的具体用法?Java LayoutUtil.doDefaultLayout怎么用?Java LayoutUtil.doDefaultLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil
的用法示例。
在下文中一共展示了LayoutUtil.doDefaultLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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.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;
}
示例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.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;
}
示例3: createDialogArea
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
Composite composite= (Composite) super.createDialogArea(parent);
Composite inner= new Composite(composite, SWT.NONE);
LayoutUtil.doDefaultLayout(inner, new DialogField[] { fNameDialogField }, true, 0, 0);
int fieldWidthHint= convertWidthInCharsToPixels(60);
Text text= fNameDialogField.getTextControl(null);
LayoutUtil.setWidthHint(text, fieldWidthHint);
LayoutUtil.setHorizontalGrabbing(text);
BidiUtils.applyBidiProcessing(text, StructuredTextTypeHandlerFactory.JAVA);
TextFieldNavigationHandler.install(text);
fNameDialogField.postSetFocusOnDialogField(parent.getDisplay());
applyDialogFont(composite);
return composite;
}
示例4: createDialogArea
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
Composite composite= (Composite) super.createDialogArea(parent);
DialogField[] fields;
if (isSave()) {
fields= new DialogField[] { fExportImportList, fLocationField };
} else {
fields= new DialogField[] { fLocationField, fExportImportList };
}
LayoutUtil.doDefaultLayout(composite, fields, true, SWT.DEFAULT, SWT.DEFAULT);
fExportImportList.getListControl(null).setLayoutData(new GridData(GridData.FILL_BOTH));
fLocationField.postSetFocusOnDialogField(parent.getDisplay());
BidiUtils.applyBidiProcessing(fLocationField.getTextControl(parent), StructuredTextTypeHandlerFactory.FILE);
Dialog.applyDialogFont(composite);
if (isSave()) {
PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IJavaHelpContextIds.CP_EXPORT_USER_LIBRARY);
} else {
PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IJavaHelpContextIds.CP_IMPORT_USER_LIBRARY);
}
return composite;
}
示例5: createDialogArea
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
Composite composite= (Composite) super.createDialogArea(parent);
DialogField[] fields;
if (isSave()) {
fields= new DialogField[] { fExportImportList, fLocationField };
} else {
fields= new DialogField[] { fLocationField, fExportImportList };
}
LayoutUtil.doDefaultLayout(composite, fields, true, SWT.DEFAULT, SWT.DEFAULT);
fExportImportList.getListControl(null).setLayoutData(new GridData(GridData.FILL_BOTH));
fLocationField.postSetFocusOnDialogField(parent.getDisplay());
Dialog.applyDialogFont(composite);
if (isSave()) {
PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IJavaHelpContextIds.CP_EXPORT_USER_LIBRARY);
} else {
PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IJavaHelpContextIds.CP_IMPORT_USER_LIBRARY);
}
return composite;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:25,代码来源:UserLibraryPreferencePage.java
示例6: createDialogArea
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
Composite composite= (Composite) super.createDialogArea(parent);
Composite inner= new Composite(composite, SWT.NONE);
LayoutUtil.doDefaultLayout(inner, new DialogField[] { fNameDialogField }, true, 0, 0);
int fieldWidthHint= convertWidthInCharsToPixels(60);
Text text= fNameDialogField.getTextControl(null);
LayoutUtil.setWidthHint(text, fieldWidthHint);
LayoutUtil.setHorizontalGrabbing(text);
TextFieldNavigationHandler.install(text);
fNameDialogField.postSetFocusOnDialogField(parent.getDisplay());
applyDialogFont(composite);
return composite;
}
示例7: 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;
}
示例8: createDialogArea
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
final Composite composite= (Composite) super.createDialogArea(parent);
LayoutUtil.doDefaultLayout(composite, new DialogField[] { fNameField }, true, SWT.DEFAULT, SWT.DEFAULT);
fNameField.postSetFocusOnDialogField(parent.getDisplay());
LayoutUtil.setWidthHint(fNameField.getLabelControl(null), convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH));
Text text= fNameField.getTextControl(null);
LayoutUtil.setHorizontalGrabbing(text);
TextFieldNavigationHandler.install(text);
Dialog.applyDialogFont(composite);
return composite;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:15,代码来源:RenameTypeWizardSimilarElementsPage.java
示例9: createContents
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
public Control createContents(Composite parent) {
Composite composite= new Composite(parent, SWT.NONE);
composite.setFont(parent.getFont());
LayoutUtil.doDefaultLayout(composite, new DialogField[] { fVariablesList }, true, 0, 0);
LayoutUtil.setHorizontalGrabbing(fVariablesList.getListControl(null));
fWarning= new CLabel(composite, SWT.NONE);
fWarning.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, fVariablesList.getNumberOfControls() - 1, 1));
fControl= composite;
updateDeprecationWarning();
return composite;
}
示例10: createDialogArea
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected Control createDialogArea(Composite parent) {
Composite composite= (Composite) super.createDialogArea(parent);
LayoutUtil.doDefaultLayout(composite, new DialogField[] { fCategoryList }, true, 5, 5);
LayoutUtil.setHorizontalGrabbing(fCategoryList.getListControl(null));
Dialog.applyDialogFont(composite);
setHelpAvailable(false);
PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IJavaHelpContextIds.VISIBLE_CATEGORIES_DIALOG);
return composite;
}
示例11: createContents
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
protected Control createContents(Composite parent) {
Composite composite= new Composite(parent, SWT.NONE);
composite.setFont(parent.getFont());
LayoutUtil.doDefaultLayout(composite, new DialogField[] { fLibraryList }, true);
LayoutUtil.setHorizontalGrabbing(fLibraryList.getTreeControl(null));
Dialog.applyDialogFont(composite);
return composite;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:10,代码来源:UserLibraryPreferencePage.java
示例12: createControl
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
public void createControl(Composite parent) {
Composite composite= new Composite(parent, SWT.NONE);
composite.setFont(parent.getFont());
LayoutUtil.doDefaultLayout(composite, new DialogField[] { fLibrarySelector }, true, SWT.DEFAULT, SWT.DEFAULT);
LayoutUtil.setHorizontalGrabbing(fLibrarySelector.getListControl(null));
Dialog.applyDialogFont(composite);
setControl(composite);
}
示例13: getControl
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
public Control getControl(Composite parent) {
PixelConverter converter= new PixelConverter(parent);
Composite composite= new Composite(parent, SWT.NONE);
composite.setFont(parent.getFont());
LayoutUtil.doDefaultLayout(composite, new DialogField[] { fClassPathList }, true, SWT.DEFAULT, SWT.DEFAULT);
LayoutUtil.setHorizontalGrabbing(fClassPathList.getListControl(null));
int buttonBarWidth= converter.convertWidthInCharsToPixels(24);
fClassPathList.setButtonsMinWidth(buttonBarWidth);
return composite;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:16,代码来源:ClasspathOrderingWorkbookPage.java
示例14: getControl
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
public Control getControl(Composite parent) {
PixelConverter converter= new PixelConverter(parent);
Composite composite= new Composite(parent, SWT.NONE);
LayoutUtil.doDefaultLayout(composite, new DialogField[] { fProjectsList }, true, SWT.DEFAULT, SWT.DEFAULT);
LayoutUtil.setHorizontalGrabbing(fProjectsList.getTreeControl(null));
int buttonBarWidth= converter.convertWidthInCharsToPixels(24);
fProjectsList.setButtonsMinWidth(buttonBarWidth);
fSWTControl= composite;
return composite;
}
示例15: getControl
import org.eclipse.jdt.internal.ui.wizards.dialogfields.LayoutUtil; //导入方法依赖的package包/类
@Override
public Control getControl(Composite parent) {
PixelConverter converter= new PixelConverter(parent);
Composite composite= new Composite(parent, SWT.NONE);
LayoutUtil.doDefaultLayout(composite, new DialogField[] { fLibrariesList }, true, SWT.DEFAULT, SWT.DEFAULT);
LayoutUtil.setHorizontalGrabbing(fLibrariesList.getTreeControl(null));
int buttonBarWidth= converter.convertWidthInCharsToPixels(24);
fLibrariesList.setButtonsMinWidth(buttonBarWidth);
fLibrariesList.setViewerComparator(new CPListElementSorter());
fSWTControl= composite;
return composite;
}