1
/*******************************************************************************
2
* Copyright (c) 2008 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
9
* IBM Corporation - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.internal.ui.wizards.settingswizards;
13
import java.util.List;
15
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
18
* Defines the methods that the strategies can call on the
21
* This interface exists mainly so that it can be implemented by a
22
* mock object, which makes testing the strategies easy.
27
public interface IProjectSettingsWizardPage {
29
static final String FILENAME_EXTENSION = "xml"; //$NON-NLS-1$
33
* Sets the input list for the displayed list of settings processors.
35
void setDisplayedSettingsProcessors(List<ISettingsProcessor> processors);
38
* Returns a list of all the available settings processors.
40
List<ISettingsProcessor> getSettingsProcessors();
43
* Returns a list of the settings processors that were selected by the user.
45
List<ISettingsProcessor> getSelectedSettingsProcessors();
48
* Returns the contents of the file path text box.
50
String getDestinationFilePath();
53
* Returns the configuration that was selected by the user.
55
* The selected project can be determined by calling
56
* ICCOnfigurationDescription.getProjectDescription().getProject();
58
ICConfigurationDescription getSelectedConfiguration();
61
* Causes an error dialog to be shown to the user.
63
void showErrorDialog(String dialogTitle, String message);
66
* Displays a message at the top of the wizard page.
67
* @param flag a constant from the IMessageProvider interface
69
void setMessage(String message, int flag);