|
1 /* |
|
2 * Copyright (c) 2005 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 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 package com.nokia.sdt.emf.dm; |
|
19 |
|
20 import com.nokia.sdt.datamodel.IDesignerDataModel; |
|
21 |
|
22 import org.eclipse.emf.common.util.EList; |
|
23 import org.eclipse.emf.ecore.EObject; |
|
24 import org.osgi.framework.Version; |
|
25 |
|
26 /** |
|
27 * @model |
|
28 */ |
|
29 public interface IDesignerData extends EObject { |
|
30 |
|
31 // Listener interface for changes to model string properties. |
|
32 // these are string properties belonging to the designer data node |
|
33 public interface IModelPropertyListener { |
|
34 void propertyChanged(String propertyId, String propertyValue); |
|
35 } |
|
36 |
|
37 /** |
|
38 * @model dataType="org.osgi.framework.Version" |
|
39 * This is used for versioning the XML format |
|
40 */ |
|
41 Version getVersion(); |
|
42 |
|
43 /** |
|
44 * Sets the value of the '{@link com.nokia.sdt.emf.dm.IDesignerData#getVersion <em>Version</em>}' attribute. |
|
45 * <!-- begin-user-doc --> |
|
46 * <!-- end-user-doc --> |
|
47 * @param value the new value of the '<em>Version</em>' attribute. |
|
48 * @see #getVersion() |
|
49 * @generated |
|
50 */ |
|
51 void setVersion(Version value); |
|
52 |
|
53 /** |
|
54 * Set the version attribute to reflect the current version, |
|
55 * as opposed to whatever value existed when the model was loaded |
|
56 */ |
|
57 void setCurrentVersion(); |
|
58 /** |
|
59 * @model changeable="false" containment="true" |
|
60 */ |
|
61 IPropertyContainer getProperties(); |
|
62 |
|
63 /** |
|
64 * @model type="com.nokia.sdt.emf.dm.INode" |
|
65 * containment="true" |
|
66 */ |
|
67 EList getRootContainers(); |
|
68 |
|
69 /** |
|
70 * @model containment="true" |
|
71 */ |
|
72 ILocalizedStringBundle getStringBundle(); |
|
73 |
|
74 /** |
|
75 * Sets the value of the '{@link com.nokia.sdt.emf.dm.IDesignerData#getStringBundle <em>String Bundle</em>}' containment reference. |
|
76 * <!-- begin-user-doc --> |
|
77 * <!-- end-user-doc --> |
|
78 * @param value the new value of the '<em>String Bundle</em>' containment reference. |
|
79 * @see #getStringBundle() |
|
80 * @generated |
|
81 */ |
|
82 void setStringBundle(ILocalizedStringBundle value); |
|
83 |
|
84 /** |
|
85 * @model containment="true" |
|
86 */ |
|
87 IComponentManifest getComponentManifest(); |
|
88 |
|
89 |
|
90 /** |
|
91 * Sets the value of the '{@link com.nokia.sdt.emf.dm.IDesignerData#getComponentManifest <em>Component Manifest</em>}' containment reference. |
|
92 * <!-- begin-user-doc --> |
|
93 * <!-- end-user-doc --> |
|
94 * @param value the new value of the '<em>Component Manifest</em>' containment reference. |
|
95 * @see #getComponentManifest() |
|
96 * @generated |
|
97 */ |
|
98 void setComponentManifest(IComponentManifest value); |
|
99 |
|
100 /** |
|
101 * @model containment="true" |
|
102 */ |
|
103 IMacroStringTable getMacroTable(); |
|
104 |
|
105 /** |
|
106 * @param value the new value of the '<em>Macro Table</em>' containment reference. |
|
107 * @see #getMacroTable() |
|
108 * @generated |
|
109 */ |
|
110 void setMacroTable(IMacroStringTable value); |
|
111 |
|
112 /** |
|
113 * @see com.nokia.sdt.emf.dm.DmPackage#getIDesignerData_SourceMappingState() |
|
114 * @model containment="true" |
|
115 * @generated |
|
116 */ |
|
117 ISourceGenMappingState getSourceMappingState(); |
|
118 |
|
119 /** |
|
120 * Tracks the generated files for the model |
|
121 * @model containment="true" |
|
122 */ |
|
123 IGeneratedFiles getGeneratedFiles(); |
|
124 |
|
125 /** |
|
126 * Sets the value of the '{@link com.nokia.sdt.emf.dm.IDesignerData#getGeneratedFiles <em>Generated Files</em>}' containment reference. |
|
127 * <!-- begin-user-doc --> |
|
128 * <!-- end-user-doc --> |
|
129 * @param value the new value of the '<em>Generated Files</em>' containment reference. |
|
130 * @see #getGeneratedFiles() |
|
131 * @generated |
|
132 */ |
|
133 void setGeneratedFiles(IGeneratedFiles value); |
|
134 |
|
135 /** |
|
136 * Sets the value of the '{@link com.nokia.sdt.emf.dm.IDesignerData#getSourceMappingState <em>Source Mapping State</em>}' containment reference. |
|
137 * <!-- begin-user-doc --> |
|
138 * <!-- end-user-doc --> |
|
139 * @param value the new value of the '<em>Source Mapping State</em>' containment reference. |
|
140 * @see #getSourceMappingState() |
|
141 * @generated |
|
142 */ |
|
143 void setSourceMappingState(ISourceGenMappingState value); |
|
144 |
|
145 Object visitNodes(INodeVisitor visitor); |
|
146 |
|
147 void garbageCollectStrings(); |
|
148 |
|
149 INode findByNameProperty(String name); |
|
150 |
|
151 void setComponentHelper(ComponentHelper helper); |
|
152 ComponentHelper getComponentHelper(); |
|
153 |
|
154 void setNodeNameProvider(INodeNameProvider provider); |
|
155 INodeNameProvider getNodeNameProvider(); |
|
156 |
|
157 void setDesignerDataModel(IDesignerDataModel dataModel); |
|
158 IDesignerDataModel getDesignerDataModel(); |
|
159 |
|
160 void addModelPropertyListener(IModelPropertyListener listener); |
|
161 void removeModelPropertyListener(IModelPropertyListener listener); |
|
162 |
|
163 } |