01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.corext.refactoring.tagging;
11:
12: public interface IReferenceUpdating {
13:
14: /**
15: * Checks if this refactoring object is capable of updating references to the renamed element.
16: */
17: public boolean canEnableUpdateReferences();
18:
19: /**
20: * If <code>canUpdateReferences</code> returns <code>true</code>, then this method is used to
21: * inform the refactoring object whether references should be updated.
22: * This call can be ignored if <code>canUpdateReferences</code> returns <code>false</code>.
23: */
24: public void setUpdateReferences(boolean update);
25:
26: /**
27: * If <code>canUpdateReferences</code> returns <code>true</code>, then this method is used to
28: * ask the refactoring object whether references should be updated.
29: * This call can be ignored if <code>canUpdateReferences</code> returns <code>false</code>.
30: */
31: public boolean getUpdateReferences();
32:
33: }
|