| 1193 | } |
| 1194 | |
| 1195 | void cmExtraEclipseCDT4Generator::AppendLinkedResource(cmXMLWriter& xml, |
| 1196 | std::string const& name, |
| 1197 | std::string const& path, |
| 1198 | LinkType linkType) |
| 1199 | { |
| 1200 | char const* locationTag = "location"; |
| 1201 | int typeTag = 2; |
| 1202 | if (linkType == VirtualFolder) // ... and not a linked folder |
| 1203 | { |
| 1204 | locationTag = "locationURI"; |
| 1205 | } |
| 1206 | if (linkType == LinkToFile) { |
| 1207 | typeTag = 1; |
| 1208 | } |
| 1209 | |
| 1210 | xml.StartElement("link"); |
| 1211 | xml.Element("name", name); |
| 1212 | xml.Element("type", typeTag); |
| 1213 | xml.Element(locationTag, path); |
| 1214 | xml.EndElement(); |
| 1215 | } |
nothing calls this directly
no test coverage detected