blob: 051c54bc2dfe3ca798976d76fcbf348d53fc9835 [file] [log] [blame]
package org.eclipse.team.internal.ccvs.ui.wizards;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.team.internal.ccvs.ui.CVSUIPlugin;
import org.eclipse.team.internal.ccvs.ui.Policy;
/**
* This wizard helps the user to add selected projects
* to the workspace.
*/
public class AddWizard extends ConnectionWizard {
/**
* AddWizard constructor
*/
public AddWizard() {
IDialogSettings workbenchSettings = CVSUIPlugin.getPlugin().getDialogSettings();
IDialogSettings section = workbenchSettings.getSection("CVSWizard");//$NON-NLS-1$
if (section == null) {
section = workbenchSettings.addNewSection("CVSWizard");//$NON-NLS-1$
}
setDialogSettings(section);
}
protected String getMainPageDescription() {
return Policy.bind("AddWizard.description");
}
protected String getMainPageTitle() {
return Policy.bind("AddWizard.title");
}
protected int getStyle() {
return ConfigurationWizardMainPage.PROJECT_NAME |
ConfigurationWizardMainPage.TAG;
}
/*
* @see IWizard#performFinish
*/
public boolean performFinish() {
getMainPage().finish(new NullProgressMonitor());
return true;
}
}