Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 6b76cdb5afb2fe3e876f4717e57896d53c11ab80 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*******************************************************************************
 * Copyright (c) 2000, 2009 QNX Software Systems 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:
 *     QNX Software Systems - Initial API and implementation
 *     James Blackburn (Broadcom Corp.)
 *******************************************************************************/
package org.eclipse.cdt.core;

import org.eclipse.cdt.core.settings.model.ICProjectDescription;
import org.eclipse.cdt.core.settings.model.ICProjectDescriptionManager;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;

/**
 * @noextend This interface is not intended to be extended by clients.
 * @noimplement This interface is not intended to be implemented by clients.
 * @deprecated replace with {@link ICProjectDescriptionManager} & {@link ICProjectDescription}
 */
@Deprecated
public interface ICDescriptorManager {

	public void configure(IProject project, String id) throws CoreException;

	public void convert(IProject project, String id) throws CoreException;

	/**
 	 * Return the ICDescriptor for the project.  If project doesn't contain
 	 * an ICDescriptor then one is created.
 	 * Equivalent to: {@code ICDescriptorManager#getDescriptor(project, true)}
 	 * 
 	 * Users should consider batching changes in an ICDescriptorOperation
 	 * 
 	 * @see ICDescriptorManager#getDescriptor(IProject, boolean)
	 * @param project
	 * @return ICDescriptor
	 * @throws CoreException
	 */
	public ICDescriptor getDescriptor(IProject project) throws CoreException;

	/**
	 * Return the ICDescriptor for the project.  If project doesn't contain
	 * an ICDescriptor and create == true, then one is created
	 * 
 	 * Users should consider batching changes in an ICDescriptorOperation
	 * 
	 * @param project
	 * @param create
	 * @return ICDescriptor
	 * @throws CoreException
	 */
	public ICDescriptor getDescriptor(IProject project, boolean create) throws CoreException;

	/**
	 * Atomically runs the descriptor operation on the current project's configuration
	 * 
	 * The descriptor is automatically 'applied' after the CDescriptorOperation has been run
	 * @param project
	 * @param op
	 * @param monitor
	 * @throws CoreException
	 */
	public void runDescriptorOperation(IProject project, ICDescriptorOperation op, IProgressMonitor monitor) throws CoreException;

	/**
	 * Runs the ICDescriptorOperation on the provided ICProjectDescription. The changes are reconciled into
	 * the provided ICProjectDescription.
	 * 
	 * Currently this project description may be different from the current project description
	 * @param project
	 * @param des
	 * @param op
	 * @param monitor
	 * @throws CoreException
	 */
	public void runDescriptorOperation(IProject project, ICProjectDescription des, ICDescriptorOperation op,
										IProgressMonitor monitor) throws CoreException;

	public void addDescriptorListener(ICDescriptorListener listener);

	public void removeDescriptorListener(ICDescriptorListener listener);
}

Back to the top