blob: 95eb59e32b97ef0a883f70c87a7f22b04b2ea74a (
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
|
/**********************************************************************
* Copyright (c) 2002,2003 Timesys Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* Timesys - Initial API and implementation
**********************************************************************/
package org.eclipse.cdt.core.builder.internal;
import org.eclipse.cdt.core.builder.ICToolPoint;
import org.eclipse.cdt.core.builder.model.ICTool;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
/**
* Simple wrapper for the data associated with an instance of
* a CTool extension point.
*/
public class CToolPoint extends ACExtensionPoint implements ICToolPoint {
/**
* Constructor.
*
* @param element configuration element for the tool type.
*/
public CToolPoint(IConfigurationElement element) {
super(element);
}
/**
* @see org.eclipse.cdt.core.builder.ICToolPoint#getId()
*/
public String getId() {
return getField(FIELD_ID);
}
/**
* @see org.eclipse.cdt.core.builder.ICToolPoint#getName()
*/
public String getName() {
return getField(FIELD_NAME);
}
/**
* @see org.eclipse.cdt.core.builder.ICToolPoint#getType()
*/
public String getType() {
return getField(FIELD_TYPE);
}
/**
* @see org.eclipse.cdt.core.builder.ICToolPoint#getProviderClassName()
*/
public String getProviderClassName() {
return getField(FIELD_CLASS);
}
/**
* @see org.eclipse.cdt.core.builder.ICToolPoint#getProvider()
*/
public ICTool getProvider() throws CoreException {
return (ICTool) getClassInstance(FIELD_CLASS);
}
}
|