Java Code Examples for org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField#setLabelText()
The following examples show how to use
org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField#setLabelText() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NameConventionConfigurationBlock.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
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); }
Example 2
Source File: ExternalizeWizardPage.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
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()); }
Example 3
Source File: ExclusionInclusionDialog.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@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; }