KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > corext > refactoring > reorg > INewNameQueries


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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.reorg;
12
13 import org.eclipse.core.runtime.OperationCanceledException;
14
15 import org.eclipse.core.resources.IResource;
16
17 import org.eclipse.jdt.core.ICompilationUnit;
18 import org.eclipse.jdt.core.IPackageFragment;
19 import org.eclipse.jdt.core.IPackageFragmentRoot;
20
21 public interface INewNameQueries {
22     public INewNameQuery createNewCompilationUnitNameQuery(ICompilationUnit cu, String JavaDoc initialSuggestedName) throws OperationCanceledException;
23     public INewNameQuery createNewResourceNameQuery(IResource res, String JavaDoc initialSuggestedName) throws OperationCanceledException;
24     public INewNameQuery createNewPackageNameQuery(IPackageFragment pack, String JavaDoc initialSuggestedName) throws OperationCanceledException;
25     public INewNameQuery createNewPackageFragmentRootNameQuery(IPackageFragmentRoot root, String JavaDoc initialSuggestedName) throws OperationCanceledException;
26     public INewNameQuery createNullQuery();
27     public INewNameQuery createStaticQuery(String JavaDoc newName) throws OperationCanceledException;
28 }
29
Popular Tags