|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). --> |
|
3 <!-- All rights reserved. --> |
|
4 <!-- This component and the accompanying materials are made available --> |
|
5 <!-- under the terms of the License "Eclipse Public License v1.0" --> |
|
6 <!-- which accompanies this distribution, and is available --> |
|
7 <!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
8 <componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" |
|
9 xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" |
|
10 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
11 xsi:schemaLocation="http://www.nokia.com/sdt/emf/component |
|
12 C:\Users\NOKIAI~1\RADPLA~1\design\component.xsd"> |
|
13 <component baseComponent="com.nokia.examples.srcgen3" |
|
14 friendlyName="SourceGen Test" qualifiedName="com.nokia.examples.srcgen3_derived" |
|
15 category="Testing" version="1.0"> |
|
16 <sourceGen> |
|
17 <!-- override the way MyClass is created --> |
|
18 <defineLocation |
|
19 baseLocation="srcgen3.FILE" |
|
20 id="srcgen3.CLASS" |
|
21 location="class(MyClass)"> |
|
22 <!-- this needs to define code in another block --> |
|
23 <template location="srcgen3.INCLUDES"> |
|
24 #include "derivedclass.h" |
|
25 </template> |
|
26 <template> |
|
27 class MyClass : public DerivedClass |
|
28 { |
|
29 } |
|
30 </template> |
|
31 </defineLocation> |
|
32 |
|
33 <!-- now use the locations to do stuff (a container really does this) --> |
|
34 <useTemplate ids="*"/> |
|
35 <useTemplateGroup ids="*"> |
|
36 <useTemplate ids="*"/> |
|
37 </useTemplateGroup> |
|
38 </sourceGen> |
|
39 </component> |
|
40 </componentDefinition> |