/** * Creates a new action for the given text editor. The action configures its * visual representation from the given resource bundle. * * @param bundle the resource bundle * @param prefix a prefix to be prepended to the various resource keys * (described in <code>ResourceAction</code> constructor), or * <code>null</code> if none * @param editor the text editor * @see TextEditorAction#TextEditorAction(ResourceBundle, String, ITextEditor) */ public ChangeEncodingAction(ResourceBundle bundle, String prefix, ITextEditor editor) { super(bundle, prefix, editor); String key= "dialog.title"; //$NON-NLS-1$; if (prefix != null && prefix.length() > 0) key= prefix + key; fDialogTitle= getString(bundle, key, null); }
/** * Creates a new action for the given text editor. The action configures its visual * representation from the given resource bundle. * * @param bundle the resource bundle * @param prefix a prefix to be prepended to the various resource keys (described in * <code>ResourceAction</code> constructor), or <code>null</code> if none * @param editor the text editor * @see TextEditorAction#TextEditorAction(ResourceBundle, String, ITextEditor) */ public ChangeEncodingAction(ResourceBundle bundle, String prefix, ITextEditor editor) { super(bundle, prefix, editor); String key= "dialog.title"; //$NON-NLS-1$; if (prefix != null && prefix.length() > 0) key= prefix + key; fDialogTitle= getString(bundle, key, null); }