当前位置: 首页>>代码示例>>Java>>正文


Java DialogField.createEmptySpace方法代码示例

本文整理汇总了Java中org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField.createEmptySpace方法的典型用法代码示例。如果您正苦于以下问题:Java DialogField.createEmptySpace方法的具体用法?Java DialogField.createEmptySpace怎么用?Java DialogField.createEmptySpace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField的用法示例。


在下文中一共展示了DialogField.createEmptySpace方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createModifierControls

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
/**
 * Creates the controls for the modifiers radio/checkbox buttons. Expects a
 * <code>GridLayout</code> with at least 3 columns.
 *
 * @param composite the parent composite
 * @param nColumns number of columns to span
 */
protected void createModifierControls(Composite composite, int nColumns) {
	LayoutUtil.setHorizontalSpan(fAccMdfButtons.getLabelControl(composite), 1);

	Control control= fAccMdfButtons.getSelectionButtonsGroup(composite);
	GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
	gd.horizontalSpan= nColumns - 2;
	control.setLayoutData(gd);

	DialogField.createEmptySpace(composite);

	if (fTypeKind == CLASS_TYPE) {
		DialogField.createEmptySpace(composite);

		control= fOtherMdfButtons.getSelectionButtonsGroup(composite);
		gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
		gd.horizontalSpan= nColumns - 2;
		control.setLayoutData(gd);

		DialogField.createEmptySpace(composite);
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:29,代码来源:NewTypeWizardPage.java

示例2: createMethodStubSelectionControls

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
private void createMethodStubSelectionControls(Composite composite,
    int nColumns) {
  Control labelControl = methodStubsButtons.getLabelControl(composite);
  LayoutUtil.setHorizontalSpan(labelControl, nColumns);

  DialogField.createEmptySpace(composite);

  Control buttonGroup = methodStubsButtons.getSelectionButtonsGroup(composite);
  LayoutUtil.setHorizontalSpan(buttonGroup, nColumns - 1);
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:11,代码来源:NewEntryPointWizardPage.java

示例3: createModuleNameControls

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
protected void createModuleNameControls(Composite composite, int nColumns) {
  moduleNameField.doFillIntoGrid(composite, nColumns - 1);
  DialogField.createEmptySpace(composite);

  Text moduleNameText = moduleNameField.getTextControl(null);
  LayoutUtil.setWidthHint(moduleNameText, getMaxFieldWidth());
  LayoutUtil.setHorizontalGrabbing(moduleNameText);
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:9,代码来源:NewModuleWizardPage.java

示例4: createSampleContentControls

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
private void createSampleContentControls(Composite composite, int columns) {
  Label label = new Label(composite, SWT.NONE);
  label.setText("Do you want to add sample content?");
  label.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false,
      false, columns, 1));
  DialogField.createEmptySpace(composite);
  addSampleContentButton.doFillIntoGrid(composite, columns - 1);
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:9,代码来源:NewUiBinderWizardPage.java

示例5: createFileNameControls

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
private void createFileNameControls(Composite composite, int columns) {
  fileNameField.doFillIntoGrid(composite, columns - 1);
  DialogField.createEmptySpace(composite);

  setFieldWidthHint(fileNameField);
  Text text = fileNameField.getTextControl(null);
  LayoutUtil.setHorizontalGrabbing(text);
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:9,代码来源:NewHostPageWizardPage.java

示例6: createPageElementsControls

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
private void createPageElementsControls(Composite composite, int nColumns) {
  Control labelControl = hostPageElementsButtons.getLabelControl(composite);
  LayoutUtil.setHorizontalSpan(labelControl, nColumns);

  DialogField.createEmptySpace(composite);

  Control buttonGroup = hostPageElementsButtons.getSelectionButtonsGroup(composite);
  LayoutUtil.setHorizontalSpan(buttonGroup, nColumns - 1);
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:10,代码来源:NewHostPageWizardPage.java

示例7: createMethodStubSelectionControls

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
private void createMethodStubSelectionControls(Composite composite, int nColumns) {
	Control labelControl= fMethodStubsButtons.getLabelControl(composite);
	LayoutUtil.setHorizontalSpan(labelControl, nColumns);

	DialogField.createEmptySpace(composite);

	Control buttonGroup= fMethodStubsButtons.getSelectionButtonsGroup(composite);
	LayoutUtil.setHorizontalSpan(buttonGroup, nColumns - 1);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:10,代码来源:NewClassWizardPage.java

示例8: createPackageControls

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
private void createPackageControls(Composite composite, int nColumns) {
	fPackageDialogField.doFillIntoGrid(composite, nColumns - 1);
	Text text= fPackageDialogField.getTextControl(null);
	LayoutUtil.setWidthHint(text, getMaxFieldWidth());
	LayoutUtil.setHorizontalGrabbing(text);
	DialogField.createEmptySpace(composite);

	TextFieldNavigationHandler.install(text);
	
	fCreatePackageInfoJavaDialogField.doFillIntoGrid(composite, nColumns);
	BidiUtils.applyBidiProcessing(fPackageDialogField.getTextControl(null), StructuredTextTypeHandlerFactory.JAVA);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:13,代码来源:NewPackageWizardPage.java

示例9: createDialogArea

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
	initializeDialogUnits(parent);
	Composite composite= (Composite) super.createDialogArea(parent);

	GridLayout layout= (GridLayout) composite.getLayout();
	layout.numColumns= 3;

	int widthHint= convertWidthInCharsToPixels(50);

	GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
	gd.horizontalSpan= 3;

	// archive name field
	fFileNameField.doFillIntoGrid(composite, 4);
	LayoutUtil.setHorizontalSpan(fFileNameField.getLabelControl(null), 3);
	LayoutUtil.setWidthHint(fFileNameField.getTextControl(null), widthHint);
	LayoutUtil.setHorizontalGrabbing(fFileNameField.getTextControl(null));

	// label that shows the resolved path for variable jars
	//DialogField.createEmptySpace(composite, 1);
	fFullPathResolvedLabel= new CLabel(composite, SWT.LEFT);
	fFullPathResolvedLabel.setText(getResolvedLabelString());
	fFullPathResolvedLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
	DialogField.createEmptySpace(composite, 2);


	fFileNameField.postSetFocusOnDialogField(parent.getDisplay());

	PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IJavaHelpContextIds.SOURCE_ATTACHMENT_BLOCK);
	applyDialogFont(composite);
	return composite;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:34,代码来源:EditVariableEntryDialog.java

示例10: createDialogArea

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
	Composite composite= (Composite) super.createDialogArea(parent);
	initializeDialogUnits(parent);

	GridLayout layout= (GridLayout) composite.getLayout();
	layout.numColumns= 2;

	fNameDialogField.doFillIntoGrid(composite, 3);

	fNameDialogField.getChangeControl(null).setVisible(!fIsEditingMember);

	LayoutUtil.setHorizontalSpan(fNameDialogField.getLabelControl(null), 2);

	int fieldWidthHint= convertWidthInCharsToPixels(60);
	Text text= fNameDialogField.getTextControl(null);
	LayoutUtil.setWidthHint(text, fieldWidthHint);
	LayoutUtil.setHorizontalGrabbing(text);
	LayoutUtil.setHorizontalSpan(text, fIsEditingMember ? 2 : 1);
	TextFieldNavigationHandler.install(text);

	DialogField.createEmptySpace(composite, 1);

	fNameDialogField.postSetFocusOnDialogField(parent.getDisplay());


	applyDialogFont(composite);
	return composite;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:30,代码来源:CodeAssistFavoritesConfigurationBlock.java

示例11: createDialogArea

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
	Composite composite= (Composite) super.createDialogArea(parent);
	initializeDialogUnits(parent);

	GridLayout layout= (GridLayout) composite.getLayout();
	layout.numColumns= 2;

	fNameDialogField.doFillIntoGrid(composite, 3);

	fNameDialogField.getChangeControl(null).setVisible(!fIsEditingMember);

	LayoutUtil.setHorizontalSpan(fNameDialogField.getLabelControl(null), 2);

	int fieldWidthHint= convertWidthInCharsToPixels(60);
	Text text= fNameDialogField.getTextControl(null);
	LayoutUtil.setWidthHint(text, fieldWidthHint);
	LayoutUtil.setHorizontalGrabbing(text);
	LayoutUtil.setHorizontalSpan(text, fIsEditingMember ? 2 : 1);
	BidiUtils.applyBidiProcessing(text, StructuredTextTypeHandlerFactory.JAVA);
	TextFieldNavigationHandler.install(text);

	DialogField.createEmptySpace(composite, 1);

	fNameDialogField.postSetFocusOnDialogField(parent.getDisplay());


	applyDialogFont(composite);
	return composite;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:31,代码来源:CodeAssistFavoritesConfigurationBlock.java

示例12: createDialogArea

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
	Composite composite= (Composite) super.createDialogArea(parent);
	initializeDialogUnits(parent);

	GridLayout layout= (GridLayout) composite.getLayout();
	layout.numColumns= 2;

	fNameDialogField.doFillIntoGrid(composite, 3);

	LayoutUtil.setHorizontalSpan(fNameDialogField.getLabelControl(null), 2);

	int fieldWidthHint= convertWidthInCharsToPixels(60);
	Text text= fNameDialogField.getTextControl(null);
	LayoutUtil.setWidthHint(text, fieldWidthHint);
	LayoutUtil.setHorizontalGrabbing(text);
	BidiUtils.applyBidiProcessing(text, StructuredTextTypeHandlerFactory.JAVA);
	TextFieldNavigationHandler.install(text);

	DialogField.createEmptySpace(composite, 1);
	fBrowseTypeButton.doFillIntoGrid(composite, 1);

	fNameDialogField.postSetFocusOnDialogField(parent.getDisplay());

	applyDialogFont(composite);
	return composite;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:28,代码来源:ImportOrganizeInputDialog.java

示例13: createContents

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
public Control createContents(Composite parent) {
	fShell= parent.getShell();

	Composite inner= new Composite(parent, SWT.NONE);
	inner.setFont(parent.getFont());
	inner.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

	int nColumns= 3;

	GridLayout layout= new GridLayout(nColumns, false);
	layout.marginWidth= 0;
	layout.marginWidth= 0;
	inner.setLayout(layout);

	PixelConverter converter= new PixelConverter(parent);

	Label desc= new Label(inner, SWT.WRAP);
	desc.setFont(inner.getFont());
	desc.setText(Messages.format(NewWizardMessages.NativeLibrariesDialog_description, new String[] { BasicElementLabels.getResourceName(fEntry.getPath().lastSegment()) }));
	GridData gridData= new GridData(GridData.FILL, GridData.CENTER, false, false, 3, 1);
	gridData.widthHint= converter.convertWidthInCharsToPixels(80);
	desc.setLayoutData(gridData);

	fPathField.doFillIntoGrid(inner, 2);
	LayoutUtil.setHorizontalGrabbing(fPathField.getTextControl(null));
	LayoutUtil.setWidthHint(fPathField.getTextControl(null), converter.convertWidthInCharsToPixels(50));

	fBrowseExternal.doFillIntoGrid(inner, 1);

	DialogField.createEmptySpace(inner, 2);
	fBrowseWorkspace.doFillIntoGrid(inner, 1);

	fPathField.setFocus();

	return parent;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:37,代码来源:NativeLibrariesConfigurationBlock.java

示例14: createDialogArea

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
	Composite composite= (Composite) super.createDialogArea(parent);

	Composite inner= new Composite(composite, SWT.NONE);
	inner.setFont(composite.getFont());

	GridLayout layout= new GridLayout();
	layout.marginWidth= 0;
	layout.marginHeight= 0;
	layout.numColumns= 4;
	inner.setLayout(layout);

	int fieldWidthHint= convertWidthInCharsToPixels(50);

	fNameField.doFillIntoGrid(inner, 2);
	LayoutUtil.setWidthHint(fNameField.getTextControl(null), fieldWidthHint);
	LayoutUtil.setHorizontalGrabbing(fNameField.getTextControl(null));

	DialogField.createEmptySpace(inner, 2);

	fPathField.doFillIntoGrid(inner, 3);
	LayoutUtil.setWidthHint(fPathField.getTextControl(null), fieldWidthHint);
	BidiUtils.applyBidiProcessing(fPathField.getTextControl(null), StructuredTextTypeHandlerFactory.FILE);

	fDirButton.doFillIntoGrid(inner, 1);

	DialogField focusField= (fElement == null) ? fNameField : fPathField;
	focusField.postSetFocusOnDialogField(parent.getDisplay());
	applyDialogFont(composite);
	return composite;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:33,代码来源:VariableCreationDialog.java

示例15: createPackageControls

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
private void createPackageControls(Composite composite, int nColumns) {
	fPackageDialogField.doFillIntoGrid(composite, nColumns - 1);
	Text text= fPackageDialogField.getTextControl(null);
	LayoutUtil.setWidthHint(text, getMaxFieldWidth());
	LayoutUtil.setHorizontalGrabbing(text);
	DialogField.createEmptySpace(composite);

	TextFieldNavigationHandler.install(text);
	
	fCreatePackageInfoJavaDialogField.doFillIntoGrid(composite, nColumns);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:12,代码来源:NewPackageWizardPage.java


注:本文中的org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField.createEmptySpace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。