KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > refactoring > reorg > RenameUserInterfaceManager


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.ui.refactoring.reorg;
12
13 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameCompilationUnitProcessor;
14 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameEnumConstProcessor;
15 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameFieldProcessor;
16 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameJavaProjectProcessor;
17 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameLocalVariableProcessor;
18 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameNonVirtualMethodProcessor;
19 import org.eclipse.jdt.internal.corext.refactoring.rename.RenamePackageProcessor;
20 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameResourceProcessor;
21 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameSourceFolderProcessor;
22 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeParameterProcessor;
23 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor;
24 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameVirtualMethodProcessor;
25
26 import org.eclipse.jdt.internal.ui.refactoring.UserInterfaceManager;
27
28 public class RenameUserInterfaceManager extends UserInterfaceManager {
29     private static final UserInterfaceManager fgInstance= new RenameUserInterfaceManager();
30     
31     public static UserInterfaceManager getDefault() {
32         return fgInstance;
33     }
34     
35     private RenameUserInterfaceManager() {
36         put(RenameResourceProcessor.class, RenameUserInterfaceStarter.class, RenameResourceWizard.class);
37         
38         put(RenameJavaProjectProcessor.class, RenameUserInterfaceStarter.class, RenameJavaProjectWizard.class);
39         put(RenameSourceFolderProcessor.class, RenameUserInterfaceStarter.class, RenameSourceFolderWizard.class);
40         put(RenamePackageProcessor.class, RenameUserInterfaceStarter.class, RenamePackageWizard.class);
41         put(RenameCompilationUnitProcessor.class, RenameUserInterfaceStarter.class, RenameCuWizard.class);
42         put(RenameTypeProcessor.class, RenameUserInterfaceStarter.class, RenameTypeWizard.class);
43         put(RenameFieldProcessor.class, RenameUserInterfaceStarter.class, RenameFieldWizard.class);
44         put(RenameEnumConstProcessor.class, RenameUserInterfaceStarter.class, RenameEnumConstWizard.class);
45         put(RenameTypeParameterProcessor.class, RenameUserInterfaceStarter.class, RenameTypeParameterWizard.class);
46         put(RenameNonVirtualMethodProcessor.class, RenameMethodUserInterfaceStarter.class, RenameMethodWizard.class);
47         put(RenameVirtualMethodProcessor.class, RenameMethodUserInterfaceStarter.class, RenameMethodWizard.class);
48         put(RenameLocalVariableProcessor.class, RenameUserInterfaceStarter.class, RenameLocalVariableWizard.class);
49     }
50 }
51
Popular Tags