KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > corext > refactoring > tagging > IReferenceUpdating


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.corext.refactoring.tagging;
12
13 public interface IReferenceUpdating {
14
15     /**
16      * Checks if this refactoring object is capable of updating references to the renamed element.
17      */

18     public boolean canEnableUpdateReferences();
19
20     /**
21      * If <code>canUpdateReferences</code> returns <code>true</code>, then this method is used to
22      * inform the refactoring object whether references should be updated.
23      * This call can be ignored if <code>canUpdateReferences</code> returns <code>false</code>.
24      */

25     public void setUpdateReferences(boolean update);
26
27     /**
28      * If <code>canUpdateReferences</code> returns <code>true</code>, then this method is used to
29      * ask the refactoring object whether references should be updated.
30      * This call can be ignored if <code>canUpdateReferences</code> returns <code>false</code>.
31      */

32     public boolean getUpdateReferences();
33
34 }
35
36
Popular Tags