]>
Commit | Line | Data |
---|---|---|
1b2798f6 EK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2000, 2011 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.ltk.core.refactoring.Refactoring; | |
14 | import org.eclipse.ltk.core.refactoring.RefactoringStatus; | |
15 | ||
16 | import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; | |
17 | import org.eclipse.jdt.internal.ui.JavaPluginImages; | |
18 | import org.eclipse.jdt.internal.ui.refactoring.RefactoringMessages; | |
19 | ||
20 | public final class RenameEnumConstWizard extends RenameRefactoringWizard { | |
21 | ||
22 | public RenameEnumConstWizard(Refactoring refactoring) { | |
23 | super(refactoring, RefactoringMessages.RenameEnumConstWizard_defaultPageTitle, RefactoringMessages.RenameEnumConstWizard_inputPage_description, JavaPluginImages.DESC_WIZBAN_REFACTOR_FIELD, IJavaHelpContextIds.RENAME_FIELD_WIZARD_PAGE); | |
24 | } | |
25 | ||
26 | @Override | |
27 | protected RenameInputWizardPage createInputPage(String message, String initialSetting) { | |
28 | return new RenameInputWizardPage(message, IJavaHelpContextIds.RENAME_FIELD_WIZARD_PAGE, true, initialSetting) { | |
29 | ||
30 | @Override | |
31 | protected RefactoringStatus validateTextField(String text) { | |
32 | return validateNewName(text); | |
33 | } | |
34 | }; | |
35 | } | |
36 | } |