Lines 28-109
Link Here
|
28 |
protected final String TEXT_9 = NL + " "; |
28 |
protected final String TEXT_9 = NL + " "; |
29 |
protected final String TEXT_10 = " " + NL + "\t"; |
29 |
protected final String TEXT_10 = " " + NL + "\t"; |
30 |
protected final String TEXT_11 = NL + "\t"; |
30 |
protected final String TEXT_11 = NL + "\t"; |
31 |
protected final String TEXT_12 = NL + "{" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */"; |
31 |
protected final String TEXT_12 = NL + "{" + NL + "" + NL + "\t/*" + NL + "\t * @generated " + NL + "\t */" + NL + "\tprotected List createStyles(View view) {" + NL + "\t\t"; |
32 |
protected final String TEXT_13 = NL + "\tprotected void decorateView(View view, IAdaptable semanticAdapter, String diagramKind){" + NL + "\t\tsuper.decorateView(view, semanticAdapter, diagramKind);"; |
32 |
protected final String TEXT_13 = " styles = new "; |
33 |
protected final String TEXT_14 = NL + "\tprotected void decorateView(View containerView, View view, IAdaptable semanticAdapter," + NL + "\t\t\tString semanticHint, int index, boolean persisted) {" + NL + "\t\tif (semanticHint == null) { "; |
33 |
protected final String TEXT_14 = "();"; |
34 |
protected final String TEXT_15 = NL + "\t\t\tsemanticHint = "; |
34 |
protected final String TEXT_15 = NL + "\t\tstyles.add("; |
35 |
protected final String TEXT_16 = ".getType("; |
35 |
protected final String TEXT_16 = ".eINSTANCE.createRoutingStyle());"; |
36 |
protected final String TEXT_17 = ".VISUAL_ID);" + NL + "\t\t\tview.setType(semanticHint);" + NL + "\t\t}"; |
36 |
protected final String TEXT_17 = NL + "\t\tstyles.add("; |
37 |
protected final String TEXT_18 = NL + "\t\tsuper.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);"; |
37 |
protected final String TEXT_18 = ".eINSTANCE.createLineStyle());"; |
38 |
protected final String TEXT_19 = NL + "\t\tsetupCompartmentTitle(view);" + NL + "\t\tsetupCompartmentCollapsed(view);"; |
38 |
protected final String TEXT_19 = NL + "\t\tstyles.add("; |
39 |
protected final String TEXT_20 = "\t\t" + NL + "\t\tif (!"; |
39 |
protected final String TEXT_20 = ".eINSTANCE.createPageStyle());" + NL + "\t\tstyles.add("; |
40 |
protected final String TEXT_21 = ".MODEL_ID.equals("; |
40 |
protected final String TEXT_21 = ".eINSTANCE.createGuideStyle());" + NL + "\t\tstyles.add("; |
41 |
protected final String TEXT_22 = ".getModelID(containerView))) {" + NL + "\t\t\t"; |
41 |
protected final String TEXT_22 = ".eINSTANCE.createDescriptionStyle());"; |
42 |
protected final String TEXT_23 = " shortcutAnnotation = "; |
42 |
protected final String TEXT_23 = NL + "\t\tstyles.add("; |
43 |
protected final String TEXT_24 = ".eINSTANCE.createEAnnotation();" + NL + "\t\t\tshortcutAnnotation.setSource(\"Shortcut\"); //$NON-NLS-1$" + NL + "\t\t\tshortcutAnnotation.getDetails().put(\"modelID\", "; |
43 |
protected final String TEXT_24 = ".eINSTANCE.createDrawerStyle());"; |
44 |
protected final String TEXT_25 = ".MODEL_ID); //$NON-NLS-1$" + NL + "\t\t\tview.getEAnnotations().add(shortcutAnnotation);" + NL + "\t\t}"; |
44 |
protected final String TEXT_25 = "\t" + NL + "\t\tstyles.add("; |
45 |
protected final String TEXT_26 = NL + "\t\t"; |
45 |
protected final String TEXT_26 = ".eINSTANCE.createTitleStyle());"; |
46 |
protected final String TEXT_27 = ".setStructuralFeatureValue(view, "; |
46 |
protected final String TEXT_27 = "\t" + NL + "\t\tstyles.add("; |
47 |
protected final String TEXT_28 = ".eINSTANCE.getLineStyle_LineColor()," + NL + "\t\t\t"; |
47 |
protected final String TEXT_28 = ".eINSTANCE.createSortingStyle());" + NL + "\t\tstyles.add("; |
48 |
protected final String TEXT_29 = ".colorToInteger("; |
48 |
protected final String TEXT_29 = ".eINSTANCE.createFilteringStyle());"; |
49 |
protected final String TEXT_30 = "."; |
49 |
protected final String TEXT_30 = NL + "\t\tstyles.add("; |
50 |
protected final String TEXT_31 = "));"; |
50 |
protected final String TEXT_31 = ".eINSTANCE.createFontStyle());" + NL + "\t\tstyles.add("; |
51 |
protected final String TEXT_32 = NL + "\t\t"; |
51 |
protected final String TEXT_32 = ".eINSTANCE.createDescriptionStyle());" + NL + "\t\tstyles.add("; |
52 |
protected final String TEXT_33 = ".setStructuralFeatureValue(view, "; |
52 |
protected final String TEXT_33 = ".eINSTANCE.createFillStyle());" + NL + "\t\tstyles.add("; |
53 |
protected final String TEXT_34 = ".eINSTANCE.getFillStyle_FillColor()," + NL + "\t\t\t"; |
53 |
protected final String TEXT_34 = ".eINSTANCE.createLineStyle());"; |
54 |
protected final String TEXT_35 = ".colorToInteger("; |
54 |
protected final String TEXT_35 = NL + "\t\treturn styles;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */"; |
55 |
protected final String TEXT_36 = "."; |
55 |
protected final String TEXT_36 = NL + "\tprotected void decorateView(View view, IAdaptable semanticAdapter, String diagramKind){" + NL + "\t\tsuper.decorateView(view, semanticAdapter, diagramKind);"; |
56 |
protected final String TEXT_37 = "));"; |
56 |
protected final String TEXT_37 = NL + "\tprotected void decorateView(View containerView, View view, IAdaptable semanticAdapter," + NL + "\t\t\tString semanticHint, int index, boolean persisted) {" + NL + "\t\tif (semanticHint == null) { "; |
57 |
protected final String TEXT_38 = NL + "\t\tgetViewService().createNode(semanticAdapter, view, "; |
57 |
protected final String TEXT_38 = NL + "\t\t\tsemanticHint = "; |
58 |
protected final String TEXT_39 = ".getType("; |
58 |
protected final String TEXT_39 = ".getType("; |
59 |
protected final String TEXT_40 = ".VISUAL_ID)," + NL + "\t\t\t"; |
59 |
protected final String TEXT_40 = ".VISUAL_ID);" + NL + "\t\t\tview.setType(semanticHint);" + NL + "\t\t}"; |
60 |
protected final String TEXT_41 = ".APPEND, true, getPreferencesHint());"; |
60 |
protected final String TEXT_41 = NL + "\t\tsuper.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);"; |
61 |
protected final String TEXT_42 = NL + "\t\tgetViewService().createNode(semanticAdapter, view, "; |
61 |
protected final String TEXT_42 = NL + "\t\tsetupCompartmentTitle(view);" + NL + "\t\tsetupCompartmentCollapsed(view);"; |
62 |
protected final String TEXT_43 = ".getType("; |
62 |
protected final String TEXT_43 = "\t\t" + NL + "\t\tif (!"; |
63 |
protected final String TEXT_44 = ".VISUAL_ID)," + NL + "\t\t\t"; |
63 |
protected final String TEXT_44 = ".MODEL_ID.equals("; |
64 |
protected final String TEXT_45 = ".APPEND, true, getPreferencesHint());"; |
64 |
protected final String TEXT_45 = ".getModelID(containerView))) {" + NL + "\t\t\t"; |
65 |
protected final String TEXT_46 = NL + "\t\tgetViewService().createNode(semanticAdapter, view, "; |
65 |
protected final String TEXT_46 = " shortcutAnnotation = "; |
66 |
protected final String TEXT_47 = ".getType("; |
66 |
protected final String TEXT_47 = ".eINSTANCE.createEAnnotation();" + NL + "\t\t\tshortcutAnnotation.setSource(\"Shortcut\"); //$NON-NLS-1$" + NL + "\t\t\tshortcutAnnotation.getDetails().put(\"modelID\", "; |
67 |
protected final String TEXT_48 = ".VISUAL_ID)," + NL + "\t\t\t"; |
67 |
protected final String TEXT_48 = ".MODEL_ID); //$NON-NLS-1$" + NL + "\t\t\tview.getEAnnotations().add(shortcutAnnotation);" + NL + "\t\t}"; |
68 |
protected final String TEXT_49 = ".APPEND, true, getPreferencesHint());"; |
68 |
protected final String TEXT_49 = NL + "\t\t"; |
69 |
protected final String TEXT_50 = NL + "\t}"; |
69 |
protected final String TEXT_50 = ".setStructuralFeatureValue(view, "; |
70 |
protected final String TEXT_51 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
70 |
protected final String TEXT_51 = ".eINSTANCE.getLineStyle_LineColor()," + NL + "\t\t\t"; |
71 |
protected final String TEXT_52 = " createStyles(View view) {" + NL + "\t\t"; |
71 |
protected final String TEXT_52 = ".colorToInteger("; |
72 |
protected final String TEXT_53 = " styles = super.createStyles(view);" + NL + "\t\tstyles.add("; |
72 |
protected final String TEXT_53 = "."; |
73 |
protected final String TEXT_54 = ".eINSTANCE.createShapeStyle());" + NL + "\t\treturn styles;" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
73 |
protected final String TEXT_54 = "));"; |
74 |
protected final String TEXT_55 = " createLayoutConstraint() {" + NL + "\t\treturn "; |
74 |
protected final String TEXT_55 = NL + "\t\t"; |
75 |
protected final String TEXT_56 = ".eINSTANCE.createBounds();" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void initializeFromPreferences(View view) {" + NL + "\t\tsuper.initializeFromPreferences(view);" + NL + "" + NL + "\t\t"; |
75 |
protected final String TEXT_56 = ".setStructuralFeatureValue(view, "; |
76 |
protected final String TEXT_57 = " store = ("; |
76 |
protected final String TEXT_57 = ".eINSTANCE.getFillStyle_FillColor()," + NL + "\t\t\t"; |
77 |
protected final String TEXT_58 = ") getPreferencesHint().getPreferenceStore();" + NL + "" + NL + "\t\t// fill color" + NL + "\t\t"; |
77 |
protected final String TEXT_58 = ".colorToInteger("; |
78 |
protected final String TEXT_59 = " fillRGB = "; |
78 |
protected final String TEXT_59 = "."; |
79 |
protected final String TEXT_60 = ".getColor(store, "; |
79 |
protected final String TEXT_60 = "));"; |
80 |
protected final String TEXT_61 = ".PREF_FILL_COLOR);" + NL + "\t\t"; |
80 |
protected final String TEXT_61 = NL + "\t\tgetViewService().createNode(semanticAdapter, view, "; |
81 |
protected final String TEXT_62 = ".setStructuralFeatureValue(view, "; |
81 |
protected final String TEXT_62 = ".getType("; |
82 |
protected final String TEXT_63 = ".eINSTANCE.getFillStyle_FillColor(), "; |
82 |
protected final String TEXT_63 = ".VISUAL_ID)," + NL + "\t\t\t"; |
83 |
protected final String TEXT_64 = ".RGBToInteger(fillRGB));" + NL + "\t}"; |
83 |
protected final String TEXT_64 = ".APPEND, true, getPreferencesHint());"; |
84 |
protected final String TEXT_65 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
84 |
protected final String TEXT_65 = NL + "\t\tgetViewService().createNode(semanticAdapter, view, "; |
85 |
protected final String TEXT_66 = " getMeasurementUnit() {" + NL + "\t\treturn "; |
85 |
protected final String TEXT_66 = ".getType("; |
86 |
protected final String TEXT_67 = "."; |
86 |
protected final String TEXT_67 = ".VISUAL_ID)," + NL + "\t\t\t"; |
87 |
protected final String TEXT_68 = "_LITERAL;" + NL + "\t}"; |
87 |
protected final String TEXT_68 = ".APPEND, true, getPreferencesHint());"; |
88 |
protected final String TEXT_69 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void setupCompartmentTitle(View view) {" + NL + "\t\t"; |
88 |
protected final String TEXT_69 = NL + "\t\tgetViewService().createNode(semanticAdapter, view, "; |
89 |
protected final String TEXT_70 = " titleStyle = ("; |
89 |
protected final String TEXT_70 = ".getType("; |
90 |
protected final String TEXT_71 = ")view.getStyle("; |
90 |
protected final String TEXT_71 = ".VISUAL_ID)," + NL + "\t\t\t"; |
91 |
protected final String TEXT_72 = ".eINSTANCE.getTitleStyle());"; |
91 |
protected final String TEXT_72 = ".APPEND, true, getPreferencesHint());"; |
92 |
protected final String TEXT_73 = "\t\t" + NL + "\t\tif (titleStyle == null){" + NL + "\t\t\ttitleStyle = ("; |
92 |
protected final String TEXT_73 = NL + "\t}"; |
93 |
protected final String TEXT_74 = ") view.createStyle("; |
93 |
protected final String TEXT_74 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
94 |
protected final String TEXT_75 = ".eINSTANCE.getTitleStyle());" + NL + "\t\t}" + NL + "\t\ttitleStyle.setShowTitle(true);"; |
94 |
protected final String TEXT_75 = " createLayoutConstraint() {" + NL + "\t\treturn "; |
95 |
protected final String TEXT_76 = NL + "\t\tif (titleStyle != null){" + NL + "\t\t\tview.getStyles().remove(titleStyle);" + NL + "\t\t}"; |
95 |
protected final String TEXT_76 = ".eINSTANCE.createBounds();" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void initializeFromPreferences(View view) {" + NL + "\t\tsuper.initializeFromPreferences(view);" + NL + "" + NL + "\t\t"; |
96 |
protected final String TEXT_77 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void setupCompartmentCollapsed(View view) {" + NL + "\t\t"; |
96 |
protected final String TEXT_77 = " store = ("; |
97 |
protected final String TEXT_78 = " drawerStyle = ("; |
97 |
protected final String TEXT_78 = ") getPreferencesHint().getPreferenceStore();" + NL + "" + NL + "\t\t// fill color" + NL + "\t\t"; |
98 |
protected final String TEXT_79 = ")view.getStyle("; |
98 |
protected final String TEXT_79 = " fillRGB = "; |
99 |
protected final String TEXT_80 = ".eINSTANCE.getDrawerStyle());"; |
99 |
protected final String TEXT_80 = ".getColor(store, "; |
100 |
protected final String TEXT_81 = "\t\t" + NL + "\t\tif (drawerStyle == null){" + NL + "\t\t\tdrawerStyle = ("; |
100 |
protected final String TEXT_81 = ".PREF_FILL_COLOR);" + NL + "\t\t"; |
101 |
protected final String TEXT_82 = ") view.createStyle("; |
101 |
protected final String TEXT_82 = ".setStructuralFeatureValue(view, "; |
102 |
protected final String TEXT_83 = ".eINSTANCE.getDrawerStyle());" + NL + "\t\t}" + NL + "\t\tdrawerStyle.setCollapsed(false);"; |
102 |
protected final String TEXT_83 = ".eINSTANCE.getFillStyle_FillColor(), "; |
103 |
protected final String TEXT_84 = NL + "\t\tif (drawerStyle != null){" + NL + "\t\t\tview.getStyles().remove(drawerStyle);" + NL + "\t\t}"; |
103 |
protected final String TEXT_84 = ".RGBToInteger(fillRGB));" + NL + "\t}"; |
104 |
protected final String TEXT_85 = NL + "\t}" + NL; |
104 |
protected final String TEXT_85 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
105 |
protected final String TEXT_86 = NL + "}"; |
105 |
protected final String TEXT_86 = " getMeasurementUnit() {" + NL + "\t\treturn "; |
106 |
protected final String TEXT_87 = NL; |
106 |
protected final String TEXT_87 = "."; |
|
|
107 |
protected final String TEXT_88 = "_LITERAL;" + NL + "\t}"; |
108 |
protected final String TEXT_89 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void setupCompartmentTitle(View view) {" + NL + "\t\t"; |
109 |
protected final String TEXT_90 = " titleStyle = ("; |
110 |
protected final String TEXT_91 = ")view.getStyle("; |
111 |
protected final String TEXT_92 = ".eINSTANCE.getTitleStyle());" + NL + "\t\tif (titleStyle != null){" + NL + "\t\t\ttitleStyle.setShowTitle(true);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void setupCompartmentCollapsed(View view) {" + NL + "\t\t"; |
112 |
protected final String TEXT_93 = " drawerStyle = ("; |
113 |
protected final String TEXT_94 = ")view.getStyle("; |
114 |
protected final String TEXT_95 = ".eINSTANCE.getDrawerStyle());" + NL + "\t\tif (drawerStyle != null){" + NL + "\t\t\tdrawerStyle.setCollapsed(false);" + NL + "\t\t}" + NL + "\t}"; |
115 |
protected final String TEXT_96 = NL + NL + "}"; |
116 |
protected final String TEXT_97 = NL; |
107 |
|
117 |
|
108 |
public String generate(Object argument) |
118 |
public String generate(Object argument) |
109 |
{ |
119 |
{ |
Lines 130-140
Link Here
|
130 |
|
140 |
|
131 |
importManager.markImportLocation(stringBuffer); |
141 |
importManager.markImportLocation(stringBuffer); |
132 |
|
142 |
|
|
|
143 |
final boolean isLink = genElement instanceof GenLink; |
144 |
final boolean isLabel = genElement instanceof GenChildLabelNode; |
145 |
final boolean isDiagram = genElement instanceof GenDiagram; |
146 |
final boolean isCompartment = genElement instanceof GenCompartment; |
147 |
final boolean isShape = !isLink && !isLabel && !isDiagram && !isCompartment; // captures else |
148 |
assert isLink || isLabel || isDiagram || isCompartment || isShape; |
133 |
|
149 |
|
134 |
boolean isLink = genElement instanceof GenLink; |
150 |
final boolean isNode = !isLink && !isDiagram && !isCompartment; |
135 |
boolean isDiagram = genElement instanceof GenDiagram; |
|
|
136 |
boolean isCompartment = genElement instanceof GenCompartment; |
137 |
boolean isNode = !isLink && !isDiagram && !isCompartment; |
138 |
boolean isCompartmentWithOwnBounds = false; |
151 |
boolean isCompartmentWithOwnBounds = false; |
139 |
if (isCompartment){ |
152 |
if (isCompartment){ |
140 |
GenCompartment genCompartment = (GenCompartment)genElement; |
153 |
GenCompartment genCompartment = (GenCompartment)genElement; |
Lines 147-153
Link Here
|
147 |
if (isLink) { |
160 |
if (isLink) { |
148 |
stringBuffer.append(TEXT_7); |
161 |
stringBuffer.append(TEXT_7); |
149 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.view.factories.ConnectionViewFactory")); |
162 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.view.factories.ConnectionViewFactory")); |
150 |
} else if (genElement instanceof GenChildLabelNode) { |
163 |
} else if (isLabel) { |
151 |
stringBuffer.append(TEXT_8); |
164 |
stringBuffer.append(TEXT_8); |
152 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory")); |
165 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory")); |
153 |
} else if (isCompartment) { |
166 |
} else if (isCompartment) { |
Lines 156-254
Link Here
|
156 |
} else if (isDiagram) { |
169 |
} else if (isDiagram) { |
157 |
stringBuffer.append(TEXT_10); |
170 |
stringBuffer.append(TEXT_10); |
158 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.view.factories.DiagramViewFactory")); |
171 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.view.factories.DiagramViewFactory")); |
159 |
} else { |
172 |
} else if (isShape) { |
160 |
stringBuffer.append(TEXT_11); |
173 |
stringBuffer.append(TEXT_11); |
161 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory")); |
174 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory")); |
162 |
} |
175 |
} else { |
|
|
176 |
throw new IllegalStateException("Unknown case for " + genElement); |
177 |
} |
163 |
stringBuffer.append(TEXT_12); |
178 |
stringBuffer.append(TEXT_12); |
|
|
179 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
180 |
stringBuffer.append(TEXT_13); |
181 |
stringBuffer.append(importManager.getImportedName("java.util.ArrayList")); |
182 |
stringBuffer.append(TEXT_14); |
164 |
|
183 |
|
|
|
184 |
if (isLink) { |
185 |
|
186 |
stringBuffer.append(TEXT_15); |
187 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
188 |
stringBuffer.append(TEXT_16); |
189 |
|
190 |
Viewmap viewmap = genElement.getViewmap(); |
191 |
StyleAttributes styleAttributes = (viewmap == null) ? null : (StyleAttributes)viewmap.find(StyleAttributes.class); |
192 |
boolean fixedForeground = styleAttributes != null && styleAttributes.isFixedForeground(); |
193 |
if (!fixedForeground) { |
194 |
|
195 |
stringBuffer.append(TEXT_17); |
196 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
197 |
stringBuffer.append(TEXT_18); |
198 |
|
199 |
} //fixedForeground |
200 |
} |
201 |
if (isLabel) { |
202 |
//no styles for label |
203 |
} |
165 |
if (isDiagram) { |
204 |
if (isDiagram) { |
166 |
|
205 |
|
167 |
stringBuffer.append(TEXT_13); |
206 |
stringBuffer.append(TEXT_19); |
|
|
207 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
208 |
stringBuffer.append(TEXT_20); |
209 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
210 |
stringBuffer.append(TEXT_21); |
211 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
212 |
stringBuffer.append(TEXT_22); |
213 |
|
214 |
} |
215 |
if (isCompartment) { |
216 |
GenCompartment genCompartment = (GenCompartment)genElement; |
217 |
if (genCompartment.isCanCollapse()){ |
218 |
|
219 |
stringBuffer.append(TEXT_23); |
220 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
221 |
stringBuffer.append(TEXT_24); |
222 |
|
223 |
} |
224 |
if (genCompartment.isNeedsTitle()){ |
225 |
|
226 |
stringBuffer.append(TEXT_25); |
227 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
228 |
stringBuffer.append(TEXT_26); |
229 |
|
230 |
} |
231 |
|
232 |
stringBuffer.append(TEXT_27); |
233 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
234 |
stringBuffer.append(TEXT_28); |
235 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
236 |
stringBuffer.append(TEXT_29); |
237 |
|
238 |
} |
239 |
if (isShape || isCompartmentWithOwnBounds) { |
240 |
|
241 |
stringBuffer.append(TEXT_30); |
242 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
243 |
stringBuffer.append(TEXT_31); |
244 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
245 |
stringBuffer.append(TEXT_32); |
246 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
247 |
stringBuffer.append(TEXT_33); |
248 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
249 |
stringBuffer.append(TEXT_34); |
250 |
|
251 |
} |
252 |
|
253 |
stringBuffer.append(TEXT_35); |
254 |
|
255 |
if (isDiagram) { |
256 |
|
257 |
stringBuffer.append(TEXT_36); |
168 |
|
258 |
|
169 |
} else { |
259 |
} else { |
170 |
|
260 |
|
171 |
stringBuffer.append(TEXT_14); |
261 |
stringBuffer.append(TEXT_37); |
172 |
/* [++] important for the create shortcut functionality*/ |
262 |
/* [++] important for the create shortcut functionality*/ |
173 |
stringBuffer.append(TEXT_15); |
263 |
stringBuffer.append(TEXT_38); |
174 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
264 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
175 |
stringBuffer.append(TEXT_16); |
265 |
stringBuffer.append(TEXT_39); |
176 |
stringBuffer.append(genElement.getEditPartQualifiedClassName()); |
266 |
stringBuffer.append(genElement.getEditPartQualifiedClassName()); |
177 |
stringBuffer.append(TEXT_17); |
267 |
stringBuffer.append(TEXT_40); |
178 |
/* [--] important for the create shortcut functionality*/ |
268 |
/* [--] important for the create shortcut functionality*/ |
179 |
stringBuffer.append(TEXT_18); |
269 |
stringBuffer.append(TEXT_41); |
180 |
if (isCompartment){ |
270 |
if (isCompartment){ |
181 |
stringBuffer.append(TEXT_19); |
271 |
stringBuffer.append(TEXT_42); |
182 |
} |
272 |
} |
183 |
stringBuffer.append(TEXT_20); |
273 |
stringBuffer.append(TEXT_43); |
184 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); |
274 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); |
185 |
stringBuffer.append(TEXT_21); |
275 |
stringBuffer.append(TEXT_44); |
186 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
276 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
187 |
stringBuffer.append(TEXT_22); |
277 |
stringBuffer.append(TEXT_45); |
188 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); |
278 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); |
189 |
stringBuffer.append(TEXT_23); |
279 |
stringBuffer.append(TEXT_46); |
190 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EcoreFactory")); |
280 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EcoreFactory")); |
191 |
stringBuffer.append(TEXT_24); |
281 |
stringBuffer.append(TEXT_47); |
192 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); |
282 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); |
193 |
stringBuffer.append(TEXT_25); |
283 |
stringBuffer.append(TEXT_48); |
194 |
|
284 |
|
195 |
} |
285 |
} |
196 |
|
286 |
|
197 |
ColorAttributes colorAttrs = genElement.getViewmap() != null ? (ColorAttributes) genElement.getViewmap().find(ColorAttributes.class) : null; |
287 |
ColorAttributes colorAttrs = genElement.getViewmap() != null ? (ColorAttributes) genElement.getViewmap().find(ColorAttributes.class) : null; |
198 |
if (colorAttrs != null && colorAttrs.getForegroundColor() != null && colorAttrs.getForegroundColor().trim().length() > 0) { |
288 |
if (colorAttrs != null && colorAttrs.getForegroundColor() != null && colorAttrs.getForegroundColor().trim().length() > 0) { |
199 |
stringBuffer.append(TEXT_26); |
289 |
stringBuffer.append(TEXT_49); |
200 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
290 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
201 |
stringBuffer.append(TEXT_27); |
291 |
stringBuffer.append(TEXT_50); |
202 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
292 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
203 |
stringBuffer.append(TEXT_28); |
293 |
stringBuffer.append(TEXT_51); |
204 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities")); |
294 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities")); |
205 |
stringBuffer.append(TEXT_29); |
295 |
stringBuffer.append(TEXT_52); |
206 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ColorConstants")); |
296 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ColorConstants")); |
207 |
stringBuffer.append(TEXT_30); |
297 |
stringBuffer.append(TEXT_53); |
208 |
stringBuffer.append(colorAttrs.getForegroundColor()); |
298 |
stringBuffer.append(colorAttrs.getForegroundColor()); |
209 |
stringBuffer.append(TEXT_31); |
299 |
stringBuffer.append(TEXT_54); |
210 |
|
300 |
|
211 |
} |
301 |
} |
212 |
if (isNode) { |
302 |
if (isNode) { |
213 |
GenNode genNode = (GenNode) genElement; |
303 |
GenNode genNode = (GenNode) genElement; |
214 |
if (colorAttrs != null && colorAttrs.getBackgroundColor() != null && colorAttrs.getBackgroundColor().trim().length() > 0) { |
304 |
if (colorAttrs != null && colorAttrs.getBackgroundColor() != null && colorAttrs.getBackgroundColor().trim().length() > 0) { |
215 |
stringBuffer.append(TEXT_32); |
305 |
stringBuffer.append(TEXT_55); |
216 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
306 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
217 |
stringBuffer.append(TEXT_33); |
307 |
stringBuffer.append(TEXT_56); |
218 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
308 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
219 |
stringBuffer.append(TEXT_34); |
309 |
stringBuffer.append(TEXT_57); |
220 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities")); |
310 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities")); |
221 |
stringBuffer.append(TEXT_35); |
311 |
stringBuffer.append(TEXT_58); |
222 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ColorConstants")); |
312 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ColorConstants")); |
223 |
stringBuffer.append(TEXT_36); |
313 |
stringBuffer.append(TEXT_59); |
224 |
stringBuffer.append(colorAttrs.getBackgroundColor()); |
314 |
stringBuffer.append(colorAttrs.getBackgroundColor()); |
225 |
stringBuffer.append(TEXT_37); |
315 |
stringBuffer.append(TEXT_60); |
226 |
|
316 |
|
227 |
} |
317 |
} |
228 |
List labels = genNode.getLabels(); |
318 |
List labels = genNode.getLabels(); |
229 |
for (int j = 0; j < labels.size(); j++) { |
319 |
for (int j = 0; j < labels.size(); j++) { |
230 |
GenNodeLabel label = (GenNodeLabel) labels.get(j); |
320 |
GenNodeLabel label = (GenNodeLabel) labels.get(j); |
231 |
|
321 |
|
232 |
stringBuffer.append(TEXT_38); |
322 |
stringBuffer.append(TEXT_61); |
233 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
323 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
234 |
stringBuffer.append(TEXT_39); |
324 |
stringBuffer.append(TEXT_62); |
235 |
stringBuffer.append(importManager.getImportedName(label.getEditPartQualifiedClassName())); |
325 |
stringBuffer.append(importManager.getImportedName(label.getEditPartQualifiedClassName())); |
236 |
stringBuffer.append(TEXT_40); |
326 |
stringBuffer.append(TEXT_63); |
237 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
327 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
238 |
stringBuffer.append(TEXT_41); |
328 |
stringBuffer.append(TEXT_64); |
239 |
|
329 |
|
240 |
} |
330 |
} |
241 |
List genChildContainers = genNode.getCompartments(); |
331 |
List genChildContainers = genNode.getCompartments(); |
242 |
for (int j = 0; j < genChildContainers.size(); j++) { |
332 |
for (int j = 0; j < genChildContainers.size(); j++) { |
243 |
GenCompartment genChildContainer = (GenCompartment) genChildContainers.get(j); |
333 |
GenCompartment genChildContainer = (GenCompartment) genChildContainers.get(j); |
244 |
|
334 |
|
245 |
stringBuffer.append(TEXT_42); |
335 |
stringBuffer.append(TEXT_65); |
246 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
336 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
247 |
stringBuffer.append(TEXT_43); |
337 |
stringBuffer.append(TEXT_66); |
248 |
stringBuffer.append(importManager.getImportedName(genChildContainer.getEditPartQualifiedClassName())); |
338 |
stringBuffer.append(importManager.getImportedName(genChildContainer.getEditPartQualifiedClassName())); |
249 |
stringBuffer.append(TEXT_44); |
339 |
stringBuffer.append(TEXT_67); |
250 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
340 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
251 |
stringBuffer.append(TEXT_45); |
341 |
stringBuffer.append(TEXT_68); |
252 |
|
342 |
|
253 |
} |
343 |
} |
254 |
} else if (isLink) { |
344 |
} else if (isLink) { |
Lines 257-311
Link Here
|
257 |
for (int j = 0; j < labels.size(); j++) { |
347 |
for (int j = 0; j < labels.size(); j++) { |
258 |
GenLinkLabel label = (GenLinkLabel) labels.get(j); |
348 |
GenLinkLabel label = (GenLinkLabel) labels.get(j); |
259 |
|
349 |
|
260 |
stringBuffer.append(TEXT_46); |
350 |
stringBuffer.append(TEXT_69); |
261 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
351 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
262 |
stringBuffer.append(TEXT_47); |
352 |
stringBuffer.append(TEXT_70); |
263 |
stringBuffer.append(importManager.getImportedName(label.getEditPartQualifiedClassName())); |
353 |
stringBuffer.append(importManager.getImportedName(label.getEditPartQualifiedClassName())); |
264 |
stringBuffer.append(TEXT_48); |
354 |
stringBuffer.append(TEXT_71); |
265 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
355 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
266 |
stringBuffer.append(TEXT_49); |
356 |
stringBuffer.append(TEXT_72); |
267 |
|
357 |
|
268 |
} |
358 |
} |
269 |
} |
359 |
} |
270 |
|
360 |
|
271 |
stringBuffer.append(TEXT_50); |
361 |
stringBuffer.append(TEXT_73); |
272 |
if (isCompartmentWithOwnBounds) { |
362 |
if (isCompartmentWithOwnBounds) { |
273 |
stringBuffer.append(TEXT_51); |
363 |
stringBuffer.append(TEXT_74); |
274 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
|
|
275 |
stringBuffer.append(TEXT_52); |
276 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
277 |
stringBuffer.append(TEXT_53); |
278 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
279 |
stringBuffer.append(TEXT_54); |
280 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LayoutConstraint")); |
364 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LayoutConstraint")); |
281 |
stringBuffer.append(TEXT_55); |
365 |
stringBuffer.append(TEXT_75); |
282 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
366 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
283 |
stringBuffer.append(TEXT_56); |
367 |
stringBuffer.append(TEXT_76); |
284 |
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.preference.IPreferenceStore")); |
368 |
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.preference.IPreferenceStore")); |
285 |
stringBuffer.append(TEXT_57); |
369 |
stringBuffer.append(TEXT_77); |
286 |
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.preference.IPreferenceStore")); |
370 |
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.preference.IPreferenceStore")); |
287 |
stringBuffer.append(TEXT_58); |
371 |
stringBuffer.append(TEXT_78); |
288 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.RGB")); |
372 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.RGB")); |
289 |
stringBuffer.append(TEXT_59); |
373 |
stringBuffer.append(TEXT_79); |
290 |
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.preference.PreferenceConverter")); |
374 |
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.preference.PreferenceConverter")); |
291 |
stringBuffer.append(TEXT_60); |
375 |
stringBuffer.append(TEXT_80); |
292 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants")); |
376 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants")); |
293 |
stringBuffer.append(TEXT_61); |
377 |
stringBuffer.append(TEXT_81); |
294 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
378 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.diagram.core.util.ViewUtil")); |
295 |
stringBuffer.append(TEXT_62); |
379 |
stringBuffer.append(TEXT_82); |
296 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
380 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
297 |
stringBuffer.append(TEXT_63); |
381 |
stringBuffer.append(TEXT_83); |
298 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities")); |
382 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities")); |
299 |
stringBuffer.append(TEXT_64); |
383 |
stringBuffer.append(TEXT_84); |
300 |
} |
384 |
} |
301 |
if (isDiagram && genDiagram.getUnits() != null && genDiagram.getUnits().trim().length() > 0) { |
385 |
if (isDiagram && genDiagram.getUnits() != null && genDiagram.getUnits().trim().length() > 0) { |
302 |
stringBuffer.append(TEXT_65); |
386 |
stringBuffer.append(TEXT_85); |
303 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.MeasurementUnit")); |
387 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.MeasurementUnit")); |
304 |
stringBuffer.append(TEXT_66); |
388 |
stringBuffer.append(TEXT_86); |
305 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.MeasurementUnit")); |
389 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.MeasurementUnit")); |
306 |
stringBuffer.append(TEXT_67); |
390 |
stringBuffer.append(TEXT_87); |
307 |
stringBuffer.append(genDiagram.getUnits().toUpperCase()); |
391 |
stringBuffer.append(genDiagram.getUnits().toUpperCase()); |
308 |
stringBuffer.append(TEXT_68); |
392 |
stringBuffer.append(TEXT_88); |
309 |
} |
393 |
} |
310 |
|
394 |
|
311 |
if (isCompartment) { |
395 |
if (isCompartment) { |
Lines 314-360
Link Here
|
314 |
String notationPackageFQN = importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"); |
398 |
String notationPackageFQN = importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"); |
315 |
GenCompartment genCompartment = (GenCompartment)genElement; |
399 |
GenCompartment genCompartment = (GenCompartment)genElement; |
316 |
|
400 |
|
317 |
stringBuffer.append(TEXT_69); |
401 |
stringBuffer.append(TEXT_89); |
318 |
stringBuffer.append(titleStyleFQN); |
402 |
stringBuffer.append(titleStyleFQN); |
319 |
stringBuffer.append(TEXT_70); |
403 |
stringBuffer.append(TEXT_90); |
320 |
stringBuffer.append(titleStyleFQN); |
404 |
stringBuffer.append(titleStyleFQN); |
321 |
stringBuffer.append(TEXT_71); |
405 |
stringBuffer.append(TEXT_91); |
322 |
stringBuffer.append(notationPackageFQN); |
406 |
stringBuffer.append(notationPackageFQN); |
323 |
stringBuffer.append(TEXT_72); |
407 |
stringBuffer.append(TEXT_92); |
324 |
|
|
|
325 |
if(genCompartment.isNeedsTitle()){ |
326 |
|
327 |
stringBuffer.append(TEXT_73); |
328 |
stringBuffer.append(titleStyleFQN); |
329 |
stringBuffer.append(TEXT_74); |
330 |
stringBuffer.append(notationPackageFQN); |
331 |
stringBuffer.append(TEXT_75); |
332 |
} else { |
333 |
stringBuffer.append(TEXT_76); |
334 |
} |
335 |
stringBuffer.append(TEXT_77); |
336 |
stringBuffer.append(drawerStyleFQN); |
408 |
stringBuffer.append(drawerStyleFQN); |
337 |
stringBuffer.append(TEXT_78); |
409 |
stringBuffer.append(TEXT_93); |
338 |
stringBuffer.append(drawerStyleFQN); |
410 |
stringBuffer.append(drawerStyleFQN); |
339 |
stringBuffer.append(TEXT_79); |
411 |
stringBuffer.append(TEXT_94); |
340 |
stringBuffer.append(notationPackageFQN); |
412 |
stringBuffer.append(notationPackageFQN); |
341 |
stringBuffer.append(TEXT_80); |
413 |
stringBuffer.append(TEXT_95); |
342 |
|
|
|
343 |
if(genCompartment.isCanCollapse()){ |
344 |
|
345 |
stringBuffer.append(TEXT_81); |
346 |
stringBuffer.append(drawerStyleFQN); |
347 |
stringBuffer.append(TEXT_82); |
348 |
stringBuffer.append(notationPackageFQN); |
349 |
stringBuffer.append(TEXT_83); |
350 |
} else { |
351 |
stringBuffer.append(TEXT_84); |
352 |
} |
353 |
stringBuffer.append(TEXT_85); |
354 |
} |
414 |
} |
355 |
stringBuffer.append(TEXT_86); |
415 |
stringBuffer.append(TEXT_96); |
356 |
importManager.emitSortedImports(); |
416 |
importManager.emitSortedImports(); |
357 |
stringBuffer.append(TEXT_87); |
417 |
stringBuffer.append(TEXT_97); |
358 |
return stringBuffer.toString(); |
418 |
return stringBuffer.toString(); |
359 |
} |
419 |
} |
360 |
} |
420 |
} |