update copyright
[fedora-idea.git] / java / java-impl / src / com / intellij / refactoring / HelpID.java
blobc928740bc4c3cb9954aac08774fc944e0f2acd11
2 /*
3 * Copyright 2000-2009 JetBrains s.r.o.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 package com.intellij.refactoring;
19 import com.intellij.psi.PsiClass;
20 import com.intellij.psi.PsiElement;
21 import com.intellij.psi.PsiPackage;
22 import org.jetbrains.annotations.NonNls;
24 @SuppressWarnings({"HardCodedStringLiteral"})
25 public class HelpID {
26 public static final String RENAME_PACKAGE = "refactoring.renamePackage";
27 public static final String RENAME_CLASS = "refactoring.renameClass";
28 public static final String RENAME_METHOD = "refactoring.renameMethod";
29 public static final String RENAME_FIELD = "refactoring.renameField";
30 public static final String RENAME_VARIABLE = "refactoring.renameVariable";
31 public static final String RENAME_PARAMETER = "refactoring.renameParameter";
32 public static final String RENAME_DIRECTORY = "refactoring.renameDirectory";
33 public static final String RENAME_FILE = "refactoring.renameFile";
35 private static final String MOVE_PACKAGE = "refactoring.movePackage";
36 private static final String MOVE_CLASS = "refactoring.moveClass";
38 public static final String INTRODUCE_VARIABLE = "refactoring.introduceVariable";
39 public static final String INTRODUCE_FIELD = "refactoring.introduceField";
40 public static final String INTRODUCE_CONSTANT = "refactoring.introduceConstant";
41 public static final String EXTRACT_METHOD = "refactoring.extractMethod";
43 public static final String ANONYMOUS_TO_INNER = "refactoring.convertAnonymous";
44 public static final String LOCAL_TO_FIELD = "refactoring.convertLocal";
45 public static final String CHANGE_SIGNATURE = "refactoring.changeSignature";
46 public static final String ENCAPSULATE_FIELDS = "refactoring.encapsulateFields";
47 public static final String EXTRACT_INTERFACE = "refactoring.extractInterface";
48 public static final String EXTRACT_SUPERCLASS = "refactoring.extractSuperclass";
49 public static final String MOVE_INNER_UPPER = "refactoring.moveInner";
50 public static final String REPLACE_TEMP_WITH_QUERY = "refactoring.replaceTemp";
51 public static final String MOVE_MEMBERS = "refactoring.moveMembers";
52 public static final String INLINE_CLASS = "refactoring.inlineClass";
53 public static final String INLINE_METHOD = "refactoring.inlineMethod";
54 public static final String INLINE_CONSTRUCTOR = "refactoring.inlineConstructor";
55 public static final String INLINE_VARIABLE = "refactoring.inlineVariable";
56 public static final String INLINE_FIELD = "refactoring.inlineField";
58 public static final String MIGRATION = "refactoring.migrate";
60 public static final String COPY_CLASS = "refactoring.copyClass";
62 public static final String MAKE_METHOD_STATIC = "refactoring.makeMethodStatic";
63 public static final String MAKE_METHOD_STATIC_SIMPLE = "refactoring.makeMethodStatic";
65 public static final String INTRODUCE_PARAMETER = "refactoring.introduceParameter";
66 public static final String TURN_REFS_TO_SUPER = "refactoring.useInterface";
67 public static final String MEMBERS_PULL_UP = "refactoring.pullMembersUp";
68 public static final String MEMBERS_PUSH_DOWN = "refactoring.pushMembersDown";
69 public static final String INHERITANCE_TO_DELEGATION = "refactoring.replaceInheritWithDelegat";
70 public static final String REPLACE_CONSTRUCTOR_WITH_FACTORY = "refactoring.replaceConstrWithFactory";
71 public static final String SAFE_DELETE = "refactoring.safeDelete";
72 public static final String SAFE_DELETE_OVERRIDING = "refactoring.safeDelete.overridingMethods";
73 public static final String EJB_RENAME = "refactoring.rename.ejbRename";
74 public static final String TYPE_COOK = "refactoring.generify";
75 public static final String CONVERT_TO_INSTANCE_METHOD = "refactoring.convertToInstanceMethod";
76 public static final String METHOD_DUPLICATES = "refactoring.replaceMethodCodeDuplicates";
77 public static final String CHANGE_CLASS_SIGNATURE = "refactoring.changeClassSignature";
78 public static final String MOVE_INSTANCE_METHOD = "refactoring.moveInstMethod";
79 public static final String INVERT_BOOLEAN = "refactoring.invertBoolean";
80 public static final String EXTRACT_METHOD_OBJECT = "refactoring.extractMethodObject";
81 public static final String REPLACE_CONSTRUCTOR_WITH_BUILDER = "refactoring.replaceConstructorWithBuilder";
82 @NonNls public static final String ExtractClass = "refactorj.extractClass";
83 @NonNls public static final String IntroduceParameterObject = "refactorj.introduceParameterObject";
84 @NonNls public static final String RemoveMiddleman = "refactorj.removeMiddleman";
85 @NonNls public static final String WrapReturnValue = "refactorj.wrapReturnValue";
87 public static String getMoveHelpID(PsiElement element) {
88 if (element instanceof PsiPackage){
89 return MOVE_PACKAGE;
91 else if (element instanceof PsiClass){
92 return MOVE_CLASS;
94 else{
95 return null;