org.eclipse.xtext.ui.refactoring.ui
Class RenameLinkedMode

java.lang.Object
  extended by org.eclipse.xtext.ui.refactoring.ui.RenameLinkedMode

public class RenameLinkedMode
extends java.lang.Object

Author:
Holger Schill - Initial contribution and API, Jan Koehnlein

Nested Class Summary
protected  class RenameLinkedMode.EditorSynchronizer
           
protected  class RenameLinkedMode.ExitPolicy
           
protected  class RenameLinkedMode.FocusEditingSupport
           
 
Constructor Summary
RenameLinkedMode()
           
 
Method Summary
 org.eclipse.jface.text.link.LinkedPosition getCurrentLinkedPosition()
           
 java.lang.String getCurrentName()
           
protected  boolean isCaretInLinkedPosition()
           
 boolean isCurrentNameValid()
           
 boolean isSameRenameElementContext(IRenameElementContext renameElementContext)
           
 void linkedModeLeft()
          PopUp gets closed and the focus goes back to the editor.
protected  void openPopup()
           
 boolean start(IRenameElementContext renameElementContext, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameLinkedMode

public RenameLinkedMode()
Method Detail

start

public boolean start(IRenameElementContext renameElementContext,
                     org.eclipse.core.runtime.IProgressMonitor monitor)

openPopup

protected void openPopup()

isCurrentNameValid

public boolean isCurrentNameValid()

getCurrentName

public java.lang.String getCurrentName()

isSameRenameElementContext

public boolean isSameRenameElementContext(IRenameElementContext renameElementContext)

isCaretInLinkedPosition

protected boolean isCaretInLinkedPosition()

getCurrentLinkedPosition

public org.eclipse.jface.text.link.LinkedPosition getCurrentLinkedPosition()

linkedModeLeft

public void linkedModeLeft()
PopUp gets closed and the focus goes back to the editor. Linked mode stays active and can be reenabled, i.e. by putting the caret back into a linked editing position.