diff options
author | John Camelon | 2003-08-13 17:45:38 +0000 |
---|---|---|
committer | John Camelon | 2003-08-13 17:45:38 +0000 |
commit | df11a294b8a2e86abfd4ae3e3fbde8a381c5fd3d (patch) | |
tree | d97412d578b6b023aecbd8b3f8a0df1828a6ebd6 /core/org.eclipse.cdt.core/.classpath | |
parent | fbd1af4e4527ae8c0b3d4cf965d238923cda3246 (diff) | |
download | org.eclipse.cdt-df11a294b8a2e86abfd4ae3e3fbde8a381c5fd3d.tar.gz org.eclipse.cdt-df11a294b8a2e86abfd4ae3e3fbde8a381c5fd3d.tar.xz org.eclipse.cdt-df11a294b8a2e86abfd4ae3e3fbde8a381c5fd3d.zip |
Patch for Sean Evoy
In order to work through CExtensionPoint mechanism, I have to change the
existing extension point entries for the Managed and Standard builders to
the following (all future builders will have to conform to this as well):
<extension
id="ManagedBuildManager"
point="org.eclipse.cdt.core.ScannerInfoProvider">
<cextension>
<run
class="org.eclipse.cdt.core.build.managed.ManagedBuildManager">
</run>
</cextension>
</extension>
<extension
id="StandardBuildManager"
point="org.eclipse.cdt.core.ScannerInfoProvider">
<cextension>
<run
class="org.eclipse.cdt.core.build.standard.StandardBuildManager">
</run>
</cextension>
</extension>
As well, the ManagedBuildManager and StandardBuildManager must extend
AbstractCExtension.
The new project wizards for managed and standard projects have to be
modified to register the right class as the scanner info providers for the
project. The example below shows the managed project wizard code, but the
standard project wizard is similar.
try {
ICDescriptor desc =
CCorePlugin.getDefault().getCProjectDescription(project);
desc.remove(CCorePlugin.BUILD_SCANNER_INFO_UNIQ_ID);
desc.create(CCorePlugin.BUILD_SCANNER_INFO_UNIQ_ID,
ManagedBuildManager.INTERFACE_IDENTITY);
} <snip>
Clients use a new method defined in CCorePlugin
public IScannerInfoProvider getScannerInfoProvider(IProject project) {
IScannerInfoProvider provider = null;
if (project != null) {
try {
ICDescriptor desc = (ICDescriptor)
getCProjectDescription(project);
ICExtensionReference[] extensions =
desc.get(BUILD_SCANNER_INFO_UNIQ_ID);
if (extensions.length > 0)
provider = (IScannerInfoProvider)
extensions[0].createExtension();
} catch (CoreException e) {
}
}
return provider;
}
to get the information provider as shown in the updated JUnit test code
below:
// Find the first IScannerInfoProvider that supplies build info for the
project
IScannerInfoProvider provider =
CCorePlugin.getDefault().getScannerInfoProvider(project);
assertNotNull(provider);
As is the case now, clients implement the IScannerInfoChangeListener
interface and pass themselves to the provider in a subscription message.
There is also a new method on the IScannerInfoProvider interface that
allows the client to get information immediately as shown below:
IScannerInfo currentSettings = provider.getScannerInformation(project);
The ManagedBuildManager::getScannerInfo(IResource) method will be
deprecated, then removed before the end of this release cycle.
Diffstat (limited to 'core/org.eclipse.cdt.core/.classpath')
-rw-r--r-- | core/org.eclipse.cdt.core/.classpath | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/org.eclipse.cdt.core/.classpath b/core/org.eclipse.cdt.core/.classpath index 7aa3bbc333d..7bd429f256a 100644 --- a/core/org.eclipse.cdt.core/.classpath +++ b/core/org.eclipse.cdt.core/.classpath @@ -1,12 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> + <classpathentry kind="src" path="build/"/> <classpathentry kind="src" path="index/"/> <classpathentry kind="src" path="model/"/> <classpathentry kind="src" path="src/"/> <classpathentry kind="src" path="utils/"/> - <classpathentry kind="src" path="build"/> - <classpathentry kind="src" path="dom"/> - <classpathentry kind="src" path="parser"/> + <classpathentry kind="src" path="parser/"/> + <classpathentry kind="src" path="dom/"/> + <classpathentry kind="src" path="search/"/> + <classpathentry kind="src" path="dependency/"/> <classpathentry kind="src" path="/org.eclipse.core.resources"/> <classpathentry kind="src" path="/org.eclipse.core.runtime"/> <classpathentry kind="src" path="/org.apache.xerces"/> @@ -14,8 +16,6 @@ <classpathentry kind="src" path="/org.eclipse.compare"/> <classpathentry kind="src" path="/org.eclipse.debug.core"/> <classpathentry kind="src" path="/org.eclipse.core.boot"/> - <classpathentry kind="var" path="JRE_LIB" sourcepath="JRE_SRC"/> - <classpathentry kind="src" path="search"/> - <classpathentry kind="src" path="dependency"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="bin"/> </classpath> |