Class BslRenameStrategy

java.lang.Object
org.eclipse.xtext.ui.refactoring.impl.AbstractRenameStrategy
org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy
com._1c.g5.v8.dt.bsl.ui.refactoring.BslRenameStrategy
All Implemented Interfaces:
org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategyProvider.IInitializable, org.eclipse.xtext.ui.refactoring.IRenameStrategy
Direct Known Subclasses:
BslBmRenameStrategy

public class BslRenameStrategy extends org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy
Special DefaultRenameStrategy for Bsl modules
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.refactoring.IRenameStrategy

    org.eclipse.xtext.ui.refactoring.IRenameStrategy.Provider
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.eclipse.emf.ecore.EObject
     

    Fields inherited from class org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy

    nameRuleName, originalNameRegion
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createDeclarationUpdates(String newName, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.xtext.ui.refactoring.IRefactoringUpdateAcceptor updateAcceptor)
     
    int
    Gets offset of initially target object
    org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext
    Gets actual IRenameElementContext
    boolean
    initialize(org.eclipse.emf.ecore.EObject targetElement, org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext context)
     
    protected boolean
    Checks name for duplicate
    org.eclipse.ltk.core.refactoring.RefactoringStatus
     

    Methods inherited from class org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy

    applyDeclarationChange, getDeclarationTextEdit, getNameAsText, getNameAsText, getNameAsValue, getNameAsValue, getNameRuleName, getOriginalName, getOriginalNameRegion

    Methods inherited from class org.eclipse.xtext.ui.refactoring.impl.AbstractRenameStrategy

    getNameAttribute, getNameAttribute, getTargetElementNewURI, getTargetElementOriginalURI, revertDeclarationChange, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • targetElement

      protected org.eclipse.emf.ecore.EObject targetElement
  • Constructor Details

    • BslRenameStrategy

      public BslRenameStrategy()
  • Method Details

    • initialize

      public boolean initialize(org.eclipse.emf.ecore.EObject targetElement, org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext context)
      Specified by:
      initialize in interface org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategyProvider.IInitializable
      Overrides:
      initialize in class org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy
    • validateNewName

      public org.eclipse.ltk.core.refactoring.RefactoringStatus validateNewName(String newName)
      Specified by:
      validateNewName in interface org.eclipse.xtext.ui.refactoring.IRenameStrategy
      Overrides:
      validateNewName in class org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy
    • getOriginalOffset

      public int getOriginalOffset()
      Gets offset of initially target object
      Returns:
      offset of the target object
    • getRenameContext

      public org.eclipse.xtext.ui.refactoring.ui.IRenameElementContext getRenameContext()
      Gets actual IRenameElementContext
      Returns:
      actual IRenameElementContext, never null
    • createDeclarationUpdates

      public void createDeclarationUpdates(String newName, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.xtext.ui.refactoring.IRefactoringUpdateAcceptor updateAcceptor)
      Specified by:
      createDeclarationUpdates in interface org.eclipse.xtext.ui.refactoring.IRenameStrategy
      Overrides:
      createDeclarationUpdates in class org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy
    • isDuplicateName

      protected boolean isDuplicateName(CaseInsensitiveString newName)
      Checks name for duplicate
      Parameters:
      newName - checking name, can't be null
      Returns:
      true if duplicates wasn't found, false otherwise