blob: 2919f8d446c58ede6e08c1354378aee1c568454d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*******************************************************************************
* Copyright (c) 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.j2ee.internal.ui.refactoring;
import org.eclipse.jst.j2ee.internal.plugin.J2EEUIMessages;
import org.eclipse.ltk.core.refactoring.participants.RenameRefactoring;
import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
public class RenameContextRootWizard extends RefactoringWizard {
private boolean prompt = true;
public RenameContextRootWizard(RenameContextRootRefactoringProcessor processor, int flags) {
super(new RenameRefactoring(processor), flags);
setDefaultPageTitle(J2EEUIMessages.getResourceString("RenameContextRoot")); //$NON-NLS-1$
setChangeCreationCancelable(true);
setHelpAvailable(false);
setNeedsProgressMonitor(true);
}
@Override
protected void addUserInputPages() {
if (prompt) {
addPage(new ContextRootInputPage("", //$NON-NLS-1$
(RenameContextRootRefactoringProcessor) getRefactoring().getAdapter(
RenameContextRootRefactoringProcessor.class)));
}
}
public void setPrompt(boolean prompt) {
this.prompt = prompt;
}
}
|