1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 12:03:16 +02:00

deprecated old classes for CDT 3.X projects

This commit is contained in:
Andrew Gvozdev 2010-03-23 03:43:02 +00:00
parent b92ea7d8bb
commit dc598d5a5d
2 changed files with 13 additions and 3 deletions

View file

@ -31,11 +31,15 @@ import org.eclipse.core.runtime.SubProgressMonitor;
* Runs after standard make builder.
* Consolidates discovered scanner configuration and updates project's scanner configuration.
*
* @deprecated as of CDT 4.0. Used by legacy CDT 3.X projects.
* Replaced by ScannerConfigBuilder in org.eclipse.cdt.managedbuilder.core.
*
* @see IncrementalProjectBuilder
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
@Deprecated
public class ScannerConfigBuilder extends ACBuilder {
public final static String BUILDER_ID = MakeCorePlugin.getUniqueIdentifier() + ".ScannerConfigBuilder"; //$NON-NLS-1$
@ -46,6 +50,8 @@ public class ScannerConfigBuilder extends ACBuilder {
/**
* @see IncrementalProjectBuilder#build
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
protected IProject [] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {
if (DEBUG_EVENTS)
printEvent(kind, args);

View file

@ -28,11 +28,15 @@ import org.eclipse.core.resources.IProjectNature;
import org.eclipse.core.runtime.CoreException;
/**
* @deprecated as of CDT 4.0. Used by legacy CDT 3.X projects.
* Replaced by ScannerConfigNature in org.eclipse.cdt.managedbuilder.core.
*
* @see IProjectNature
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
@Deprecated
public class ScannerConfigNature implements IProjectNature {
public final static String NATURE_ID = MakeCorePlugin.getUniqueIdentifier() + ".ScannerConfigNature"; //$NON-NLS-1$
@ -191,9 +195,9 @@ public class ScannerConfigNature implements IProjectNature {
scProjInfo.setBuildOutputFilePath(scPrefInfo.getBuildOutputFilePath());
ScannerConfigProfile profile = ScannerConfigProfileManager.getInstance().getSCProfileConfiguration(selectedProfile);
List providerIdList = scPrefInfo.getProviderIdList();
for (Iterator i = providerIdList.iterator(); i.hasNext();) {
String providerId = (String) i.next();
List<String> providerIdList = scPrefInfo.getProviderIdList();
for (Iterator<String> i = providerIdList.iterator(); i.hasNext();) {
String providerId = i.next();
scProjInfo.setProviderOutputParserEnabled(providerId, scPrefInfo.isProviderOutputParserEnabled(providerId));
if (profile.getScannerInfoProviderElement(providerId).getProviderKind().equals(