Class RefactoringService
java.lang.Object
com._1c.g5.v8.dt.internal.refactoring.core.RefactoringService
- All Implemented Interfaces:
IRefactoringService
The implementation of the
IRefactoringService
.-
Field Summary
Fields inherited from interface com._1c.g5.v8.dt.refactoring.core.IRefactoringService
SERVICE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninitiateDelete
(Collection<RefactoringTask> targets, RefactoringSettings settings) Initiates delete refactoring for the specifiedtasks
.initiateRename
(RefactoringTask target, IRefactoringOperation operation, String newName, RefactoringSettings settings) Initiates rename refactoring for the specifiedtask
.
-
Constructor Details
-
RefactoringService
public RefactoringService()
-
-
Method Details
-
initiateRename
public IRefactoring initiateRename(RefactoringTask target, IRefactoringOperation operation, String newName, RefactoringSettings settings) Description copied from interface:IRefactoringService
Initiates rename refactoring for the specifiedtask
.- Specified by:
initiateRename
in interfaceIRefactoringService
- Parameters:
target
- the refactoring task, cannot benull
.operation
- the main operation of the rename refactoring, cannot benull
.newName
- the new name for the object presented in the task, cannot benull
.settings
- the refactoring settings, cannot benull
.- Returns:
- the
IRefactoring
instance ornull
if the refactoring is unable to perform.
-
initiateDelete
public IRefactoring initiateDelete(Collection<RefactoringTask> targets, RefactoringSettings settings) Description copied from interface:IRefactoringService
Initiates delete refactoring for the specifiedtasks
.- Specified by:
initiateDelete
in interfaceIRefactoringService
- Parameters:
targets
- the refactoring tasks, cannot benull
or empty.settings
- the refactoring settings, cannot benull
.- Returns:
- the
IRefactoring
instance ornull
if the refactoring is unable to perform.
-