diff options
author | Michael Valenta | 2005-01-10 15:52:16 +0000 |
---|---|---|
committer | Michael Valenta | 2005-01-10 15:52:16 +0000 |
commit | 35cc30949f6b0e0fa6de597106af2525ee350b49 (patch) | |
tree | d85799bef5cfd17050f496e757f6b1a6e200256c /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ModeWizard.java | |
parent | 51054ba174d9995f4eeeb3f79cb1cb4466d16ff8 (diff) | |
download | eclipse.platform.team-35cc30949f6b0e0fa6de597106af2525ee350b49.tar.gz eclipse.platform.team-35cc30949f6b0e0fa6de597106af2525ee350b49.tar.xz eclipse.platform.team-35cc30949f6b0e0fa6de597106af2525ee350b49.zip |
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ModeWizard.java')
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ModeWizard.java | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ModeWizard.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ModeWizard.java index 051795411..367a92674 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ModeWizard.java +++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ModeWizard.java @@ -19,9 +19,6 @@ import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IResourceVisitor; import org.eclipse.core.runtime.CoreException; -import org.eclipse.jface.wizard.Wizard; -import org.eclipse.jface.wizard.WizardDialog; -import org.eclipse.swt.graphics.Point; import org.eclipse.swt.widgets.Shell; import org.eclipse.team.core.TeamException; import org.eclipse.team.internal.ccvs.core.ICVSFile; @@ -41,10 +38,7 @@ import org.eclipse.team.internal.ccvs.ui.CVSUIPlugin; * an option to include them in the operation anyways. * 5. Perform the operation on Finish. */ -public class ModeWizard extends Wizard { - - private static final int DEFAULT_WIDTH= 500; - private static final int DEFAULT_HEIGHT= 400; +public class ModeWizard extends ResizableWizard { public interface ModeChange extends Comparable { @@ -99,24 +93,14 @@ public class ModeWizard extends Wizard { } } - private List fChanges; - private static final String MODE_WIZARD_SECTION = "ModeWizard"; //$NON-NLS-1$ - private final WizardSizeSaver fSizeSaver; - public static ModeWizard run(Shell shell, IResource [] resources) { final ModeWizard wizard= new ModeWizard(resources); - final WizardDialog dialog= new WizardDialog(shell, wizard); - dialog.setMinimumPageSize(wizard.loadSize()); - dialog.open(); + open(shell, wizard); return wizard; } - private Point loadSize() { - return fSizeSaver.getSize(); - } - /** * Creates a wizard to set the keyword substitution mode for the specified resources. * @@ -125,11 +109,8 @@ public class ModeWizard extends Wizard { * @param defaultOption the keyword substitution option to select by default */ protected ModeWizard(IResource[] resources) { - super(); + super("ModeWizard", CVSUIPlugin.getPlugin().getDialogSettings(), 500, 400); setWindowTitle("Change the CVS file transfer mode"); - setDialogSettings(CVSUIPlugin.getPlugin().getDialogSettings()); - - fSizeSaver= new WizardSizeSaver(this, MODE_WIZARD_SECTION, DEFAULT_WIDTH, DEFAULT_HEIGHT); fChanges= getModeChanges(resources); } @@ -144,14 +125,6 @@ public class ModeWizard extends Wizard { return true; } - /* (Non-javadoc) - * Method declared on IWizard. - */ - public boolean performFinish() { - fSizeSaver.saveSize(); - return true; - } - private List getModeChanges(IResource [] resources) { final ArrayList changes= new ArrayList(); |