blob: 4165c950c006af1a18c94244cef84ba8e629f618 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/*******************************************************************************
* Copyright (c) 2007, 2010 Intel Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Intel Corporation - Initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.managedbuilder.internal.dataprovider;
import org.eclipse.cdt.core.settings.model.extension.CFileData;
import org.eclipse.cdt.core.settings.model.extension.CLanguageData;
import org.eclipse.cdt.managedbuilder.core.IFileInfo;
import org.eclipse.cdt.managedbuilder.internal.core.ResourceConfiguration;
import org.eclipse.core.runtime.IPath;
public class BuildFileData extends CFileData {
private ResourceConfiguration fFileInfo;
public BuildFileData(IFileInfo fileInfo){
fFileInfo = (ResourceConfiguration)fileInfo;
}
public IFileInfo getFileInfo(){
return fFileInfo;
}
@Override
public IPath getPath() {
return fFileInfo.getPath();
}
// public boolean isExcluded() {
// return fFileInfo.isExcluded();
// }
//
// public void setExcluded(boolean excluded) {
// fFileInfo.setExclude(excluded);
// }
@Override
public void setPath(IPath path) {
fFileInfo.setPath(path);
}
@Override
public String getId() {
return fFileInfo.getId();
}
@Override
public String getName() {
return fFileInfo.getName();
}
public void setName(String name) {
// fFileInfo.setN
}
@Override
public boolean isValid() {
return fFileInfo.isValid();
}
@Override
public CLanguageData getLanguageData() {
CLanguageData datas[] = fFileInfo.getCLanguageDatas();
if(datas.length > 0)
return datas[0];
return null;
}
@Override
public boolean hasCustomSettings() {
return fFileInfo.hasCustomSettings();
}
void clearCachedData(){
BuildLanguageData lData = (BuildLanguageData)getLanguageData();
if(lData != null)
lData.clearCachedData();
}
}
|