mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-20 07:25: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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/**
|
||||||
*
|
* Unreferenced in CDT
|
||||||
* @param config
|
* @deprecated
|
||||||
* @param option
|
|
||||||
*/
|
*/
|
||||||
/*
|
@Deprecated(forRemoval = true)
|
||||||
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));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
public static void initializePathEntries(IConfiguration config, IOption option) {
|
public static void initializePathEntries(IConfiguration config, IOption option) {
|
||||||
try {
|
try {
|
||||||
if (config.isTemporary() || (option != null && option.getValueType() != IOption.INCLUDE_PATH
|
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) {
|
public static void initializePathEntries(IResourceConfiguration resConfig, IOption option) {
|
||||||
IConfiguration cfg = resConfig.getParent();
|
IConfiguration cfg = resConfig.getParent();
|
||||||
if (cfg != null)
|
if (cfg != null)
|
||||||
|
@ -1478,6 +1447,11 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
updateBuildInfo(project, true);
|
updateBuildInfo(project, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unreferenced in CDT
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public static void updateCoreSettings(IConfiguration cfg) throws CoreException {
|
public static void updateCoreSettings(IConfiguration cfg) throws CoreException {
|
||||||
IProject project = cfg.getOwner().getProject();
|
IProject project = cfg.getOwner().getProject();
|
||||||
ICProjectDescription projDes = CoreModel.getDefault().getProjectDescription(project);
|
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 {
|
public static void updateCoreSettings(IProject project, IConfiguration[] cfgs) throws CoreException {
|
||||||
updateCoreSettings(project, cfgs, false);
|
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
|
* listeners of the environment build path changes should implement this interface
|
||||||
*
|
*
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
|
*
|
||||||
|
* @deprecated Not referenced in CDT
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
public interface IEnvironmentBuildPathsChangeListener {
|
public interface IEnvironmentBuildPathsChangeListener {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -123,11 +123,17 @@ public interface IEnvironmentVariableProvider {
|
||||||
* adds the listener that will return notifications about the include and library paths changes.
|
* 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
|
* The ManagedBuildManager will register the change listener and will notify all registered
|
||||||
* Scanned Info Change Listeners about the include paths change.
|
* Scanned Info Change Listeners about the include paths change.
|
||||||
|
*
|
||||||
|
* @deprecated Not referenced in CDT
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
void subscribe(IEnvironmentBuildPathsChangeListener listener);
|
void subscribe(IEnvironmentBuildPathsChangeListener listener);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* removes the include and library paths change listener
|
* removes the include and library paths change listener
|
||||||
|
*
|
||||||
|
* @deprecated Not referenced in CDT
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
void unsubscribe(IEnvironmentBuildPathsChangeListener listener);
|
void unsubscribe(IEnvironmentBuildPathsChangeListener listener);
|
||||||
}
|
}
|
||||||
|
|
|
@ -238,7 +238,10 @@ public class EnvironmentVariableProvider implements IEnvironmentVariableProvider
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* notifies registered listeners
|
* notifies registered listeners
|
||||||
|
*
|
||||||
|
* @deprecated Not referenced in CDT
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
private void notifyListeners(IConfiguration configuration, int buildPathType) {
|
private void notifyListeners(IConfiguration configuration, int buildPathType) {
|
||||||
List<IEnvironmentBuildPathsChangeListener> listeners = getListeners();
|
List<IEnvironmentBuildPathsChangeListener> listeners = getListeners();
|
||||||
for (IEnvironmentBuildPathsChangeListener listener : listeners) {
|
for (IEnvironmentBuildPathsChangeListener listener : listeners) {
|
||||||
|
@ -246,6 +249,11 @@ public class EnvironmentVariableProvider implements IEnvironmentVariableProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @deprecated Not referenced in CDT
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
@Override
|
@Override
|
||||||
public synchronized void subscribe(IEnvironmentBuildPathsChangeListener listener) {
|
public synchronized void subscribe(IEnvironmentBuildPathsChangeListener listener) {
|
||||||
if (listener == null)
|
if (listener == null)
|
||||||
|
@ -257,6 +265,11 @@ public class EnvironmentVariableProvider implements IEnvironmentVariableProvider
|
||||||
listeners.add(listener);
|
listeners.add(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @deprecated Not referenced in CDT
|
||||||
|
*/
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
@Override
|
@Override
|
||||||
public synchronized void unsubscribe(IEnvironmentBuildPathsChangeListener listener) {
|
public synchronized void unsubscribe(IEnvironmentBuildPathsChangeListener listener) {
|
||||||
if (listener == null)
|
if (listener == null)
|
||||||
|
|
|
@ -47,7 +47,7 @@ import org.eclipse.core.runtime.IPath;
|
||||||
* @deprecated Since CDT 4.0 replaced by {@link ScannerInfoProviderProxy}. Still
|
* @deprecated Since CDT 4.0 replaced by {@link ScannerInfoProviderProxy}. Still
|
||||||
* used as a default for projects created by earlier CDT versions.
|
* used as a default for projects created by earlier CDT versions.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(forRemoval = true)
|
||||||
public class ScannerProvider extends AbstractCExtension implements IScannerInfoProvider, IElementChangedListener {
|
public class ScannerProvider extends AbstractCExtension implements IScannerInfoProvider, IElementChangedListener {
|
||||||
|
|
||||||
// Listeners interested in build model changes
|
// Listeners interested in build model changes
|
||||||
|
|
Loading…
Add table
Reference in a new issue