From 37c5a386ace763c8c3fff34ee34b809e15b7516d Mon Sep 17 00:00:00 2001 From: Eclipse Platform Bot Date: Sun, 2 Nov 2025 03:57:57 +0000 Subject: [PATCH] Perform clean code of bundles/org.eclipse.ltk.ui.refactoring --- .../eclipse/ltk/ui/refactoring/RedoRefactoringAction.java | 5 +++++ .../eclipse/ltk/ui/refactoring/UndoRefactoringAction.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/RedoRefactoringAction.java b/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/RedoRefactoringAction.java index b4759e903a8..dcf1600da96 100644 --- a/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/RedoRefactoringAction.java +++ b/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/RedoRefactoringAction.java @@ -60,14 +60,17 @@ public class RedoRefactoringAction extends UndoManagerAction { /** * Creates a new redo refactoring action. */ + @Deprecated public RedoRefactoringAction() { } + @Deprecated @Override protected String getName() { return RefactoringUIMessages.RedoRefactoringAction_name; } + @Deprecated @Override protected IRunnableWithProgress createOperation(Shell parent) { final IValidationCheckResultQuery query= new Query(parent, RefactoringUIMessages.RedoRefactoringAction_error_title) { @@ -87,6 +90,7 @@ protected String getFullMessage(String errorMessage) { }; } + @Deprecated @Override protected UndoManagerAdapter createUndoManagerListener() { return new UndoManagerAdapter() { @@ -110,6 +114,7 @@ public void redoStackChanged(IUndoManager manager) { }; } + @Deprecated @Override public void selectionChanged(IAction action, ISelection s) { if (!isHooked()) { diff --git a/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/UndoRefactoringAction.java b/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/UndoRefactoringAction.java index 20e9ed1f08f..4c5e24254e5 100644 --- a/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/UndoRefactoringAction.java +++ b/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/UndoRefactoringAction.java @@ -60,15 +60,18 @@ public class UndoRefactoringAction extends UndoManagerAction { /** * Creates a new undo refactoring action. */ + @Deprecated public UndoRefactoringAction() { } + @Deprecated @Override protected String getName() { // PR: 1GEWDUH: ITPJCORE:WINNT - Refactoring - Unable to undo refactoring change return RefactoringUIMessages.UndoRefactoringAction_name; } + @Deprecated @Override protected IRunnableWithProgress createOperation(Shell parent) { final IValidationCheckResultQuery query= new Query(parent, RefactoringUIMessages.UndoRefactoringAction_error_title) { @@ -88,6 +91,7 @@ protected String getFullMessage(String errorMessage) { }; } + @Deprecated @Override protected UndoManagerAdapter createUndoManagerListener() { return new UndoManagerAdapter() { @@ -111,6 +115,7 @@ public void undoStackChanged(IUndoManager manager) { }; } + @Deprecated @Override public void selectionChanged(IAction action, ISelection s) { if (!isHooked()) {