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


Java IDialogFieldListener类代码示例

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


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

示例1: SourceFirstPackageSelectionDialogField

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
public SourceFirstPackageSelectionDialogField(String sourceLabel, String packageLabel, String browseLabel1,
	String browseLabel2, String statusHint, String dialogTitle, String dialogMessage, String dialogEmptyMessage,
	ICompilationUnit cu, IDialogFieldListener updateListener, IPackageFragment fragment) {
	fSourceFolderSelection= new SourceFolderSelectionDialogButtonField(sourceLabel, browseLabel1, 	new SFStringButtonAdapter());

	fPackageSelection= new PackageFragmentSelection(this, packageLabel, browseLabel2, statusHint,
		new PackageSelectionStringButtonAdapter(this, dialogTitle, dialogMessage, dialogEmptyMessage));
	fPackageSelection.setDialogFieldListener(new PackageSelectionDialogFieldListener());

	fSourceFolderSelection.setSourceChangeListener(fPackageSelection);

	setDefaults(fragment, cu);

	fPackageSelection.setUpdateListener(updateListener);
	fSourceFolderSelection.setUpdateListener(updateListener);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:17,代码来源:SourceFirstPackageSelectionDialogField.java

示例2: initialize

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
public void initialize(final IScopeContext context, IAdaptable element) {
	boolean enabled= isEnabled(context);
	fEnableField.setSelection(enabled);

	fEnableField.setDialogFieldListener(new IDialogFieldListener() {
		public void dialogFieldChanged(DialogField field) {
			fContext.getNode(JavaUI.ID_PLUGIN).putBoolean(getPreferenceKey(), fEnableField.isSelected());
			enabled(fEnableField.isSelected());
		}

	});

	fContext= context;

	enabled(enabled);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:20,代码来源:AbstractSaveParticipantPreferenceConfiguration.java

示例3: createMaxEntriesField

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
private void createMaxEntriesField() {
	fMaxEntriesField= new StringDialogField();
	fMaxEntriesField.setLabelText(fHistory.getMaxEntriesMessage());
	fMaxEntriesField.setDialogFieldListener(new IDialogFieldListener() {
		public void dialogFieldChanged(DialogField field) {
			String maxString= fMaxEntriesField.getText();
			boolean valid;
			try {
				fMaxEntries= Integer.parseInt(maxString);
				valid= fMaxEntries > 0 && fMaxEntries < MAX_MAX_ENTRIES;
			} catch (NumberFormatException e) {
				valid= false;
			}
			if (valid)
				updateStatus(StatusInfo.OK_STATUS);
			else
				updateStatus(new StatusInfo(IStatus.ERROR, Messages.format(JavaUIMessages.HistoryListAction_max_entries_constraint, Integer.toString(MAX_MAX_ENTRIES))));
		}
	});
	fMaxEntriesField.setText(Integer.toString(fHistory.getMaxEntries()));
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:22,代码来源:HistoryListAction.java

示例4: performDefaults

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void performDefaults() {
	super.performDefaults();
	if (fCurrContext == null)
		return;

	fCurrContext.getNode(JavaUI.ID_PLUGIN).remove(CleanUpConstants.SHOW_CLEAN_UP_WIZARD);
	boolean showWizard= DefaultScope.INSTANCE.getNode(JavaUI.ID_PLUGIN).getBoolean(CleanUpConstants.SHOW_CLEAN_UP_WIZARD, true);
	fShowCleanUpWizardDialogField.setDialogFieldListener(null);
	fShowCleanUpWizardDialogField.setSelection(showWizard);
	fShowCleanUpWizardDialogField.setDialogFieldListener(new IDialogFieldListener() {
		public void dialogFieldChanged(DialogField field) {
			doShowCleanUpWizard(fShowCleanUpWizardDialogField.isSelected());
           }
    });
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:20,代码来源:CleanUpConfigurationBlock.java

示例5: ClasspathContainerDefaultPage

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的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,代码行数:21,代码来源:ClasspathContainerDefaultPage.java

示例6: ModuleSelectionDialogButtonField

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
public ModuleSelectionDialogButtonField(WizardPage page,
    IDialogFieldListener changeListener) {
  super();
  this.page = page;
  this.browseButtonEnabled = true;
  setDialogFieldListener(changeListener);
  setContentAssistProcessor(new ModuleCompletionProcessor());

  status = new StatusInfo();
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:11,代码来源:ModuleSelectionDialogButtonField.java

示例7: createContents

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
@Override
protected Control createContents(Composite parent) {
	// Create both the dialog lists
	Composite sortComposite= new Composite(parent, SWT.NONE);
	sortComposite.setFont(parent.getFont());

	GridLayout layout= new GridLayout();
	layout.numColumns= 2;
	layout.marginWidth= 0;
	layout.marginHeight= 0;
	sortComposite.setLayout(layout);

	GridData gd= new GridData();
	gd.verticalAlignment= GridData.FILL;
	gd.horizontalAlignment= GridData.FILL_HORIZONTAL;
	sortComposite.setLayoutData(gd);

	createListDialogField(sortComposite, fSortOrderList);

	fUseVisibilitySortField= new SelectionButtonDialogField(SWT.CHECK);
	fUseVisibilitySortField.setDialogFieldListener(new IDialogFieldListener() {
		public void dialogFieldChanged(DialogField field) {
			fVisibilityOrderList.setEnabled(fUseVisibilitySortField.isSelected());
		}
	});
	fUseVisibilitySortField.setLabelText(PreferencesMessages.MembersOrderPreferencePage_usevisibilitysort_label);
	fUseVisibilitySortField.doFillIntoGrid(sortComposite, 2);
	fUseVisibilitySortField.setSelection(fUseVisibilitySort);

	createListDialogField(sortComposite, fVisibilityOrderList);
	fVisibilityOrderList.setEnabled(fUseVisibilitySortField.isSelected());

	Dialog.applyDialogFont(sortComposite);

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

示例8: createContents

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public Composite createContents(Composite parent) {
    Composite composite= super.createContents(parent);

    if (fCurrContext == null)
    	return composite;

    fShowCleanUpWizardDialogField= new SelectionButtonDialogField(SWT.CHECK);
	fShowCleanUpWizardDialogField.setLabelText(CleanUpMessages.CleanUpConfigurationBlock_ShowCleanUpWizard_checkBoxLabel);
    fShowCleanUpWizardDialogField.doFillIntoGrid(composite, 5);

    IEclipsePreferences node= fCurrContext.getNode(JavaUI.ID_PLUGIN);
	boolean showWizard;
	if (node.get(CleanUpConstants.SHOW_CLEAN_UP_WIZARD, null) != null) {
		showWizard= node.getBoolean(CleanUpConstants.SHOW_CLEAN_UP_WIZARD, true);
	} else {
		showWizard= DefaultScope.INSTANCE.getNode(JavaUI.ID_PLUGIN).getBoolean(CleanUpConstants.SHOW_CLEAN_UP_WIZARD, true);
	}
	if (showWizard)
		fShowCleanUpWizardDialogField.setSelection(true);

    fShowCleanUpWizardDialogField.setDialogFieldListener(new IDialogFieldListener() {
		public void dialogFieldChanged(DialogField field) {
			doShowCleanUpWizard(fShowCleanUpWizardDialogField.isSelected());
           }
    });

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

示例9: LinkFields

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
public LinkFields() {
	fLinkLocation= new StringButtonDialogField(this);

	fLinkLocation.setLabelText(NewWizardMessages.LinkFolderDialog_dependenciesGroup_locationLabel_desc);
	fLinkLocation.setButtonLabel(NewWizardMessages.LinkFolderDialog_dependenciesGroup_browseButton_desc);
	fLinkLocation.setDialogFieldListener(this);			

	fVariables= new SelectionButtonDialogField(SWT.PUSH);
	fVariables.setLabelText(NewWizardMessages.LinkFolderDialog_dependenciesGroup_variables_desc);
	fVariables.setDialogFieldListener(new IDialogFieldListener() {
		public void dialogFieldChanged(DialogField field) {
			handleVariablesButtonPressed();
		}
	});
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:16,代码来源:AddSourceFolderWizardPage.java

示例10: LinkFields

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
public LinkFields() {
	fLinkLocation= new StringButtonDialogField(this);

	fLinkLocation.setLabelText(NewWizardMessages.LinkFolderDialog_dependenciesGroup_locationLabel_desc);
	fLinkLocation.setButtonLabel(NewWizardMessages.LinkFolderDialog_dependenciesGroup_browseButton_desc);
	fLinkLocation.setDialogFieldListener(this);

	fVariables= new SelectionButtonDialogField(SWT.PUSH);
	fVariables.setLabelText(NewWizardMessages.LinkFolderDialog_dependenciesGroup_variables_desc);
	fVariables.setDialogFieldListener(new IDialogFieldListener() {
		public void dialogFieldChanged(DialogField field) {
			handleVariablesButtonPressed();
		}
	});
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:16,代码来源:AddSourceFolderWizardPage.java

示例11: setUpdateListener

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
public void setUpdateListener(IDialogFieldListener updateListener) {
	fUpdateListener= updateListener;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:SourceFolderSelectionDialogButtonField.java

示例12: createMessageArea

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
@Override
protected Control createMessageArea(Composite parent) {
	initializeDialogUnits(parent);

	Composite messageComposite= new Composite(parent, SWT.NONE);
	messageComposite.setFont(parent.getFont());
	GridLayout layout= new GridLayout();
	layout.numColumns= 1;
	layout.marginHeight= 0;
	layout.marginWidth= 0;
	layout.verticalSpacing= convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
	layout.horizontalSpacing= convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
	messageComposite.setLayout(layout);
	messageComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

	createLinkControl(messageComposite);

	fNotSortAllRadio.doFillIntoGrid(messageComposite, 1);
	LayoutUtil.setHorizontalIndent(fNotSortAllRadio.getSelectionButton(null));

	fSortAllRadio.doFillIntoGrid(messageComposite, 1);
	LayoutUtil.setHorizontalIndent(fSortAllRadio.getSelectionButton(null));

	final Composite warningComposite= new Composite(messageComposite, SWT.NONE);
	layout= new GridLayout();
	layout.numColumns= 2;
	layout.marginWidth= 0;
	layout.marginHeight= 0;
	warningComposite.setLayout(layout);
	warningComposite.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
	warningComposite.setFont(messageComposite.getFont());

	Image image= Dialog.getImage(Dialog.DLG_IMG_MESSAGE_WARNING);
	final Label imageLabel1= new Label(warningComposite, SWT.LEFT | SWT.WRAP);
	imageLabel1.setImage(image);
	imageLabel1.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 1, 1));

	final Label label= new Label(warningComposite, SWT.WRAP);
	label.setText(DialogsMessages.SortMembersMessageDialog_sort_warning_label);
	GridData gridData= new GridData(GridData.FILL, GridData.CENTER, true, false, 1, 1);
	gridData.widthHint= convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH);
	label.setLayoutData(gridData);
	label.setFont(warningComposite.getFont());

	fNotSortAllRadio.setDialogFieldListener(new IDialogFieldListener() {
		public void dialogFieldChanged(DialogField field) {
			imageLabel1.setEnabled(!fNotSortAllRadio.isSelected());
			label.setEnabled(!fNotSortAllRadio.isSelected());
		}
	});
	imageLabel1.setEnabled(!fNotSortAllRadio.isSelected());
	label.setEnabled(!fNotSortAllRadio.isSelected());

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

示例13: createDescriptionLabel

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
@Override
protected Label createDescriptionLabel(Composite parent) {
	fParentComposite= parent;
	if (isProjectPreferencePage()) {
		Composite composite= new Composite(parent, SWT.NONE);
		composite.setFont(parent.getFont());
		GridLayout layout= new GridLayout();
		layout.marginHeight= 0;
		layout.marginWidth= 0;
		layout.numColumns= 2;
		composite.setLayout(layout);
		composite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

		IDialogFieldListener listener= new IDialogFieldListener() {
			public void dialogFieldChanged(DialogField field) {
				boolean enabled= ((SelectionButtonDialogField) field).isSelected();
				enableProjectSpecificSettings(enabled);

				if (enabled && getData() != null) {
					applyData(getData());
				}
			}
		};

		fUseProjectSettings= new SelectionButtonDialogField(SWT.CHECK);
		fUseProjectSettings.setDialogFieldListener(listener);
		fUseProjectSettings.setLabelText(PreferencesMessages.PropertyAndPreferencePage_useprojectsettings_label);
		fUseProjectSettings.doFillIntoGrid(composite, 1);
		LayoutUtil.setHorizontalGrabbing(fUseProjectSettings.getSelectionButton(null));

		if (offerLink()) {
			fChangeWorkspaceSettings= createLink(composite, PreferencesMessages.PropertyAndPreferencePage_useworkspacesettings_change);
			fChangeWorkspaceSettings.setLayoutData(new GridData(SWT.END, SWT.CENTER, false, false));
		} else {
			LayoutUtil.setHorizontalSpan(fUseProjectSettings.getSelectionButton(null), 2);
		}

		Label horizontalLine= new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);
		horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));
		horizontalLine.setFont(composite.getFont());
	} else if (supportsProjectSpecificOptions() && offerLink()) {
		fChangeWorkspaceSettings= createLink(parent, PreferencesMessages.PropertyAndPreferencePage_showprojectspecificsettings_label);
		fChangeWorkspaceSettings.setLayoutData(new GridData(SWT.END, SWT.CENTER, true, false));
	}

	return super.createDescriptionLabel(parent);
   }
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:48,代码来源:PropertyAndPreferencePage.java

示例14: AppearancePreferencePage

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
public AppearancePreferencePage() {
	setPreferenceStore(JavaPlugin.getDefault().getPreferenceStore());
	setDescription(PreferencesMessages.AppearancePreferencePage_description);

	IDialogFieldListener listener= new IDialogFieldListener() {
		public void dialogFieldChanged(DialogField field) {
			doDialogFieldChanged(field);
		}
	};

	fShowMethodReturnType= new SelectionButtonDialogField(SWT.CHECK);
	fShowMethodReturnType.setDialogFieldListener(listener);
	fShowMethodReturnType.setLabelText(PreferencesMessages.AppearancePreferencePage_methodreturntype_label);

	fShowMethodTypeParameters= new SelectionButtonDialogField(SWT.CHECK);
	fShowMethodTypeParameters.setDialogFieldListener(listener);
	fShowMethodTypeParameters.setLabelText(PreferencesMessages.AppearancePreferencePage_methodtypeparams_label);

	fShowCategory= new SelectionButtonDialogField(SWT.CHECK);
	fShowCategory.setDialogFieldListener(listener);
	fShowCategory.setLabelText(PreferencesMessages.AppearancePreferencePage_showCategory_label);

	fShowMembersInPackageView= new SelectionButtonDialogField(SWT.CHECK);
	fShowMembersInPackageView.setDialogFieldListener(listener);
	fShowMembersInPackageView.setLabelText(PreferencesMessages.AppearancePreferencePage_showMembersInPackagesView);

	fStackBrowsingViewsVertically= new SelectionButtonDialogField(SWT.CHECK);
	fStackBrowsingViewsVertically.setDialogFieldListener(listener);
	fStackBrowsingViewsVertically.setLabelText(PreferencesMessages.AppearancePreferencePage_stackViewsVerticallyInTheJavaBrowsingPerspective);

	fFoldPackagesInPackageExplorer= new SelectionButtonDialogField(SWT.CHECK);
	fFoldPackagesInPackageExplorer.setDialogFieldListener(listener);
	fFoldPackagesInPackageExplorer.setLabelText(PreferencesMessages.AppearancePreferencePage_foldEmptyPackages);

	fCompressPackageNames= new SelectionButtonDialogField(SWT.CHECK);
	fCompressPackageNames.setDialogFieldListener(listener);
	fCompressPackageNames.setLabelText(PreferencesMessages.AppearancePreferencePage_pkgNamePatternEnable_label);

	fPackageNamePattern= new StringDialogField();
	fPackageNamePattern.setDialogFieldListener(listener);
	fPackageNamePattern.setLabelText(PreferencesMessages.AppearancePreferencePage_pkgNamePattern_label);

	fAbbreviatePackageNames= new SelectionButtonDialogField(SWT.CHECK);
	fAbbreviatePackageNames.setDialogFieldListener(listener);
	fAbbreviatePackageNames.setLabelText(PreferencesMessages.AppearancePreferencePage_pkgNamePatternAbbreviateEnable_label);
	
	fAbbreviatePackageNamePattern= new TextBoxDialogField();
	fAbbreviatePackageNamePattern.setDialogFieldListener(listener);
	fAbbreviatePackageNamePattern.setLabelText(PreferencesMessages.AppearancePreferencePage_pkgNamePatternAbbreviate_label);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:51,代码来源:AppearancePreferencePage.java

示例15: createMessageArea

import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener; //导入依赖的package包/类
@Override
protected Control createMessageArea(Composite parent) {
	initializeDialogUnits(parent);

	Composite messageComposite= new Composite(parent, SWT.NONE);
	messageComposite.setFont(parent.getFont());
	GridLayout layout= new GridLayout();
	layout.numColumns= 1;
	layout.marginHeight= 0;
	layout.marginWidth= 0;
	layout.verticalSpacing= convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
	layout.horizontalSpacing= convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
	messageComposite.setLayout(layout);
	messageComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

	createLinkControl(messageComposite);

	int indent= convertWidthInCharsToPixels(3);

	fNotSortAllRadio.doFillIntoGrid(messageComposite, 1);
	LayoutUtil.setHorizontalIndent(fNotSortAllRadio.getSelectionButton(null), indent);

	fSortAllRadio.doFillIntoGrid(messageComposite, 1);
	LayoutUtil.setHorizontalIndent(fSortAllRadio.getSelectionButton(null), indent);

	final Composite warningComposite= new Composite(messageComposite, SWT.NONE);
	layout= new GridLayout();
	layout.numColumns= 2;
	layout.marginWidth= 0;
	layout.marginHeight= 0;
	warningComposite.setLayout(layout);
	warningComposite.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
	warningComposite.setFont(messageComposite.getFont());

	Image image= Dialog.getImage(Dialog.DLG_IMG_MESSAGE_WARNING);
	final Label imageLabel1= new Label(warningComposite, SWT.LEFT | SWT.WRAP);
	imageLabel1.setImage(image);
	imageLabel1.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, false, false, 1, 1));

	final Label label= new Label(warningComposite, SWT.WRAP);
	label.setText(DialogsMessages.SortMembersMessageDialog_sort_warning_label);
	GridData gridData= new GridData(GridData.FILL, GridData.CENTER, true, false, 1, 1);
	gridData.widthHint= convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH);
	label.setLayoutData(gridData);
	label.setFont(warningComposite.getFont());

	fNotSortAllRadio.setDialogFieldListener(new IDialogFieldListener() {
		public void dialogFieldChanged(DialogField field) {
			imageLabel1.setEnabled(!fNotSortAllRadio.isSelected());
			label.setEnabled(!fNotSortAllRadio.isSelected());
		}
	});
	imageLabel1.setEnabled(!fNotSortAllRadio.isSelected());
	label.setEnabled(!fNotSortAllRadio.isSelected());

	return messageComposite;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:58,代码来源:SortMembersMessageDialog.java


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