01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 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.ui.refactoring.reorg;
11:
12: import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
13: import org.eclipse.jdt.internal.ui.JavaPluginImages;
14: import org.eclipse.jdt.internal.ui.refactoring.RefactoringMessages;
15:
16: import org.eclipse.ltk.core.refactoring.Refactoring;
17: import org.eclipse.ltk.core.refactoring.RefactoringStatus;
18:
19: public final class RenameEnumConstWizard extends
20: RenameRefactoringWizard {
21:
22: public RenameEnumConstWizard(Refactoring refactoring) {
23: super (
24: refactoring,
25: RefactoringMessages.RenameEnumConstWizard_defaultPageTitle,
26: RefactoringMessages.RenameEnumConstWizard_inputPage_description,
27: JavaPluginImages.DESC_WIZBAN_REFACTOR_FIELD,
28: IJavaHelpContextIds.RENAME_FIELD_WIZARD_PAGE);
29: }
30:
31: protected RenameInputWizardPage createInputPage(String message,
32: String initialSetting) {
33: return new RenameInputWizardPage(message,
34: IJavaHelpContextIds.RENAME_FIELD_WIZARD_PAGE, true,
35: initialSetting) {
36:
37: protected RefactoringStatus validateTextField(String text) {
38: return validateNewName(text);
39: }
40: };
41: }
42: }
|