1
/*******************************************************************************
2
* Copyright (c) 2007, 2008 Intel Corporation and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Intel Corporation - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.internal.core.settings.model;
13
import org.eclipse.cdt.core.settings.model.ICResourceDescription;
14
import org.eclipse.cdt.core.settings.model.util.PathSettingsContainer;
15
import org.eclipse.core.runtime.IPath;
17
public class ProviderBasedRcDesHolder extends ResourceDescriptionHolder {
18
private IProxyProvider fProvider;
20
public ProviderBasedRcDesHolder(IProxyProvider provider, PathSettingsContainer pathContainer, boolean includeCurrent) {
21
super(pathContainer, includeCurrent);
26
public ICResourceDescription getResourceDescription(IPath path, boolean exactPath){
27
fProvider.cacheValues();
28
return super.getResourceDescription(path, exactPath);
32
public void addResourceDescription(IPath path, ICResourceDescription des){
33
fProvider.cacheValues();
34
super.addResourceDescription(path, des);
38
public ICResourceDescription[] getResourceDescriptions(final int kind){
39
fProvider.cacheValues();
40
return super.getResourceDescriptions(kind);
44
public ICResourceDescription getCurrentResourceDescription() {
45
fProvider.cacheValues();
46
return super.getCurrentResourceDescription();
50
public ICResourceDescription[] getResourceDescriptions() {
51
fProvider.cacheValues();
52
return super.getResourceDescriptions();
56
public ICResourceDescription[] getDirectChildren() {
57
fProvider.cacheValues();
58
return super.getDirectChildren();
61
// public ICSourceEntry[] calculateSourceEntriesFromPaths(IProject project, IPath[] paths) {
62
// fProvider.cacheValues();
63
// return super.calculateSourceEntriesFromPaths(project, paths);