blob: e40f213cd4e2a7d42ed126e80158d2667a824016 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.corext.refactoring.tagging;
public interface ITextUpdating {
/**
* Performs a dynamic check whether this refactoring object is capable of
* updating references to the renamed element.
*/
public boolean canEnableTextUpdating();
/**
* If <code>canEnableTextUpdating</code> returns <code>true</code>,
* then this method is used to ask the refactoring object whether references
* in regular (non JavaDoc) comments and string literals should be updated.
* This call can be ignored if <code>canEnableTextUpdating</code> returns
* <code>false</code>.
*/
public boolean getUpdateTextualMatches();
/**
* If <code>canEnableTextUpdating</code> returns <code>true</code>,
* then this method is used to inform the refactoring object whether references
* in regular (non JavaDoc) comments and string literals should be updated.
* This call can be ignored if <code>canEnableTextUpdating</code> returns
* <code>false</code>.
*/
public void setUpdateTextualMatches(boolean update);
/**
* Returns the current name of the element to be renamed.
*
* @return the current name of the element to be renamed
*/
public String getCurrentElementName();
/**
* Returns the current qualifier of the element to be renamed.
*
* @return the current qualifier of the element to be renamed
*/
public String getCurrentElementQualifier();
/**
* Returns the new name of the element
*
* @return the new element name
*/
public String getNewElementName();
}