mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 06:55:23 +02:00
Mark for removal API not accessed within CDT (or Embed CDT)
This commit is contained in:
parent
848ce9c10b
commit
a27d4a3bb7
5 changed files with 42 additions and 41 deletions
|
@ -820,47 +820,11 @@ public class ManagedBuildManager extends AbstractCExtension {
|
|||
return null;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
*
|
||||
* @param config
|
||||
* @param option
|
||||
/**
|
||||
* Unreferenced in CDT
|
||||
* @deprecated
|
||||
*/
|
||||
/*
|
||||
private static void notifyListeners(IConfiguration config, IOption option) {
|
||||
// Continue if change is something that effect the scanner
|
||||
try {
|
||||
//an option can be null in the case of calling this method from the environment
|
||||
//build path change listener
|
||||
if (config.isTemporary() ||
|
||||
(option != null && option.getValueType() != IOption.INCLUDE_PATH
|
||||
&& option.getValueType() != IOption.PREPROCESSOR_SYMBOLS
|
||||
&& option.getValueType() != IOption.INCLUDE_FILES
|
||||
&& option.getValueType() != IOption.LIBRARY_PATHS
|
||||
&& option.getValueType() != IOption.LIBRARY_FILES
|
||||
&& option.getValueType() != IOption.MACRO_FILES
|
||||
&& option.getValueType() != IOption.UNDEF_INCLUDE_PATH
|
||||
&& option.getValueType() != IOption.UNDEF_PREPROCESSOR_SYMBOLS
|
||||
&& option.getValueType() != IOption.UNDEF_INCLUDE_FILES
|
||||
&& option.getValueType() != IOption.UNDEF_LIBRARY_PATHS
|
||||
&& option.getValueType() != IOption.UNDEF_LIBRARY_FILES
|
||||
&& option.getValueType() != IOption.UNDEF_MACRO_FILES
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
} catch (BuildException e) {return;}
|
||||
|
||||
// Figure out if there is a listener for this change
|
||||
IResource resource = config.getOwner();
|
||||
List listeners = (List) getBuildModelListeners().get(resource);
|
||||
if (listeners == null) {
|
||||
return;
|
||||
}
|
||||
ListIterator iter = listeners.listIterator();
|
||||
while (iter.hasNext()) {
|
||||
((IScannerInfoChangeListener)iter.next()).changeNotification(resource, (IScannerInfo)getBuildInfo(resource));
|
||||
}
|
||||
}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public static void initializePathEntries(IConfiguration config, IOption option) {
|
||||
try {
|
||||
if (config.isTemporary() || (option != null && option.getValueType() != IOption.INCLUDE_PATH
|
||||
|
@ -885,6 +849,11 @@ public class ManagedBuildManager extends AbstractCExtension {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Unreferenced in CDT
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public static void initializePathEntries(IResourceConfiguration resConfig, IOption option) {
|
||||
IConfiguration cfg = resConfig.getParent();
|
||||
if (cfg != null)
|
||||
|
@ -1478,6 +1447,11 @@ public class ManagedBuildManager extends AbstractCExtension {
|
|||
updateBuildInfo(project, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unreferenced in CDT
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public static void updateCoreSettings(IConfiguration cfg) throws CoreException {
|
||||
IProject project = cfg.getOwner().getProject();
|
||||
ICProjectDescription projDes = CoreModel.getDefault().getProjectDescription(project);
|
||||
|
@ -1488,6 +1462,11 @@ public class ManagedBuildManager extends AbstractCExtension {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unreferenced in CDT
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public static void updateCoreSettings(IProject project, IConfiguration[] cfgs) throws CoreException {
|
||||
updateCoreSettings(project, cfgs, false);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,10 @@ import org.eclipse.cdt.managedbuilder.core.IConfiguration;
|
|||
* listeners of the environment build path changes should implement this interface
|
||||
*
|
||||
* @since 3.0
|
||||
*
|
||||
* @deprecated Not referenced in CDT
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public interface IEnvironmentBuildPathsChangeListener {
|
||||
|
||||
/**
|
||||
|
|
|
@ -123,11 +123,17 @@ public interface IEnvironmentVariableProvider {
|
|||
* adds the listener that will return notifications about the include and library paths changes.
|
||||
* The ManagedBuildManager will register the change listener and will notify all registered
|
||||
* Scanned Info Change Listeners about the include paths change.
|
||||
*
|
||||
* @deprecated Not referenced in CDT
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
void subscribe(IEnvironmentBuildPathsChangeListener listener);
|
||||
|
||||
/**
|
||||
* removes the include and library paths change listener
|
||||
*
|
||||
* @deprecated Not referenced in CDT
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
void unsubscribe(IEnvironmentBuildPathsChangeListener listener);
|
||||
}
|
||||
|
|
|
@ -238,7 +238,10 @@ public class EnvironmentVariableProvider implements IEnvironmentVariableProvider
|
|||
|
||||
/**
|
||||
* notifies registered listeners
|
||||
*
|
||||
* @deprecated Not referenced in CDT
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
private void notifyListeners(IConfiguration configuration, int buildPathType) {
|
||||
List<IEnvironmentBuildPathsChangeListener> listeners = getListeners();
|
||||
for (IEnvironmentBuildPathsChangeListener listener : listeners) {
|
||||
|
@ -246,6 +249,11 @@ public class EnvironmentVariableProvider implements IEnvironmentVariableProvider
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated Not referenced in CDT
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@Override
|
||||
public synchronized void subscribe(IEnvironmentBuildPathsChangeListener listener) {
|
||||
if (listener == null)
|
||||
|
@ -257,6 +265,11 @@ public class EnvironmentVariableProvider implements IEnvironmentVariableProvider
|
|||
listeners.add(listener);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated Not referenced in CDT
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@Override
|
||||
public synchronized void unsubscribe(IEnvironmentBuildPathsChangeListener listener) {
|
||||
if (listener == null)
|
||||
|
|
|
@ -47,7 +47,7 @@ import org.eclipse.core.runtime.IPath;
|
|||
* @deprecated Since CDT 4.0 replaced by {@link ScannerInfoProviderProxy}. Still
|
||||
* used as a default for projects created by earlier CDT versions.
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public class ScannerProvider extends AbstractCExtension implements IScannerInfoProvider, IElementChangedListener {
|
||||
|
||||
// Listeners interested in build model changes
|
||||
|
|
Loading…
Add table
Reference in a new issue