Project: JDT
Bug 132302 [source actions] Provide action to configure the deprecation fix of a member
Reported: 2006-03-17 04:37:15 | Status: resolved fixed

During 3.2, support has been added to store information about automatic fixing of deprecated constant accesses and method invocations. This functionality is currently used in the following refactorings: - Rename - Move - Change Signature - Introduce Parameter - Replace Invocations In order to let the user configure how references to a deprecated members can be resolved by clients, an action is needed in the "Source" menu which offers this facilities. The following (non-breaking) API additions are suggested: IJavaEditorActionDefinitionIds.java: /** * Action definition ID of the source ->configure deprecation fix action * (value <code>"org.eclipse.jdt.ui.edit.text.java.configure.deprecation.fix"</code>). * @since 3.2 */ public static final String CONFIGURE_DEPRECATION_FIX= "org.eclipse.jdt.ui.edit.text.java.configure.deprecation.fix"; //$NON-NLS-1$ JdtActionConstants.java: /** * Source menu: name of standard configure deprecation fix global action * (value <code>"org.eclipse.jdt.ui.actions.ConfigureDeprecationFix"</code>). * @since 3.2 */ public static final String CONFIGURE_DEPRECATION_FIX= "org.eclipse.jdt.ui.actions.ConfigureDeprecationFix"; //$NON-NLS-1$ Additionally, plugin.xml contains the corresponding command and action markup

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/IJavaHelpContextIds.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ActionMessages.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ConfigureDeprecationFixAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ConfigureDeprecationFixDialog.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java