/** * @param parent */ public RenameKeysDialog(Shell parent, List<NLSSubstitution> selectedSubstitutions) { super(parent); setTitle(NLSUIMessages.RenameKeysDialog_title); fSelectedSubstitutions= selectedSubstitutions; String prefix= getInitialPrefix(selectedSubstitutions); fCommonPrefixLength= prefix.length(); fNameField= new StringDialogField(); fNameField.setText(prefix); if (prefix.length() == 0) { fNameField.setLabelText(NLSUIMessages.RenameKeysDialog_description_noprefix); } else { fNameField.setLabelText(NLSUIMessages.RenameKeysDialog_description_withprefix + prefix + ':'); } }
/** * @param parent */ public RenameKeysDialog(Shell parent, List<NLSSubstitution> selectedSubstitutions) { super(parent); setTitle(NLSUIMessages.RenameKeysDialog_title); fSelectedSubstitutions= selectedSubstitutions; String prefix= getInitialPrefix(selectedSubstitutions); fCommonPrefixLength= prefix.length(); fNameField= new StringDialogField(); fNameField.setText(prefix); if (prefix.length() == 0) { fNameField.setLabelText(NLSUIMessages.RenameKeysDialog_description_noprefix); } else { fNameField.setLabelText(NLSUIMessages.RenameKeysDialog_description_withprefix + prefix + ':'); } }
/** * @param parent */ public RenameKeysDialog(Shell parent, List selectedSubstitutions) { super(parent); setTitle(NLSUIMessages.RenameKeysDialog_title); fSelectedSubstitutions= selectedSubstitutions; String prefix= getInitialPrefix(selectedSubstitutions); fCommonPrefixLength= prefix.length(); fNameField= new StringDialogField(); fNameField.setText(prefix); if (prefix.length() == 0) { fNameField.setLabelText(NLSUIMessages.RenameKeysDialog_description_noprefix); } else { fNameField.setLabelText(NLSUIMessages.RenameKeysDialog_description_withprefix + prefix + ':'); } }