本文整理汇总了Java中org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField.setLabelText方法的典型用法代码示例。如果您正苦于以下问题:Java DialogField.setLabelText方法的具体用法?Java DialogField.setLabelText怎么用?Java DialogField.setLabelText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField
的用法示例。
在下文中一共展示了DialogField.setLabelText方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: NameConventionInputDialog
import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
public NameConventionInputDialog(Shell parent, String title, String message, NameConventionEntry entry) {
super(parent);
fEntry= entry;
setTitle(title);
fMessageField= new DialogField();
fMessageField.setLabelText(message);
fPrefixField= new StringDialogField();
fPrefixField.setLabelText(PreferencesMessages.NameConventionConfigurationBlock_dialog_prefix);
fPrefixField.setDialogFieldListener(this);
fSuffixField= new StringDialogField();
fSuffixField.setLabelText(PreferencesMessages.NameConventionConfigurationBlock_dialog_suffix);
fSuffixField.setDialogFieldListener(this);
fPrefixField.setText(entry.prefix);
fSuffixField.setText(entry.suffix);
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:21,代码来源:NameConventionConfigurationBlock.java
示例2: NLSInputDialog
import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField; //导入方法依赖的package包/类
public NLSInputDialog(Shell parent, NLSSubstitution substitution) {
super(parent);
setTitle(NLSUIMessages.ExternalizeWizardPage_NLSInputDialog_Title);
fSubstitution= substitution;
fMessageField= new DialogField();
if (substitution.getState() == NLSSubstitution.EXTERNALIZED) {
fMessageField.setLabelText(NLSUIMessages.ExternalizeWizardPage_NLSInputDialog_ext_Label);
} else {
fMessageField.setLabelText(NLSUIMessages.ExternalizeWizardPage_NLSInputDialog_Label);
}
fKeyField= new StringDialogField();
fKeyField.setLabelText(NLSUIMessages.ExternalizeWizardPage_NLSInputDialog_Enter_key);
fKeyField.setDialogFieldListener(this);
fValueField= new StringDialogField();
fValueField.setLabelText(NLSUIMessages.ExternalizeWizardPage_NLSInputDialog_Enter_value);
fValueField.setDialogFieldListener(this);
if (substitution.getState() == NLSSubstitution.EXTERNALIZED) {
fKeyField.setText(substitution.getKeyWithoutPrefix());
} else {
fKeyField.setText(""); //$NON-NLS-1$
}
fValueField.setText(substitution.getValueNonEmpty());
}
示例3: 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(parent.getFont());
GridLayout layout= new GridLayout();
layout.marginHeight= 0;
layout.marginWidth= 0;
layout.numColumns= 2;
inner.setLayout(layout);
inner.setLayoutData(new GridData(GridData.FILL_BOTH));
DialogField labelField= new DialogField();
labelField.setLabelText(Messages.format(NewWizardMessages.ExclusionInclusionDialog_description, BasicElementLabels.getPathLabel(fCurrElement.getPath(), false)));
labelField.doFillIntoGrid(inner, 2);
fInclusionPatternList.doFillIntoGrid(inner, 3);
LayoutUtil.setHorizontalSpan(fInclusionPatternList.getLabelControl(null), 2);
LayoutUtil.setHorizontalGrabbing(fInclusionPatternList.getListControl(null));
fExclusionPatternList.doFillIntoGrid(inner, 3);
LayoutUtil.setHorizontalSpan(fExclusionPatternList.getLabelControl(null), 2);
LayoutUtil.setHorizontalGrabbing(fExclusionPatternList.getListControl(null));
applyDialogFont(composite);
return composite;
}