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


Java DialogField类代码示例

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


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

示例1: NewAsyncRemoteServiceInterfaceCreationWizardPage

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入依赖的package包/类
public NewAsyncRemoteServiceInterfaceCreationWizardPage(
    ITypeBinding syncTypeBinding) {
  super();
  this.syncTypeBinding = syncTypeBinding;
  syncTypeDialogField = new StringButtonDialogField(
      new IStringButtonAdapter() {
        public void changeControlPressed(DialogField field) {
          // Purposely ignored
        }
      });
  syncTypeDialogField.setButtonLabel("Browse...");
  syncTypeDialogField.setLabelText("Synchronous type:");
  syncTypeDialogField.setEnabled(false);
  syncTypeDialogField.setText(syncTypeBinding.getQualifiedName());
  ImageDescriptor imageDescriptor = GWTPlugin.getDefault().getImageRegistry().getDescriptor(
      GWTImages.NEW_ASYNC_INTERFACE_LARGE);
  setImageDescriptor(imageDescriptor);
  setDescription("Create a new asynchronous remote service interface");
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:20,代码来源:NewAsyncRemoteServiceInterfaceCreationWizardPage.java

示例2: changeControlPressed

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入依赖的package包/类
public void changeControlPressed(DialogField field) {
	final DirectoryDialog dialog= new DirectoryDialog(getShell());
	dialog.setMessage(NewWizardMessages.AddSourceFolderWizardPage_directory_message);
	String directoryName = fLinkLocation.getText().trim();
	if (directoryName.length() == 0) {
		String prevLocation= JavaPlugin.getDefault().getDialogSettings().get(DIALOGSTORE_LAST_EXTERNAL_LOC);
		if (prevLocation != null) {
			directoryName= prevLocation;
		}
	}

	if (directoryName.length() > 0) {
		final File path = new File(directoryName);
		if (path.exists())
			dialog.setFilterPath(directoryName);
	}
	final String selectedDirectory = dialog.open();
	if (selectedDirectory != null) {
		fLinkLocation.setText(selectedDirectory);
		fRootDialogField.setText(selectedDirectory.substring(selectedDirectory.lastIndexOf(File.separatorChar) + 1));
		JavaPlugin.getDefault().getDialogSettings().put(DIALOGSTORE_LAST_EXTERNAL_LOC, selectedDirectory);
		if (fAdapter != null) {
			fAdapter.dialogFieldChanged(fRootDialogField);
		}
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:27,代码来源:AddSourceFolderWizardPage.java

示例3: getControl

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入依赖的package包/类
@Override
public Control getControl(Composite parent) {
	PixelConverter converter= new PixelConverter(parent);
	Composite composite= new Composite(parent, SWT.NONE);

	LayoutUtil.doDefaultLayout(composite, new DialogField[] { fFoldersList, fUseFolderOutputs , fOutputLocationField}, true, SWT.DEFAULT, SWT.DEFAULT);
	LayoutUtil.setHorizontalGrabbing(fFoldersList.getTreeControl(null));

	int buttonBarWidth= converter.convertWidthInCharsToPixels(24);
	fFoldersList.setButtonsMinWidth(buttonBarWidth);

	fSWTControl= composite;

	// expand
	List<CPListElement> elements= fFoldersList.getElements();
	for (int i= 0; i < elements.size(); i++) {
		CPListElement elem= elements.get(i);
		IPath[] exclusionPatterns= (IPath[]) elem.getAttribute(CPListElement.EXCLUSION);
		IPath[] inclusionPatterns= (IPath[]) elem.getAttribute(CPListElement.INCLUSION);
		IPath output= (IPath) elem.getAttribute(CPListElement.OUTPUT);
		if (exclusionPatterns.length > 0 || inclusionPatterns.length > 0 || output != null) {
			fFoldersList.expandElement(elem, 3);
		}
	}
	return composite;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:27,代码来源:SourceContainerWorkbookPage.java

示例4: attachmentDialogFieldChanged

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入依赖的package包/类
private void attachmentDialogFieldChanged(DialogField field) {
	if (field == fVariableFileNameField) {
		fVariableNameStatus= updateFileNameStatus(fVariableFileNameField);
	} else if (field == fWorkspaceFileNameField) {
		fWorkspaceNameStatus= updateFileNameStatus(fWorkspaceFileNameField);
	} else if (field == fExternalFileNameField) {
		fExternalNameStatus= updateFileNameStatus(fExternalFileNameField);
	} else if (field == fExternalFolderButton) {
		IPath folderPath= chooseExtFolder();
		if (folderPath != null) {
			fExternalFileNameField.setText(folderPath.toString());
		}
		return;
	}
	doStatusLineUpdate();
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:17,代码来源:SourceAttachmentBlock.java

示例5: 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);
	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-Juno38,代码行数:27,代码来源:ImportOrganizeInputDialog.java

示例6: 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-Juno38,代码行数:29,代码来源:NewTypeWizardPage.java

示例7: 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);

	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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:18,代码来源:HistoryListAction.java

示例8: updateModel

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入依赖的package包/类
protected final void updateModel(DialogField field) {
	if (field == fTodoTasksList) {
		StringBuffer tags= new StringBuffer();
		StringBuffer prios= new StringBuffer();
		List<TodoTask> list= fTodoTasksList.getElements();
		for (int i= 0; i < list.size(); i++) {
			if (i > 0) {
				tags.append(',');
				prios.append(',');
			}
			TodoTask elem= list.get(i);
			tags.append(elem.name);
			prios.append(elem.priority);
		}
		setValue(PREF_COMPILER_TASK_TAGS, tags.toString());
		setValue(PREF_COMPILER_TASK_PRIORITIES, prios.toString());
		validateSettings(PREF_COMPILER_TASK_TAGS, null, null);
	} else if (field == fCaseSensitiveCheckBox) {
		String state= fCaseSensitiveCheckBox.isSelected() ? ENABLED : DISABLED;
		setValue(PREF_COMPILER_TASK_CASE_SENSITIVE, state);
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:23,代码来源:TodoTaskConfigurationBlock.java

示例9: 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);
	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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:20,代码来源:TypeFilterInputDialog.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);
	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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:26,代码来源:UserLibraryPreferencePage.java

示例11: 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);

	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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:19,代码来源:HistoryListAction.java

示例12: ClasspathContainerDefaultPage

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入依赖的package包/类
/**
 * Constructor for ClasspathContainerDefaultPage.
 */
public ClasspathContainerDefaultPage() {
	super("ClasspathContainerDefaultPage"); //$NON-NLS-1$
	setTitle(NewWizardMessages.ClasspathContainerDefaultPage_title);
	setDescription(NewWizardMessages.ClasspathContainerDefaultPage_description);
	setImageDescriptor(JavaPluginImages.DESC_WIZBAN_ADD_LIBRARY);

	fUsedPaths= new ArrayList<IPath>();

	fEntryField= new StringDialogField();
	fEntryField.setLabelText(NewWizardMessages.ClasspathContainerDefaultPage_path_label);
	fEntryField.setDialogFieldListener(new IDialogFieldListener() {
		public void dialogFieldChanged(DialogField field) {
			validatePath();
		}
	});
	validatePath();
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:21,代码来源:ClasspathContainerDefaultPage.java

示例13: 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);
	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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:19,代码来源:TypeFilterInputDialog.java

示例14: sourcePageDialogFieldChanged

import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入依赖的package包/类
private void sourcePageDialogFieldChanged(DialogField field) {
	if (fCurrJProject == null) {
		// not initialized
		return;
	}

	if (field == fUseFolderOutputs) {
		if (!fUseFolderOutputs.isSelected()) {
			int nFolders= fFoldersList.getSize();
			for (int i= 0; i < nFolders; i++) {
				CPListElement cpe= fFoldersList.getElement(i);
				cpe.setAttribute(CPListElement.OUTPUT, null);
			}
		}
		fFoldersList.refresh();
		fFoldersList.dialogFieldChanged(); // validate
	} else if (field == fFoldersList) {
		updateClasspathList();
		fClassPathList.dialogFieldChanged(); // validate
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:22,代码来源:SourceContainerWorkbookPage.java

示例15: 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


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