blob: 432698a0f2535feba3eece2d1389f7fddd2a959a (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/*******************************************************************************
* Copyright (c) 2007 Intel 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:
* Intel Corporation - Initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.core.settings.model.extension;
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
import org.eclipse.core.runtime.CoreException;
/**
* the class is to be implemented by the Configuration data provider contributed via
* a org.eclipse.cdt.core.CConfigurationDataProvider extension point
*
*/
public abstract class CConfigurationDataProvider {
/**
* requests the Configuration Data to be loadded for the given ConfigurationDescription
*/
public abstract CConfigurationData loadConfiguration(ICConfigurationDescription des) throws CoreException;
/**
* requests the Configuration Data to be created for the given ConfigurationDescription
* The method can be called in several caces:
* 1. When the new configuration is being created based upon the already existing one via
* theICProjectDescription.createConfiguration method call
* 2. When the configuration copy (clone) is being created for the copy description
* @param des
* @param base
* @param clone true indicates that the configuration copy (clone) is being created for
* the copy description.
* false indicates that the new configuration is being created based upon the already existing one via
* theICProjectDescription.createConfiguration method call
* @return
* @throws CoreException
*/
public abstract CConfigurationData createConfiguration(ICConfigurationDescription des, CConfigurationData base, boolean clone) throws CoreException;
/**
* called to notify the provider that the configuration is removed
*
* @param des
* @param data
*/
public abstract void removeConfiguration(ICConfigurationDescription des, CConfigurationData data);
/**
* called during the setProjectDescription operation to notify the provider that the configuration data
* is being applied.
* Provider would typically store all the necessary data configuration during this call.
*
* @param des
* @param base
* @return
* @throws CoreException
*/
public abstract CConfigurationData applyConfiguration(ICConfigurationDescription des, CConfigurationData base) throws CoreException;
}
|