01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 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.reorg;
11:
12: import org.eclipse.core.runtime.OperationCanceledException;
13:
14: import org.eclipse.core.resources.IResource;
15:
16: import org.eclipse.jdt.core.ICompilationUnit;
17: import org.eclipse.jdt.core.IPackageFragment;
18: import org.eclipse.jdt.core.IPackageFragmentRoot;
19:
20: public interface INewNameQueries {
21: public INewNameQuery createNewCompilationUnitNameQuery(
22: ICompilationUnit cu, String initialSuggestedName)
23: throws OperationCanceledException;
24:
25: public INewNameQuery createNewResourceNameQuery(IResource res,
26: String initialSuggestedName)
27: throws OperationCanceledException;
28:
29: public INewNameQuery createNewPackageNameQuery(
30: IPackageFragment pack, String initialSuggestedName)
31: throws OperationCanceledException;
32:
33: public INewNameQuery createNewPackageFragmentRootNameQuery(
34: IPackageFragmentRoot root, String initialSuggestedName)
35: throws OperationCanceledException;
36:
37: public INewNameQuery createNullQuery();
38:
39: public INewNameQuery createStaticQuery(String newName)
40: throws OperationCanceledException;
41: }
|