/** * Creates a new find/replace action for the given workbench window. * 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 workbenchWindow the workbench window * @see ResourceAction#ResourceAction(ResourceBundle, String) * * @deprecated use FindReplaceAction(ResourceBundle, String, IWorkbenchPart) instead */ public FindReplaceAction(ResourceBundle bundle, String prefix, IWorkbenchWindow workbenchWindow) { super(bundle, prefix); fWorkbenchWindow= workbenchWindow; update(); }
/** * Creates a new find/replace action for the given workbench window. * 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 workbenchWindow the workbench window * @see ResourceAction#ResourceAction(ResourceBundle, String) * * @deprecated use FindReplaceAction(ResourceBundle, String, IWorkbenchPart) instead */ @Deprecated public FindReplaceAction(ResourceBundle bundle, String prefix, IWorkbenchWindow workbenchWindow) { super(bundle, prefix); fWorkbenchWindow= workbenchWindow; update(); }
/** * Creates a new find/replace action for the given workbench window. * 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 workbenchWindow the workbench window * @see ResourceAction#ResourceAction(ResourceBundle, String) * * @deprecated use FindReplaceAction(ResourceBundle, String, IWorkbenchPart) instead */ @Deprecated public FindReplaceAction(ResourceBundle bundle, String prefix, IWorkbenchWindow workbenchWindow) { super(bundle, prefix); fWorkbenchWindow= workbenchWindow; update(); }
/** * Creates a new find/replace action for the given workbench part. * <p> * The action configures its visual representation from the given * resource bundle.</p> * * @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 workbenchPart the workbench part * @see ResourceAction#ResourceAction(ResourceBundle, String) */ public FindReplaceAction(ResourceBundle bundle, String prefix, IWorkbenchPart workbenchPart) { super(bundle, prefix); Assert.isLegal(workbenchPart != null); fWorkbenchPart= workbenchPart; update(); }
/** * update all actions independent of their type * */ public void updateActions() { Iterator e= fActions.values().iterator(); while (e.hasNext()) { Object next = e.next(); if (next instanceof MergeViewerAction) { MergeViewerAction action = (MergeViewerAction) next; action.update(); } if (next instanceof FindReplaceAction) { FindReplaceAction action = (FindReplaceAction) next; action.update(); } } }
/** * Creates a new find/replace action for the given workbench part. * <p> * The action configures its visual representation from the given * resource bundle.</p> * * @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 workbenchPart the workbench part * @see ResourceAction#ResourceAction(ResourceBundle, String) */ public FindReplaceAction(ResourceBundle bundle, String prefix, IWorkbenchPart workbenchPart) { super(bundle, prefix); Assert.isLegal(workbenchPart != null); fWorkbenchPart= workbenchPart; update(); }
/** * Creates a new find/replace action for the given workbench part. * <p> * The action configures its visual representation from the given * resource bundle.</p> * * @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 workbenchPart the workbench part * @see ResourceAction#ResourceAction(ResourceBundle, String) */ public FindReplaceAction(ResourceBundle bundle, String prefix, IWorkbenchPart workbenchPart) { super(bundle, prefix); Assert.isLegal(workbenchPart != null); fWorkbenchPart= workbenchPart; update(); }
/** * Creates a new find/replace action for the given target and shell. * <p> * This can be used without having an IWorkbenchPart e.g. for * dialogs or wizards.</p> * <p> * The action configures its visual representation from the given * resource bundle.</p> * * @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 target the IFindReplaceTarget to use * @param shell the shell * @see ResourceAction#ResourceAction(ResourceBundle, String) * * @since 3.3 */ public FindReplaceAction(ResourceBundle bundle, String prefix, Shell shell, IFindReplaceTarget target) { super(bundle, prefix); Assert.isLegal(target != null && shell != null); fTarget= target; fShell= shell; update(); }
/** * Creates a new find/replace action for the given target and shell. * <p> * This can be used without having an IWorkbenchPart e.g. for * dialogs or wizards.</p> * <p> * The action configures its visual representation from the given * resource bundle.</p> * * @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 target the IFindReplaceTarget to use * @param shell the shell * @see ResourceAction#ResourceAction(ResourceBundle, String) * * @since 3.3 */ public FindReplaceAction(ResourceBundle bundle, String prefix, Shell shell, IFindReplaceTarget target) { super(bundle, prefix); Assert.isLegal(target != null && shell != null); fTarget= target; fShell= shell; update(); }
/** * Creates a new find/replace action for the given target and shell. * <p> * This can be used without having an IWorkbenchPart e.g. for * dialogs or wizards.</p> * <p> * The action configures its visual representation from the given * resource bundle.</p> * * @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 target the IFindReplaceTarget to use * @param shell the shell * @see ResourceAction#ResourceAction(ResourceBundle, String) * * @since 3.3 */ public FindReplaceAction(ResourceBundle bundle, String prefix, Shell shell, IFindReplaceTarget target) { super(bundle, prefix); Assert.isLegal(target != null && shell != null); fTarget= target; fShell= shell; update(); }
/** * update all actions independent of their type * */ public void updateActions() { Iterator<IAction> e= fActions.values().iterator(); while (e.hasNext()) { IAction next = e.next(); if (next instanceof MergeViewerAction) { MergeViewerAction action = (MergeViewerAction) next; action.update(); } else if (next instanceof FindReplaceAction) { FindReplaceAction action = (FindReplaceAction) next; action.update(); } else if (next instanceof ChangeEncodingAction) { ChangeEncodingAction action = (ChangeEncodingAction) next; action.update(); } } }