Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-01-10 15:52:16 +0000
committerMichael Valenta2005-01-10 15:52:16 +0000
commit35cc30949f6b0e0fa6de597106af2525ee350b49 (patch)
treed85799bef5cfd17050f496e757f6b1a6e200256c /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ModeWizard.java
parent51054ba174d9995f4eeeb3f79cb1cb4466d16ff8 (diff)
downloadeclipse.platform.team-35cc30949f6b0e0fa6de597106af2525ee350b49.tar.gz
eclipse.platform.team-35cc30949f6b0e0fa6de597106af2525ee350b49.tar.xz
eclipse.platform.team-35cc30949f6b0e0fa6de597106af2525ee350b49.zip
Bug 81707 3.1M4 (compared to 3.1M3) cvs is EXTREMELY slow to commitI20050111
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.java33
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();

Back to the top