Class RefactoringOperationDescriptor

    • Constructor Detail

      • RefactoringOperationDescriptor

        public RefactoringOperationDescriptor​(IRefactoringOperation operation,
                                              String name,
                                              boolean optional)
        Creates a descriptor with the specified operation, name and optional flag.
        Parameters:
        operation - the refactoring operation, cannot be null.
        name - the localized name, can be null.
        optional - the optional flag.
      • RefactoringOperationDescriptor

        public RefactoringOperationDescriptor​(IRefactoringOperation operation)
        Creates a descriptor with the specified operation.
        Parameters:
        operation - the refactoring operation, cannot be null.
    • Method Detail

      • getOperation

        public IRefactoringOperation getOperation()
        Returns the refactoring operation.
        Returns:
        the refactoring operation, never null.
      • getName

        public String getName()
        Returns the localized name of the refactoring operation.
        Returns:
        the localized name of the refactoring operation or null.
      • isOptional

        public boolean isOptional()
        Returns the flag indicating whether the refactoring operation is optional or not.
        Returns:
        true if the refactoring operation is optional, false - otherwise.