Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbblajer2006-11-01 14:38:00 +0000
committerbblajer2006-11-01 14:38:00 +0000
commitb4de0da4d9b9008a7fcdb4052aedcf8a5172fe27 (patch)
treeede5d0ebf2f912a0a6f27d59e5f3217efc4ab9ff
parentdaec350c1c500e43940ff08b28e4884a5833333b (diff)
downloadorg.eclipse.gmf-tooling-b4de0da4d9b9008a7fcdb4052aedcf8a5172fe27.tar.gz
org.eclipse.gmf-tooling-b4de0da4d9b9008a7fcdb4052aedcf8a5172fe27.tar.xz
org.eclipse.gmf-tooling-b4de0da4d9b9008a7fcdb4052aedcf8a5172fe27.zip
Containers with XY layout should define adapter for SnapToHelper (used to be defined only for the DiagramEditPart)
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/CompartmentEditPartGenerator.java778
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java4508
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/parts/CompartmentEditPart.javajet16
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/parts/NodeEditPart.javajet9
4 files changed, 2684 insertions, 2627 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/CompartmentEditPartGenerator.java b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/CompartmentEditPartGenerator.java
index 57b48c131..edf6987db 100644
--- a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/CompartmentEditPartGenerator.java
+++ b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/CompartmentEditPartGenerator.java
@@ -278,203 +278,207 @@ public class CompartmentEditPartGenerator
protected final String TEXT_259 = "();" + NL + "\t\tcontentPane = new ";
protected final String TEXT_260 = "();" + NL + "\t\tcontentPane.setLayoutManager(new ";
protected final String TEXT_261 = "());";
- protected final String TEXT_262 = NL + "\t\tviewport.setContents(contentPane);" + NL + "\t\tscrollPane.setViewport(viewport);" + NL + "\t\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IFigure getContentPane() {" + NL + "\t\treturn contentPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate IFigure contentPane;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_263 = " resolveSemanticElement() {" + NL + "\t\tView view = getDiagramNode();" + NL + "\t\treturn (view.getElement() instanceof ";
- protected final String TEXT_264 = ") ? (";
- protected final String TEXT_265 = ") view.getElement() : null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tinstallNotationModelRefresher();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {" + NL + "\t\tuninstallNotationModelRefresher();" + NL + "\t\tsuper.deactivate();" + NL + "\t}" + NL;
- protected final String TEXT_266 = NL;
- protected final String TEXT_267 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t";
- protected final String TEXT_268 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_269 = " domainModelEditDomain = ";
- protected final String TEXT_270 = ".getEditingDomain(";
- protected final String TEXT_271 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_272 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_273 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends ";
- protected final String TEXT_274 = " {";
- protected final String TEXT_275 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in ";
- protected final String TEXT_276 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_277 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn ";
- protected final String TEXT_278 = ".NOT_TOUCH;" + NL + "\t\t}";
- protected final String TEXT_279 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_280 = " createFilter() {";
- protected final String TEXT_281 = NL + "\t\t\t";
- protected final String TEXT_282 = " filter = ";
- protected final String TEXT_283 = ".createFeatureFilter(";
- protected final String TEXT_284 = ".eINSTANCE.get";
- protected final String TEXT_285 = "());";
- protected final String TEXT_286 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_262 = NL + "\t\tviewport.setContents(contentPane);" + NL + "\t\tscrollPane.setViewport(viewport);" + NL + "\t\treturn result;" + NL + "\t}" + NL;
+ protected final String TEXT_263 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {" + NL + "\t\tif (";
+ protected final String TEXT_264 = ".class == key) {" + NL + "\t\t\treturn new ";
+ protected final String TEXT_265 = "(this);" + NL + "\t\t}" + NL + "\t\treturn super.getAdapter(key);" + NL + "\t}";
+ protected final String TEXT_266 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IFigure getContentPane() {" + NL + "\t\treturn contentPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate IFigure contentPane;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_267 = " resolveSemanticElement() {" + NL + "\t\tView view = getDiagramNode();" + NL + "\t\treturn (view.getElement() instanceof ";
+ protected final String TEXT_268 = ") ? (";
+ protected final String TEXT_269 = ") view.getElement() : null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tinstallNotationModelRefresher();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {" + NL + "\t\tuninstallNotationModelRefresher();" + NL + "\t\tsuper.deactivate();" + NL + "\t}" + NL;
+ protected final String TEXT_270 = NL;
+ protected final String TEXT_271 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t";
+ protected final String TEXT_272 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_273 = " domainModelEditDomain = ";
+ protected final String TEXT_274 = ".getEditingDomain(";
+ protected final String TEXT_275 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_276 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_277 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends ";
+ protected final String TEXT_278 = " {";
+ protected final String TEXT_279 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in ";
+ protected final String TEXT_280 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_281 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_282 = ".NOT_TOUCH;" + NL + "\t\t}";
+ protected final String TEXT_283 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_284 = " createFilter() {";
+ protected final String TEXT_285 = NL + "\t\t\t";
+ protected final String TEXT_286 = " filter = ";
protected final String TEXT_287 = ".createFeatureFilter(";
protected final String TEXT_288 = ".eINSTANCE.get";
- protected final String TEXT_289 = "()));";
- protected final String TEXT_290 = NL + "\t\t\tfilter = filter.and(";
- protected final String TEXT_291 = ".createNotifierFilter(";
- protected final String TEXT_292 = ".getElement()));";
- protected final String TEXT_293 = NL + "\t\t\t";
- protected final String TEXT_294 = " filter = ";
+ protected final String TEXT_289 = "());";
+ protected final String TEXT_290 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_291 = ".createFeatureFilter(";
+ protected final String TEXT_292 = ".eINSTANCE.get";
+ protected final String TEXT_293 = "()));";
+ protected final String TEXT_294 = NL + "\t\t\tfilter = filter.and(";
protected final String TEXT_295 = ".createNotifierFilter(";
- protected final String TEXT_296 = ".getElement());";
- protected final String TEXT_297 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);";
- protected final String TEXT_298 = NL + "\t\t\t";
- protected final String TEXT_299 = " filter = getConstrainedChildrenFilter();";
- protected final String TEXT_300 = NL + "\t\t\t";
- protected final String TEXT_301 = " filter = ";
- protected final String TEXT_302 = ".NOT_TOUCH;";
- protected final String TEXT_303 = NL + "\t\t\treturn filter;";
- protected final String TEXT_304 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_305 = " getCreateNotationalElementCommand(";
- protected final String TEXT_306 = " descriptor) {";
- protected final String TEXT_307 = NL;
- protected final String TEXT_308 = "\t\t\t";
- protected final String TEXT_309 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {";
- protected final String TEXT_310 = NL + "\t\t\tcase ";
- protected final String TEXT_311 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof ";
- protected final String TEXT_312 = ") {" + NL + "\t\t\t\t\treturn new ";
- protected final String TEXT_313 = "(";
- protected final String TEXT_314 = ", domainElement, ";
- protected final String TEXT_315 = "new ";
- protected final String TEXT_316 = "(0, 0, ";
- protected final String TEXT_317 = ", ";
- protected final String TEXT_318 = ")";
- protected final String TEXT_319 = NL + "null";
- protected final String TEXT_320 = ", ";
- protected final String TEXT_321 = ".INSTANCE);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;";
- protected final String TEXT_322 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}";
- protected final String TEXT_323 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_324 = " getSemanticChildNodes() {";
- protected final String TEXT_325 = NL;
- protected final String TEXT_326 = NL + "\treturn ";
- protected final String TEXT_327 = ".EMPTY_LIST;";
- protected final String TEXT_328 = NL + "\t";
- protected final String TEXT_329 = " result = new ";
- protected final String TEXT_330 = "();";
- protected final String TEXT_331 = NL + "\t";
- protected final String TEXT_332 = " viewObject = ";
- protected final String TEXT_333 = ";" + NL + "\t";
- protected final String TEXT_334 = " modelObject = viewObject.getElement();" + NL + "\t";
- protected final String TEXT_335 = " nextValue;" + NL + "\tint nodeVID;";
- protected final String TEXT_336 = NL + "\tfor(";
- protected final String TEXT_337 = " it = ";
- protected final String TEXT_338 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
- protected final String TEXT_339 = ") it.next();";
- protected final String TEXT_340 = NL + "\tnextValue = (";
- protected final String TEXT_341 = ")";
- protected final String TEXT_342 = ";";
- protected final String TEXT_343 = NL + "\tnodeVID = ";
- protected final String TEXT_344 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);";
- protected final String TEXT_345 = NL + "\tswitch (nodeVID) {";
- protected final String TEXT_346 = NL + "\tcase ";
- protected final String TEXT_347 = ".VISUAL_ID: {";
- protected final String TEXT_348 = NL + "\tif (";
- protected final String TEXT_349 = ".VISUAL_ID == nodeVID) {";
- protected final String TEXT_350 = NL + "\t\tresult.add(new ";
- protected final String TEXT_351 = "(nextValue, nodeVID));";
- protected final String TEXT_352 = NL + "\t\tbreak;" + NL + "\t\t}";
- protected final String TEXT_353 = NL + "\t\t}";
- protected final String TEXT_354 = NL + "\t}";
- protected final String TEXT_355 = NL + "\t}";
- protected final String TEXT_356 = NL + "\treturn result;";
- protected final String TEXT_357 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns ";
- protected final String TEXT_358 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView(";
- protected final String TEXT_359 = " descriptor) {" + NL + "\t\t\treturn ";
- protected final String TEXT_360 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_361 = " getHost() {" + NL + "\t\t\treturn ";
- protected final String TEXT_362 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t";
- protected final String TEXT_363 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_364 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_365 = " domainModelEditDomain = ";
- protected final String TEXT_366 = ".getEditingDomain(";
- protected final String TEXT_367 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new ";
- protected final String TEXT_368 = "(domainModelEditDomain, command));" + NL + "\t}" + NL;
- protected final String TEXT_369 = NL;
- protected final String TEXT_370 = NL;
- protected final String TEXT_371 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_372 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher(";
- protected final String TEXT_373 = " feature, ";
- protected final String TEXT_374 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new HashMap();";
- protected final String TEXT_375 = NL;
- protected final String TEXT_376 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_377 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_378 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);";
+ protected final String TEXT_296 = ".getElement()));";
+ protected final String TEXT_297 = NL + "\t\t\t";
+ protected final String TEXT_298 = " filter = ";
+ protected final String TEXT_299 = ".createNotifierFilter(";
+ protected final String TEXT_300 = ".getElement());";
+ protected final String TEXT_301 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);";
+ protected final String TEXT_302 = NL + "\t\t\t";
+ protected final String TEXT_303 = " filter = getConstrainedChildrenFilter();";
+ protected final String TEXT_304 = NL + "\t\t\t";
+ protected final String TEXT_305 = " filter = ";
+ protected final String TEXT_306 = ".NOT_TOUCH;";
+ protected final String TEXT_307 = NL + "\t\t\treturn filter;";
+ protected final String TEXT_308 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_309 = " getCreateNotationalElementCommand(";
+ protected final String TEXT_310 = " descriptor) {";
+ protected final String TEXT_311 = NL;
+ protected final String TEXT_312 = "\t\t\t";
+ protected final String TEXT_313 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {";
+ protected final String TEXT_314 = NL + "\t\t\tcase ";
+ protected final String TEXT_315 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof ";
+ protected final String TEXT_316 = ") {" + NL + "\t\t\t\t\treturn new ";
+ protected final String TEXT_317 = "(";
+ protected final String TEXT_318 = ", domainElement, ";
+ protected final String TEXT_319 = "new ";
+ protected final String TEXT_320 = "(0, 0, ";
+ protected final String TEXT_321 = ", ";
+ protected final String TEXT_322 = ")";
+ protected final String TEXT_323 = NL + "null";
+ protected final String TEXT_324 = ", ";
+ protected final String TEXT_325 = ".INSTANCE);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;";
+ protected final String TEXT_326 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}";
+ protected final String TEXT_327 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_328 = " getSemanticChildNodes() {";
+ protected final String TEXT_329 = NL;
+ protected final String TEXT_330 = NL + "\treturn ";
+ protected final String TEXT_331 = ".EMPTY_LIST;";
+ protected final String TEXT_332 = NL + "\t";
+ protected final String TEXT_333 = " result = new ";
+ protected final String TEXT_334 = "();";
+ protected final String TEXT_335 = NL + "\t";
+ protected final String TEXT_336 = " viewObject = ";
+ protected final String TEXT_337 = ";" + NL + "\t";
+ protected final String TEXT_338 = " modelObject = viewObject.getElement();" + NL + "\t";
+ protected final String TEXT_339 = " nextValue;" + NL + "\tint nodeVID;";
+ protected final String TEXT_340 = NL + "\tfor(";
+ protected final String TEXT_341 = " it = ";
+ protected final String TEXT_342 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
+ protected final String TEXT_343 = ") it.next();";
+ protected final String TEXT_344 = NL + "\tnextValue = (";
+ protected final String TEXT_345 = ")";
+ protected final String TEXT_346 = ";";
+ protected final String TEXT_347 = NL + "\tnodeVID = ";
+ protected final String TEXT_348 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);";
+ protected final String TEXT_349 = NL + "\tswitch (nodeVID) {";
+ protected final String TEXT_350 = NL + "\tcase ";
+ protected final String TEXT_351 = ".VISUAL_ID: {";
+ protected final String TEXT_352 = NL + "\tif (";
+ protected final String TEXT_353 = ".VISUAL_ID == nodeVID) {";
+ protected final String TEXT_354 = NL + "\t\tresult.add(new ";
+ protected final String TEXT_355 = "(nextValue, nodeVID));";
+ protected final String TEXT_356 = NL + "\t\tbreak;" + NL + "\t\t}";
+ protected final String TEXT_357 = NL + "\t\t}";
+ protected final String TEXT_358 = NL + "\t}";
+ protected final String TEXT_359 = NL + "\t}";
+ protected final String TEXT_360 = NL + "\treturn result;";
+ protected final String TEXT_361 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns ";
+ protected final String TEXT_362 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView(";
+ protected final String TEXT_363 = " descriptor) {" + NL + "\t\t\treturn ";
+ protected final String TEXT_364 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_365 = " getHost() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_366 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t";
+ protected final String TEXT_367 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_368 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_369 = " domainModelEditDomain = ";
+ protected final String TEXT_370 = ".getEditingDomain(";
+ protected final String TEXT_371 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new ";
+ protected final String TEXT_372 = "(domainModelEditDomain, command));" + NL + "\t}" + NL;
+ protected final String TEXT_373 = NL;
+ protected final String TEXT_374 = NL;
+ protected final String TEXT_375 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_376 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher(";
+ protected final String TEXT_377 = " feature, ";
+ protected final String TEXT_378 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new HashMap();";
protected final String TEXT_379 = NL;
- protected final String TEXT_380 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_381 = ".eINSTANCE.getView_Visible(), visibilityRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "//XXX:\t\trefreshBackgroundColor();" + NL + "//XXX:\t\trefreshForegroundColor();" + NL + "//XXX:\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = ((View)getModel()).isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL;
- protected final String TEXT_382 = NL;
- protected final String TEXT_383 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_384 = "static ";
- protected final String TEXT_385 = "class Create";
- protected final String TEXT_386 = "Command extends ";
- protected final String TEXT_387 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final ";
- protected final String TEXT_388 = " notationAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create";
- protected final String TEXT_389 = "Command(";
- protected final String TEXT_390 = " parent, ";
- protected final String TEXT_391 = " request";
- protected final String TEXT_392 = ", ";
- protected final String TEXT_393 = " constraint";
- protected final String TEXT_394 = ") {" + NL + "\t\t\t";
- protected final String TEXT_395 = " domainModelEditDomain = ";
- protected final String TEXT_396 = ".getEditingDomain(parent.getDiagram().getElement());";
- protected final String TEXT_397 = NL + "\t\t\t";
- protected final String TEXT_398 = " createdDomainElement = ";
- protected final String TEXT_399 = ".eINSTANCE.create(" + NL + "\t\t\t\t";
- protected final String TEXT_400 = ".eINSTANCE.get";
- protected final String TEXT_401 = "());";
- protected final String TEXT_402 = NL + "\t\t\t";
- protected final String TEXT_403 = " createdDomainElement = ";
- protected final String TEXT_404 = ".eINSTANCE.create";
- protected final String TEXT_405 = "();";
+ protected final String TEXT_380 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_381 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_382 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);";
+ protected final String TEXT_383 = NL;
+ protected final String TEXT_384 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_385 = ".eINSTANCE.getView_Visible(), visibilityRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "//XXX:\t\trefreshBackgroundColor();" + NL + "//XXX:\t\trefreshForegroundColor();" + NL + "//XXX:\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = ((View)getModel()).isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL;
+ protected final String TEXT_386 = NL;
+ protected final String TEXT_387 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_388 = "static ";
+ protected final String TEXT_389 = "class Create";
+ protected final String TEXT_390 = "Command extends ";
+ protected final String TEXT_391 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final ";
+ protected final String TEXT_392 = " notationAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create";
+ protected final String TEXT_393 = "Command(";
+ protected final String TEXT_394 = " parent, ";
+ protected final String TEXT_395 = " request";
+ protected final String TEXT_396 = ", ";
+ protected final String TEXT_397 = " constraint";
+ protected final String TEXT_398 = ") {" + NL + "\t\t\t";
+ protected final String TEXT_399 = " domainModelEditDomain = ";
+ protected final String TEXT_400 = ".getEditingDomain(parent.getDiagram().getElement());";
+ protected final String TEXT_401 = NL + "\t\t\t";
+ protected final String TEXT_402 = " createdDomainElement = ";
+ protected final String TEXT_403 = ".eINSTANCE.create(" + NL + "\t\t\t\t";
+ protected final String TEXT_404 = ".eINSTANCE.get";
+ protected final String TEXT_405 = "());";
protected final String TEXT_406 = NL + "\t\t\t";
- protected final String TEXT_407 = NL + "\t\t\t";
- protected final String TEXT_408 = ".";
- protected final String TEXT_409 = ".initializeElement(";
- protected final String TEXT_410 = "(";
- protected final String TEXT_411 = ") ";
- protected final String TEXT_412 = "createdDomainElement);";
- protected final String TEXT_413 = NL;
- protected final String TEXT_414 = NL + "\t\tif (";
- protected final String TEXT_415 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_416 = NL + "\t\t}";
- protected final String TEXT_417 = NL + "\t\tif (";
- protected final String TEXT_418 = ".size() >= ";
- protected final String TEXT_419 = ".eINSTANCE.get";
- protected final String TEXT_420 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_421 = NL + "\t\t}";
- protected final String TEXT_422 = NL;
- protected final String TEXT_423 = NL + "\t\tif (";
- protected final String TEXT_424 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_407 = " createdDomainElement = ";
+ protected final String TEXT_408 = ".eINSTANCE.create";
+ protected final String TEXT_409 = "();";
+ protected final String TEXT_410 = NL + "\t\t\t";
+ protected final String TEXT_411 = NL + "\t\t\t";
+ protected final String TEXT_412 = ".";
+ protected final String TEXT_413 = ".initializeElement(";
+ protected final String TEXT_414 = "(";
+ protected final String TEXT_415 = ") ";
+ protected final String TEXT_416 = "createdDomainElement);";
+ protected final String TEXT_417 = NL;
+ protected final String TEXT_418 = NL + "\t\tif (";
+ protected final String TEXT_419 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_420 = NL + "\t\t}";
+ protected final String TEXT_421 = NL + "\t\tif (";
+ protected final String TEXT_422 = ".size() >= ";
+ protected final String TEXT_423 = ".eINSTANCE.get";
+ protected final String TEXT_424 = "().getUpperBound()) {" + NL + "\t\t\t";
protected final String TEXT_425 = NL + "\t\t}";
- protected final String TEXT_426 = NL + "\t\tif (";
- protected final String TEXT_427 = ".size() >= ";
- protected final String TEXT_428 = ".eINSTANCE.get";
- protected final String TEXT_429 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_430 = NL + "\t\t}";
- protected final String TEXT_431 = NL + "\t\t\t";
- protected final String TEXT_432 = " compoundCommand = new ";
- protected final String TEXT_433 = "();" + NL + "\t\t\tcompoundCommand.append(";
- protected final String TEXT_434 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t";
- protected final String TEXT_435 = ".eINSTANCE.get";
- protected final String TEXT_436 = "(), createdDomainElement));" + NL + "\t\t\tcompoundCommand.append(";
- protected final String TEXT_437 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t";
- protected final String TEXT_438 = ".eINSTANCE.get";
- protected final String TEXT_439 = "(), createdDomainElement));" + NL + "\t\t\tthis.domainModelAddCommand = compoundCommand;";
- protected final String TEXT_440 = NL + "\t\t\tthis.domainModelAddCommand = ";
+ protected final String TEXT_426 = NL;
+ protected final String TEXT_427 = NL + "\t\tif (";
+ protected final String TEXT_428 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_429 = NL + "\t\t}";
+ protected final String TEXT_430 = NL + "\t\tif (";
+ protected final String TEXT_431 = ".size() >= ";
+ protected final String TEXT_432 = ".eINSTANCE.get";
+ protected final String TEXT_433 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_434 = NL + "\t\t}";
+ protected final String TEXT_435 = NL + "\t\t\t";
+ protected final String TEXT_436 = " compoundCommand = new ";
+ protected final String TEXT_437 = "();" + NL + "\t\t\tcompoundCommand.append(";
+ protected final String TEXT_438 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t";
+ protected final String TEXT_439 = ".eINSTANCE.get";
+ protected final String TEXT_440 = "(), createdDomainElement));" + NL + "\t\t\tcompoundCommand.append(";
protected final String TEXT_441 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t";
protected final String TEXT_442 = ".eINSTANCE.get";
- protected final String TEXT_443 = "(), createdDomainElement);";
- protected final String TEXT_444 = NL + "\t\t\tconstraint = constraint.union(new ";
- protected final String TEXT_445 = "(";
- protected final String TEXT_446 = ", ";
- protected final String TEXT_447 = "));";
- protected final String TEXT_448 = NL + "\t\t\tthis.notationAddCommand = new ";
- protected final String TEXT_449 = "(parent, ";
- protected final String TEXT_450 = "(";
- protected final String TEXT_451 = ") ";
- protected final String TEXT_452 = "createdDomainElement, " + NL + "\t\t\t\t";
- protected final String TEXT_453 = "constraint";
- protected final String TEXT_454 = "null";
- protected final String TEXT_455 = ", ";
- protected final String TEXT_456 = ".INSTANCE);" + NL + "\t\t\trequest.setCreatedObject(notationAddCommand.getCreatedView());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canExecute() && notationAddCommand != null && notationAddCommand.canExecute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canUndo() && notationAddCommand != null && notationAddCommand.canUndo();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tnotationAddCommand.execute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tnotationAddCommand.undo();" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}";
- protected final String TEXT_457 = NL + "}" + NL;
- protected final String TEXT_458 = NL;
+ protected final String TEXT_443 = "(), createdDomainElement));" + NL + "\t\t\tthis.domainModelAddCommand = compoundCommand;";
+ protected final String TEXT_444 = NL + "\t\t\tthis.domainModelAddCommand = ";
+ protected final String TEXT_445 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t";
+ protected final String TEXT_446 = ".eINSTANCE.get";
+ protected final String TEXT_447 = "(), createdDomainElement);";
+ protected final String TEXT_448 = NL + "\t\t\tconstraint = constraint.union(new ";
+ protected final String TEXT_449 = "(";
+ protected final String TEXT_450 = ", ";
+ protected final String TEXT_451 = "));";
+ protected final String TEXT_452 = NL + "\t\t\tthis.notationAddCommand = new ";
+ protected final String TEXT_453 = "(parent, ";
+ protected final String TEXT_454 = "(";
+ protected final String TEXT_455 = ") ";
+ protected final String TEXT_456 = "createdDomainElement, " + NL + "\t\t\t\t";
+ protected final String TEXT_457 = "constraint";
+ protected final String TEXT_458 = "null";
+ protected final String TEXT_459 = ", ";
+ protected final String TEXT_460 = ".INSTANCE);" + NL + "\t\t\trequest.setCreatedObject(notationAddCommand.getCreatedView());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canExecute() && notationAddCommand != null && notationAddCommand.canExecute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canUndo() && notationAddCommand != null && notationAddCommand.canUndo();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tnotationAddCommand.execute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tnotationAddCommand.undo();" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}";
+ protected final String TEXT_461 = NL + "}" + NL;
+ protected final String TEXT_462 = NL;
public String generate(Object argument)
{
@@ -1255,34 +1259,46 @@ for(Iterator it = genCompartment.getChildNodes().iterator(); it.hasNext(); ) {
stringBuffer.append(TEXT_261);
}
stringBuffer.append(TEXT_262);
- stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName()));
+
+if (!genCompartment.isListLayout()) {
+
stringBuffer.append(TEXT_263);
- stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.SnapToHelper"));
stringBuffer.append(TEXT_264);
- stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.SnapToGrid"));
stringBuffer.append(TEXT_265);
+}
+
+ stringBuffer.append(TEXT_266);
+ stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName()));
+ stringBuffer.append(TEXT_267);
+ stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName()));
+ stringBuffer.append(TEXT_268);
+ stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName()));
+ stringBuffer.append(TEXT_269);
+
{
String _getViewCode = "getDiagramNode()";
String _getDiagramCode = _getViewCode + ".getDiagram()";
boolean isListLayout = genCompartment.isListLayout();
- stringBuffer.append(TEXT_266);
- stringBuffer.append(TEXT_267);
+ stringBuffer.append(TEXT_270);
+ stringBuffer.append(TEXT_271);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_268);
+ stringBuffer.append(TEXT_272);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_269);
+ stringBuffer.append(TEXT_273);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_270);
+ stringBuffer.append(TEXT_274);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_271);
+ stringBuffer.append(TEXT_275);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_272);
+ stringBuffer.append(TEXT_276);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_273);
+ stringBuffer.append(TEXT_277);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_274);
+ stringBuffer.append(TEXT_278);
boolean hasConstraintsInChildren = false;
for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
@@ -1297,19 +1313,19 @@ for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
if (hasConstraintsInChildren) {
- stringBuffer.append(TEXT_275);
+ stringBuffer.append(TEXT_279);
stringBuffer.append(genDiagram.getVisualIDRegistryQualifiedClassName());
- stringBuffer.append(TEXT_276);
+ stringBuffer.append(TEXT_280);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_277);
+ stringBuffer.append(TEXT_281);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_278);
+ stringBuffer.append(TEXT_282);
}
- stringBuffer.append(TEXT_279);
+ stringBuffer.append(TEXT_283);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_280);
+ stringBuffer.append(TEXT_284);
{
boolean hasDeclaredFilter = false;
@@ -1328,25 +1344,25 @@ if (hasConstraintsInChildren) {
if (!hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_281);
+ stringBuffer.append(TEXT_285);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_282);
+ stringBuffer.append(TEXT_286);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_283);
+ stringBuffer.append(TEXT_287);
stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_284);
+ stringBuffer.append(TEXT_288);
stringBuffer.append(childMetaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_285);
+ stringBuffer.append(TEXT_289);
} else {
- stringBuffer.append(TEXT_286);
+ stringBuffer.append(TEXT_290);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_287);
+ stringBuffer.append(TEXT_291);
stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_288);
+ stringBuffer.append(TEXT_292);
stringBuffer.append(childMetaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_289);
+ stringBuffer.append(TEXT_293);
}
} //for
@@ -1354,22 +1370,22 @@ if (hasConstraintsInChildren) {
if (hasDeclaredFilter) {
- stringBuffer.append(TEXT_290);
+ stringBuffer.append(TEXT_294);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_291);
+ stringBuffer.append(TEXT_295);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_292);
+ stringBuffer.append(TEXT_296);
} else {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_293);
+ stringBuffer.append(TEXT_297);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_294);
+ stringBuffer.append(TEXT_298);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_295);
+ stringBuffer.append(TEXT_299);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_296);
+ stringBuffer.append(TEXT_300);
}
@@ -1378,43 +1394,43 @@ if (hasConstraintsInChildren) {
if (hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_297);
+ stringBuffer.append(TEXT_301);
} else {
- stringBuffer.append(TEXT_298);
+ stringBuffer.append(TEXT_302);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_299);
+ stringBuffer.append(TEXT_303);
}
}
if (!hasDeclaredFilter) {
- stringBuffer.append(TEXT_300);
+ stringBuffer.append(TEXT_304);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_301);
+ stringBuffer.append(TEXT_305);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_302);
+ stringBuffer.append(TEXT_306);
}
- stringBuffer.append(TEXT_303);
+ stringBuffer.append(TEXT_307);
} //local declaration of hasDeclaredFilter
- stringBuffer.append(TEXT_304);
+ stringBuffer.append(TEXT_308);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand"));
- stringBuffer.append(TEXT_305);
+ stringBuffer.append(TEXT_309);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_306);
+ stringBuffer.append(TEXT_310);
{
String _parentNode = "getHost()";
- stringBuffer.append(TEXT_307);
- stringBuffer.append(TEXT_308);
+ stringBuffer.append(TEXT_311);
+ stringBuffer.append(TEXT_312);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_309);
+ stringBuffer.append(TEXT_313);
for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
GenNode nextNode = (GenNode) it.next();
@@ -1424,15 +1440,15 @@ for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
}
String childNodeInterfaceName = importManager.getImportedName(nextNode.getDomainMetaClass().getQualifiedInterfaceName());
- stringBuffer.append(TEXT_310);
+ stringBuffer.append(TEXT_314);
stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_311);
+ stringBuffer.append(TEXT_315);
stringBuffer.append(childNodeInterfaceName);
- stringBuffer.append(TEXT_312);
+ stringBuffer.append(TEXT_316);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand"));
- stringBuffer.append(TEXT_313);
+ stringBuffer.append(TEXT_317);
stringBuffer.append(_parentNode);
- stringBuffer.append(TEXT_314);
+ stringBuffer.append(TEXT_318);
if (!isListLayout) {
int defaultWidth = 40;
@@ -1443,48 +1459,48 @@ for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
defaultHeight = defSizeAttrs.getHeight();
}
- stringBuffer.append(TEXT_315);
+ stringBuffer.append(TEXT_319);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
- stringBuffer.append(TEXT_316);
+ stringBuffer.append(TEXT_320);
stringBuffer.append(defaultWidth);
- stringBuffer.append(TEXT_317);
+ stringBuffer.append(TEXT_321);
stringBuffer.append(defaultHeight);
- stringBuffer.append(TEXT_318);
+ stringBuffer.append(TEXT_322);
} else {
- stringBuffer.append(TEXT_319);
+ stringBuffer.append(TEXT_323);
}
- stringBuffer.append(TEXT_320);
+ stringBuffer.append(TEXT_324);
stringBuffer.append(importManager.getImportedName(nextNode.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_321);
+ stringBuffer.append(TEXT_325);
}
- stringBuffer.append(TEXT_322);
+ stringBuffer.append(TEXT_326);
}
- stringBuffer.append(TEXT_323);
+ stringBuffer.append(TEXT_327);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_324);
- stringBuffer.append(TEXT_325);
+ stringBuffer.append(TEXT_328);
+ stringBuffer.append(TEXT_329);
if (childNodes.size() == 0) {
- stringBuffer.append(TEXT_326);
+ stringBuffer.append(TEXT_330);
stringBuffer.append(importManager.getImportedName("java.util.Collections"));
- stringBuffer.append(TEXT_327);
+ stringBuffer.append(TEXT_331);
} else {
- stringBuffer.append(TEXT_328);
+ stringBuffer.append(TEXT_332);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_329);
+ stringBuffer.append(TEXT_333);
stringBuffer.append(importManager.getImportedName("java.util.LinkedList"));
- stringBuffer.append(TEXT_330);
+ stringBuffer.append(TEXT_334);
Map genFeature2genNodeMap = new LinkedHashMap();
for (int nodeIndex = 0; nodeIndex < childNodes.size(); nodeIndex++) {
@@ -1502,15 +1518,15 @@ if (childNodes.size() == 0) {
Set entrySet = genFeature2genNodeMap.entrySet();
if (entrySet.size() > 0) {
- stringBuffer.append(TEXT_331);
+ stringBuffer.append(TEXT_335);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_332);
+ stringBuffer.append(TEXT_336);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_333);
+ stringBuffer.append(TEXT_337);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_334);
+ stringBuffer.append(TEXT_338);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_335);
+ stringBuffer.append(TEXT_339);
}
for (Iterator entries = entrySet.iterator(); entries.hasNext();) {
@@ -1519,203 +1535,203 @@ if (childNodes.size() == 0) {
Collection genNodesCollection = (Collection) nextEntry.getValue();
if (childMetaFeature.isListType()) {
- stringBuffer.append(TEXT_336);
+ stringBuffer.append(TEXT_340);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_337);
+ stringBuffer.append(TEXT_341);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, true);
- stringBuffer.append(TEXT_338);
+ stringBuffer.append(TEXT_342);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_339);
+ stringBuffer.append(TEXT_343);
} else {
- stringBuffer.append(TEXT_340);
+ stringBuffer.append(TEXT_344);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_341);
+ stringBuffer.append(TEXT_345);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, false);
- stringBuffer.append(TEXT_342);
+ stringBuffer.append(TEXT_346);
}
- stringBuffer.append(TEXT_343);
+ stringBuffer.append(TEXT_347);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_344);
+ stringBuffer.append(TEXT_348);
boolean generateSwitch = genNodesCollection.size() != 1;
if (generateSwitch) {
- stringBuffer.append(TEXT_345);
+ stringBuffer.append(TEXT_349);
}
for (Iterator genNodesIterator = genNodesCollection.iterator(); genNodesIterator.hasNext();) {
GenNode nextNode = (GenNode) genNodesIterator.next();
if (generateSwitch) {
- stringBuffer.append(TEXT_346);
+ stringBuffer.append(TEXT_350);
stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_347);
+ stringBuffer.append(TEXT_351);
} else {
- stringBuffer.append(TEXT_348);
+ stringBuffer.append(TEXT_352);
stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_349);
+ stringBuffer.append(TEXT_353);
}
- stringBuffer.append(TEXT_350);
+ stringBuffer.append(TEXT_354);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_351);
+ stringBuffer.append(TEXT_355);
if (generateSwitch) {
- stringBuffer.append(TEXT_352);
+ stringBuffer.append(TEXT_356);
} else {
- stringBuffer.append(TEXT_353);
+ stringBuffer.append(TEXT_357);
}
}
if (generateSwitch) {
- stringBuffer.append(TEXT_354);
+ stringBuffer.append(TEXT_358);
}
if (childMetaFeature.isListType()) {
- stringBuffer.append(TEXT_355);
+ stringBuffer.append(TEXT_359);
}
}
- stringBuffer.append(TEXT_356);
+ stringBuffer.append(TEXT_360);
}
- stringBuffer.append(TEXT_357);
+ stringBuffer.append(TEXT_361);
stringBuffer.append(genDiagram.isSynchronized());
- stringBuffer.append(TEXT_358);
+ stringBuffer.append(TEXT_362);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_359);
+ stringBuffer.append(TEXT_363);
stringBuffer.append(genDiagram.isSynchronized());
- stringBuffer.append(TEXT_360);
+ stringBuffer.append(TEXT_364);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_361);
+ stringBuffer.append(TEXT_365);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_362);
+ stringBuffer.append(TEXT_366);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher"));
- stringBuffer.append(TEXT_363);
+ stringBuffer.append(TEXT_367);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_364);
+ stringBuffer.append(TEXT_368);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_365);
+ stringBuffer.append(TEXT_369);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_366);
+ stringBuffer.append(TEXT_370);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_367);
+ stringBuffer.append(TEXT_371);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_368);
+ stringBuffer.append(TEXT_372);
}
- stringBuffer.append(TEXT_369);
- stringBuffer.append(TEXT_370);
- stringBuffer.append(TEXT_371);
- stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
- stringBuffer.append(TEXT_372);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
stringBuffer.append(TEXT_373);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
stringBuffer.append(TEXT_374);
stringBuffer.append(TEXT_375);
+ stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
stringBuffer.append(TEXT_376);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
stringBuffer.append(TEXT_377);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
stringBuffer.append(TEXT_378);
stringBuffer.append(TEXT_379);
stringBuffer.append(TEXT_380);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_381);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(TEXT_382);
+ stringBuffer.append(TEXT_383);
+ stringBuffer.append(TEXT_384);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(TEXT_385);
for(Iterator it = genCompartment.getChildNodes().iterator(); it.hasNext(); ) {
GenChildNode next = (GenChildNode)it.next();
boolean isStatic = false;
boolean isListLayout = genCompartment.isListLayout();
- stringBuffer.append(TEXT_382);
+ stringBuffer.append(TEXT_386);
if (genDiagram.getPalette() != null) {
- stringBuffer.append(TEXT_383);
+ stringBuffer.append(TEXT_387);
if (isStatic) {
- stringBuffer.append(TEXT_384);
+ stringBuffer.append(TEXT_388);
}
- stringBuffer.append(TEXT_385);
+ stringBuffer.append(TEXT_389);
stringBuffer.append(next.getDomainMetaClass().getName());
stringBuffer.append(next.getVisualID());
- stringBuffer.append(TEXT_386);
+ stringBuffer.append(TEXT_390);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand"));
- stringBuffer.append(TEXT_387);
+ stringBuffer.append(TEXT_391);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand"));
- stringBuffer.append(TEXT_388);
+ stringBuffer.append(TEXT_392);
stringBuffer.append(next.getDomainMetaClass().getName());
stringBuffer.append(next.getVisualID());
- stringBuffer.append(TEXT_389);
+ stringBuffer.append(TEXT_393);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_390);
+ stringBuffer.append(TEXT_394);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx"));
- stringBuffer.append(TEXT_391);
+ stringBuffer.append(TEXT_395);
if (!isListLayout) {
- stringBuffer.append(TEXT_392);
+ stringBuffer.append(TEXT_396);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
- stringBuffer.append(TEXT_393);
+ stringBuffer.append(TEXT_397);
}
- stringBuffer.append(TEXT_394);
+ stringBuffer.append(TEXT_398);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_395);
+ stringBuffer.append(TEXT_399);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_396);
+ stringBuffer.append(TEXT_400);
if (next.getDomainMetaClass().isMapEntry()) {
/*Workaround for Ecore example: map entries cannot be created using factory, only using reflective EFactory.create() method*/
- stringBuffer.append(TEXT_397);
+ stringBuffer.append(TEXT_401);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_398);
+ stringBuffer.append(TEXT_402);
stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedFactoryInterfaceName()));
- stringBuffer.append(TEXT_399);
+ stringBuffer.append(TEXT_403);
stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_400);
+ stringBuffer.append(TEXT_404);
stringBuffer.append(next.getDomainMetaClass().getClassifierAccessorName());
- stringBuffer.append(TEXT_401);
+ stringBuffer.append(TEXT_405);
} else {
- stringBuffer.append(TEXT_402);
+ stringBuffer.append(TEXT_406);
stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_403);
+ stringBuffer.append(TEXT_407);
stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedFactoryInterfaceName()));
- stringBuffer.append(TEXT_404);
+ stringBuffer.append(TEXT_408);
stringBuffer.append(next.getDomainMetaClass().getClassifierAccessorName());
- stringBuffer.append(TEXT_405);
+ stringBuffer.append(TEXT_409);
}
- stringBuffer.append(TEXT_406);
+ stringBuffer.append(TEXT_410);
/*XXX: Class name DomainElementInitializer should be user-customizable*/
- stringBuffer.append(TEXT_407);
+ stringBuffer.append(TEXT_411);
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer"));
- stringBuffer.append(TEXT_408);
+ stringBuffer.append(TEXT_412);
stringBuffer.append(next.getUniqueIdentifier());
- stringBuffer.append(TEXT_409);
+ stringBuffer.append(TEXT_413);
if (next.getDomainMetaClass().isExternalInterface()) {
- stringBuffer.append(TEXT_410);
+ stringBuffer.append(TEXT_414);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_411);
+ stringBuffer.append(TEXT_415);
}
- stringBuffer.append(TEXT_412);
+ stringBuffer.append(TEXT_416);
TypeModelFacet facet = next.getModelFacet();
GenFeature childFeature = facet.getChildMetaFeature();
@@ -1726,29 +1742,29 @@ if (genDiagram.getPalette() != null) {
String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_413);
+ stringBuffer.append(TEXT_417);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_414);
+ stringBuffer.append(TEXT_418);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_415);
+ stringBuffer.append(TEXT_419);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_416);
+ stringBuffer.append(TEXT_420);
} else {
- stringBuffer.append(TEXT_417);
+ stringBuffer.append(TEXT_421);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_418);
+ stringBuffer.append(TEXT_422);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_419);
+ stringBuffer.append(TEXT_423);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_420);
+ stringBuffer.append(TEXT_424);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_421);
+ stringBuffer.append(TEXT_425);
}
}
@@ -1761,60 +1777,60 @@ if (upperBound > 0) {
String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_422);
+ stringBuffer.append(TEXT_426);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_423);
+ stringBuffer.append(TEXT_427);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_424);
+ stringBuffer.append(TEXT_428);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_425);
+ stringBuffer.append(TEXT_429);
} else {
- stringBuffer.append(TEXT_426);
+ stringBuffer.append(TEXT_430);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_427);
+ stringBuffer.append(TEXT_431);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_428);
+ stringBuffer.append(TEXT_432);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_429);
+ stringBuffer.append(TEXT_433);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_430);
+ stringBuffer.append(TEXT_434);
}
}
- stringBuffer.append(TEXT_431);
+ stringBuffer.append(TEXT_435);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_432);
+ stringBuffer.append(TEXT_436);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_433);
+ stringBuffer.append(TEXT_437);
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_434);
+ stringBuffer.append(TEXT_438);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_435);
+ stringBuffer.append(TEXT_439);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_436);
+ stringBuffer.append(TEXT_440);
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_437);
+ stringBuffer.append(TEXT_441);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_438);
+ stringBuffer.append(TEXT_442);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_439);
+ stringBuffer.append(TEXT_443);
} else {
- stringBuffer.append(TEXT_440);
+ stringBuffer.append(TEXT_444);
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_441);
+ stringBuffer.append(TEXT_445);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_442);
+ stringBuffer.append(TEXT_446);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_443);
+ stringBuffer.append(TEXT_447);
}
@@ -1828,42 +1844,42 @@ if (upperBound > 0) {
defaultHeight = defSizeAttrs.getHeight();
}
- stringBuffer.append(TEXT_444);
+ stringBuffer.append(TEXT_448);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension"));
- stringBuffer.append(TEXT_445);
+ stringBuffer.append(TEXT_449);
stringBuffer.append(defaultWidth);
- stringBuffer.append(TEXT_446);
+ stringBuffer.append(TEXT_450);
stringBuffer.append(defaultHeight);
- stringBuffer.append(TEXT_447);
+ stringBuffer.append(TEXT_451);
}
- stringBuffer.append(TEXT_448);
+ stringBuffer.append(TEXT_452);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand"));
- stringBuffer.append(TEXT_449);
+ stringBuffer.append(TEXT_453);
if (next.getDomainMetaClass().isExternalInterface()) {
- stringBuffer.append(TEXT_450);
+ stringBuffer.append(TEXT_454);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_451);
+ stringBuffer.append(TEXT_455);
}
- stringBuffer.append(TEXT_452);
+ stringBuffer.append(TEXT_456);
if(!isListLayout) {
- stringBuffer.append(TEXT_453);
+ stringBuffer.append(TEXT_457);
} else {
- stringBuffer.append(TEXT_454);
+ stringBuffer.append(TEXT_458);
}
- stringBuffer.append(TEXT_455);
+ stringBuffer.append(TEXT_459);
stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_456);
+ stringBuffer.append(TEXT_460);
}
}
- stringBuffer.append(TEXT_457);
+ stringBuffer.append(TEXT_461);
importManager.emitSortedImports();
- stringBuffer.append(TEXT_458);
+ stringBuffer.append(TEXT_462);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java
index a6739d267..cf839836a 100644
--- a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java
+++ b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java
@@ -583,1174 +583,1178 @@ public class NodeEditPartGenerator
protected final String TEXT_562 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
protected final String TEXT_563 = " getTargetConnectionAnchor(";
protected final String TEXT_564 = " request) {" + NL + "\t\treturn new ";
- protected final String TEXT_565 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {" + NL + "\t\tif (";
- protected final String TEXT_566 = ".class == key) {" + NL + "\t\t\treturn getTreeEditPartAdapter();" + NL + "\t\t}";
- protected final String TEXT_567 = NL + "\t\treturn super.getAdapter(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter myTreeEditPartAdapter;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter getTreeEditPartAdapter() {" + NL + "\t\tif (myTreeEditPartAdapter == null) {" + NL + "\t\t\tmyTreeEditPartAdapter = new TreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn myTreeEditPartAdapter;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);";
- protected final String TEXT_568 = NL + "\t\tinstallNotationModelRefresher();";
- protected final String TEXT_569 = NL + "\t\tinstallLinkNotationModelRefresher();";
- protected final String TEXT_570 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {";
- protected final String TEXT_571 = NL + "\t\tuninstallLinkNotationModelRefresher();";
- protected final String TEXT_572 = NL + "\t\tuninstallNotationModelRefresher();";
- protected final String TEXT_573 = NL + "\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}";
- protected final String TEXT_574 = NL;
- protected final String TEXT_575 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t";
- protected final String TEXT_576 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_577 = " domainModelEditDomain = ";
- protected final String TEXT_578 = ".getEditingDomain(";
- protected final String TEXT_579 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_580 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_581 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends ";
- protected final String TEXT_582 = " {";
- protected final String TEXT_583 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in ";
- protected final String TEXT_584 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_585 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn ";
- protected final String TEXT_586 = ".NOT_TOUCH;" + NL + "\t\t}";
- protected final String TEXT_587 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_588 = " createFilter() {";
- protected final String TEXT_589 = NL + "\t\t\t";
- protected final String TEXT_590 = " filter = ";
- protected final String TEXT_591 = ".createFeatureFilter(";
- protected final String TEXT_592 = ".eINSTANCE.get";
- protected final String TEXT_593 = "());";
- protected final String TEXT_594 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_565 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {";
+ protected final String TEXT_566 = NL + "\t\tif (";
+ protected final String TEXT_567 = ".class == key) {" + NL + "\t\t\treturn new ";
+ protected final String TEXT_568 = "(this);" + NL + "\t\t}";
+ protected final String TEXT_569 = NL + "\t\tif (";
+ protected final String TEXT_570 = ".class == key) {" + NL + "\t\t\treturn getTreeEditPartAdapter();" + NL + "\t\t}";
+ protected final String TEXT_571 = NL + "\t\treturn super.getAdapter(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter myTreeEditPartAdapter;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter getTreeEditPartAdapter() {" + NL + "\t\tif (myTreeEditPartAdapter == null) {" + NL + "\t\t\tmyTreeEditPartAdapter = new TreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn myTreeEditPartAdapter;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);";
+ protected final String TEXT_572 = NL + "\t\tinstallNotationModelRefresher();";
+ protected final String TEXT_573 = NL + "\t\tinstallLinkNotationModelRefresher();";
+ protected final String TEXT_574 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {";
+ protected final String TEXT_575 = NL + "\t\tuninstallLinkNotationModelRefresher();";
+ protected final String TEXT_576 = NL + "\t\tuninstallNotationModelRefresher();";
+ protected final String TEXT_577 = NL + "\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}";
+ protected final String TEXT_578 = NL;
+ protected final String TEXT_579 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t";
+ protected final String TEXT_580 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_581 = " domainModelEditDomain = ";
+ protected final String TEXT_582 = ".getEditingDomain(";
+ protected final String TEXT_583 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_584 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_585 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends ";
+ protected final String TEXT_586 = " {";
+ protected final String TEXT_587 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in ";
+ protected final String TEXT_588 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_589 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_590 = ".NOT_TOUCH;" + NL + "\t\t}";
+ protected final String TEXT_591 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_592 = " createFilter() {";
+ protected final String TEXT_593 = NL + "\t\t\t";
+ protected final String TEXT_594 = " filter = ";
protected final String TEXT_595 = ".createFeatureFilter(";
protected final String TEXT_596 = ".eINSTANCE.get";
- protected final String TEXT_597 = "()));";
- protected final String TEXT_598 = NL + "\t\t\tfilter = filter.and(";
- protected final String TEXT_599 = ".createNotifierFilter(";
- protected final String TEXT_600 = ".getElement()));";
- protected final String TEXT_601 = NL + "\t\t\t";
- protected final String TEXT_602 = " filter = ";
+ protected final String TEXT_597 = "());";
+ protected final String TEXT_598 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_599 = ".createFeatureFilter(";
+ protected final String TEXT_600 = ".eINSTANCE.get";
+ protected final String TEXT_601 = "()));";
+ protected final String TEXT_602 = NL + "\t\t\tfilter = filter.and(";
protected final String TEXT_603 = ".createNotifierFilter(";
- protected final String TEXT_604 = ".getElement());";
- protected final String TEXT_605 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);";
- protected final String TEXT_606 = NL + "\t\t\t";
- protected final String TEXT_607 = " filter = getConstrainedChildrenFilter();";
- protected final String TEXT_608 = NL + "\t\t\t";
- protected final String TEXT_609 = " filter = ";
- protected final String TEXT_610 = ".NOT_TOUCH;";
- protected final String TEXT_611 = NL + "\t\t\treturn filter;";
- protected final String TEXT_612 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_613 = " getCreateNotationalElementCommand(";
- protected final String TEXT_614 = " descriptor) {";
- protected final String TEXT_615 = NL;
- protected final String TEXT_616 = "\t\t\t";
- protected final String TEXT_617 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {";
- protected final String TEXT_618 = NL + "\t\t\tcase ";
- protected final String TEXT_619 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof ";
- protected final String TEXT_620 = ") {" + NL + "\t\t\t\t\treturn new ";
- protected final String TEXT_621 = "(";
- protected final String TEXT_622 = ", domainElement, ";
- protected final String TEXT_623 = "new ";
- protected final String TEXT_624 = "(0, 0, ";
- protected final String TEXT_625 = ", ";
- protected final String TEXT_626 = ")";
- protected final String TEXT_627 = NL + "null";
- protected final String TEXT_628 = ", ";
- protected final String TEXT_629 = ".INSTANCE);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;";
- protected final String TEXT_630 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}";
- protected final String TEXT_631 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_632 = " getSemanticChildNodes() {";
- protected final String TEXT_633 = NL;
- protected final String TEXT_634 = NL + "\treturn ";
- protected final String TEXT_635 = ".EMPTY_LIST;";
- protected final String TEXT_636 = NL + "\t";
- protected final String TEXT_637 = " result = new ";
- protected final String TEXT_638 = "();";
- protected final String TEXT_639 = NL + "\t";
- protected final String TEXT_640 = " viewObject = ";
- protected final String TEXT_641 = ";" + NL + "\t";
- protected final String TEXT_642 = " modelObject = viewObject.getElement();" + NL + "\t";
- protected final String TEXT_643 = " nextValue;" + NL + "\tint nodeVID;";
- protected final String TEXT_644 = NL + "\tfor(";
- protected final String TEXT_645 = " it = ";
- protected final String TEXT_646 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
- protected final String TEXT_647 = ") it.next();";
- protected final String TEXT_648 = NL + "\tnextValue = (";
- protected final String TEXT_649 = ")";
- protected final String TEXT_650 = ";";
- protected final String TEXT_651 = NL + "\tnodeVID = ";
- protected final String TEXT_652 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);";
- protected final String TEXT_653 = NL + "\tswitch (nodeVID) {";
- protected final String TEXT_654 = NL + "\tcase ";
- protected final String TEXT_655 = ".VISUAL_ID: {";
- protected final String TEXT_656 = NL + "\tif (";
- protected final String TEXT_657 = ".VISUAL_ID == nodeVID) {";
- protected final String TEXT_658 = NL + "\t\tresult.add(new ";
- protected final String TEXT_659 = "(nextValue, nodeVID));";
- protected final String TEXT_660 = NL + "\t\tbreak;" + NL + "\t\t}";
- protected final String TEXT_661 = NL + "\t\t}";
- protected final String TEXT_662 = NL + "\t}";
- protected final String TEXT_663 = NL + "\t}";
- protected final String TEXT_664 = NL + "\treturn result;";
- protected final String TEXT_665 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns ";
- protected final String TEXT_666 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView(";
- protected final String TEXT_667 = " descriptor) {" + NL + "\t\t\treturn ";
- protected final String TEXT_668 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_669 = " getHost() {" + NL + "\t\t\treturn ";
- protected final String TEXT_670 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t";
- protected final String TEXT_671 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_672 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_673 = " domainModelEditDomain = ";
- protected final String TEXT_674 = ".getEditingDomain(";
- protected final String TEXT_675 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new ";
- protected final String TEXT_676 = "(domainModelEditDomain, command));" + NL + "\t}" + NL;
- protected final String TEXT_677 = NL;
- protected final String TEXT_678 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installLinkNotationModelRefresher() {" + NL + "\t\tLinkNotationModelRefresher refresher = getLinkNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_679 = " domainModelEditDomain = ";
- protected final String TEXT_680 = ".getEditingDomain(";
- protected final String TEXT_681 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshLinkNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallLinkNotationModelRefresher() {" + NL + "\t\tgetLinkNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher linkNotationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * Service to find a notational element that corresponds to the given underlying domain element. " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_682 = " viewService;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_683 = " getViewService() {" + NL + "\t\tif (viewService == null) {" + NL + "\t\t\tviewService = new ";
- protected final String TEXT_684 = "(getViewer());" + NL + "\t\t}" + NL + "\t\treturn viewService;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher getLinkNotationModelRefresher() {" + NL + "\t\tif (linkNotationModelRefresher == null) {" + NL + "\t\t\tlinkNotationModelRefresher = new LinkNotationModelRefresher(getViewService());" + NL + "\t\t}" + NL + "\t\treturn linkNotationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class LinkNotationModelRefresher extends ";
- protected final String TEXT_685 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic LinkNotationModelRefresher(";
- protected final String TEXT_686 = " viewService) {" + NL + "\t\t\tsuper(viewService);" + NL + "\t\t}";
- protected final String TEXT_687 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Child links of this element are selected based on constraint declared in ";
- protected final String TEXT_688 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_689 = " getConstrainedChildLinksFilter() {" + NL + "\t\t\treturn ";
- protected final String TEXT_690 = ".NOT_TOUCH;" + NL + "\t\t}";
- protected final String TEXT_691 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly result in uncontained links. " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_692 = " createUncontainedLinksFilter() {" + NL + "\t\t\treturn ";
- protected final String TEXT_693 = ".createEventTypeFilter(";
- protected final String TEXT_694 = ".SET).or(" + NL + "\t\t\t\t";
- protected final String TEXT_695 = ".createEventTypeFilter(";
- protected final String TEXT_696 = ".UNSET).or(" + NL + "\t\t\t\t";
+ protected final String TEXT_604 = ".getElement()));";
+ protected final String TEXT_605 = NL + "\t\t\t";
+ protected final String TEXT_606 = " filter = ";
+ protected final String TEXT_607 = ".createNotifierFilter(";
+ protected final String TEXT_608 = ".getElement());";
+ protected final String TEXT_609 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);";
+ protected final String TEXT_610 = NL + "\t\t\t";
+ protected final String TEXT_611 = " filter = getConstrainedChildrenFilter();";
+ protected final String TEXT_612 = NL + "\t\t\t";
+ protected final String TEXT_613 = " filter = ";
+ protected final String TEXT_614 = ".NOT_TOUCH;";
+ protected final String TEXT_615 = NL + "\t\t\treturn filter;";
+ protected final String TEXT_616 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_617 = " getCreateNotationalElementCommand(";
+ protected final String TEXT_618 = " descriptor) {";
+ protected final String TEXT_619 = NL;
+ protected final String TEXT_620 = "\t\t\t";
+ protected final String TEXT_621 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {";
+ protected final String TEXT_622 = NL + "\t\t\tcase ";
+ protected final String TEXT_623 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof ";
+ protected final String TEXT_624 = ") {" + NL + "\t\t\t\t\treturn new ";
+ protected final String TEXT_625 = "(";
+ protected final String TEXT_626 = ", domainElement, ";
+ protected final String TEXT_627 = "new ";
+ protected final String TEXT_628 = "(0, 0, ";
+ protected final String TEXT_629 = ", ";
+ protected final String TEXT_630 = ")";
+ protected final String TEXT_631 = NL + "null";
+ protected final String TEXT_632 = ", ";
+ protected final String TEXT_633 = ".INSTANCE);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;";
+ protected final String TEXT_634 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}";
+ protected final String TEXT_635 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_636 = " getSemanticChildNodes() {";
+ protected final String TEXT_637 = NL;
+ protected final String TEXT_638 = NL + "\treturn ";
+ protected final String TEXT_639 = ".EMPTY_LIST;";
+ protected final String TEXT_640 = NL + "\t";
+ protected final String TEXT_641 = " result = new ";
+ protected final String TEXT_642 = "();";
+ protected final String TEXT_643 = NL + "\t";
+ protected final String TEXT_644 = " viewObject = ";
+ protected final String TEXT_645 = ";" + NL + "\t";
+ protected final String TEXT_646 = " modelObject = viewObject.getElement();" + NL + "\t";
+ protected final String TEXT_647 = " nextValue;" + NL + "\tint nodeVID;";
+ protected final String TEXT_648 = NL + "\tfor(";
+ protected final String TEXT_649 = " it = ";
+ protected final String TEXT_650 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
+ protected final String TEXT_651 = ") it.next();";
+ protected final String TEXT_652 = NL + "\tnextValue = (";
+ protected final String TEXT_653 = ")";
+ protected final String TEXT_654 = ";";
+ protected final String TEXT_655 = NL + "\tnodeVID = ";
+ protected final String TEXT_656 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);";
+ protected final String TEXT_657 = NL + "\tswitch (nodeVID) {";
+ protected final String TEXT_658 = NL + "\tcase ";
+ protected final String TEXT_659 = ".VISUAL_ID: {";
+ protected final String TEXT_660 = NL + "\tif (";
+ protected final String TEXT_661 = ".VISUAL_ID == nodeVID) {";
+ protected final String TEXT_662 = NL + "\t\tresult.add(new ";
+ protected final String TEXT_663 = "(nextValue, nodeVID));";
+ protected final String TEXT_664 = NL + "\t\tbreak;" + NL + "\t\t}";
+ protected final String TEXT_665 = NL + "\t\t}";
+ protected final String TEXT_666 = NL + "\t}";
+ protected final String TEXT_667 = NL + "\t}";
+ protected final String TEXT_668 = NL + "\treturn result;";
+ protected final String TEXT_669 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns ";
+ protected final String TEXT_670 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView(";
+ protected final String TEXT_671 = " descriptor) {" + NL + "\t\t\treturn ";
+ protected final String TEXT_672 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_673 = " getHost() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_674 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t";
+ protected final String TEXT_675 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_676 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_677 = " domainModelEditDomain = ";
+ protected final String TEXT_678 = ".getEditingDomain(";
+ protected final String TEXT_679 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new ";
+ protected final String TEXT_680 = "(domainModelEditDomain, command));" + NL + "\t}" + NL;
+ protected final String TEXT_681 = NL;
+ protected final String TEXT_682 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installLinkNotationModelRefresher() {" + NL + "\t\tLinkNotationModelRefresher refresher = getLinkNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_683 = " domainModelEditDomain = ";
+ protected final String TEXT_684 = ".getEditingDomain(";
+ protected final String TEXT_685 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshLinkNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallLinkNotationModelRefresher() {" + NL + "\t\tgetLinkNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher linkNotationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * Service to find a notational element that corresponds to the given underlying domain element. " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_686 = " viewService;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_687 = " getViewService() {" + NL + "\t\tif (viewService == null) {" + NL + "\t\t\tviewService = new ";
+ protected final String TEXT_688 = "(getViewer());" + NL + "\t\t}" + NL + "\t\treturn viewService;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher getLinkNotationModelRefresher() {" + NL + "\t\tif (linkNotationModelRefresher == null) {" + NL + "\t\t\tlinkNotationModelRefresher = new LinkNotationModelRefresher(getViewService());" + NL + "\t\t}" + NL + "\t\treturn linkNotationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class LinkNotationModelRefresher extends ";
+ protected final String TEXT_689 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic LinkNotationModelRefresher(";
+ protected final String TEXT_690 = " viewService) {" + NL + "\t\t\tsuper(viewService);" + NL + "\t\t}";
+ protected final String TEXT_691 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Child links of this element are selected based on constraint declared in ";
+ protected final String TEXT_692 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_693 = " getConstrainedChildLinksFilter() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_694 = ".NOT_TOUCH;" + NL + "\t\t}";
+ protected final String TEXT_695 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly result in uncontained links. " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_696 = " createUncontainedLinksFilter() {" + NL + "\t\t\treturn ";
protected final String TEXT_697 = ".createEventTypeFilter(";
- protected final String TEXT_698 = ".REMOVE).or(" + NL + "\t\t\t\t";
+ protected final String TEXT_698 = ".SET).or(" + NL + "\t\t\t\t";
protected final String TEXT_699 = ".createEventTypeFilter(";
- protected final String TEXT_700 = ".REMOVE_MANY)" + NL + "\t\t\t)));" + NL + "\t\t}";
- protected final String TEXT_701 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_702 = " createFilter() {";
- protected final String TEXT_703 = NL;
- protected final String TEXT_704 = NL + "\t\t\t";
- protected final String TEXT_705 = " filter = ";
- protected final String TEXT_706 = ".createFeatureFilter(";
- protected final String TEXT_707 = ".eINSTANCE.get";
- protected final String TEXT_708 = "());";
- protected final String TEXT_709 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_700 = ".UNSET).or(" + NL + "\t\t\t\t";
+ protected final String TEXT_701 = ".createEventTypeFilter(";
+ protected final String TEXT_702 = ".REMOVE).or(" + NL + "\t\t\t\t";
+ protected final String TEXT_703 = ".createEventTypeFilter(";
+ protected final String TEXT_704 = ".REMOVE_MANY)" + NL + "\t\t\t)));" + NL + "\t\t}";
+ protected final String TEXT_705 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_706 = " createFilter() {";
+ protected final String TEXT_707 = NL;
+ protected final String TEXT_708 = NL + "\t\t\t";
+ protected final String TEXT_709 = " filter = ";
protected final String TEXT_710 = ".createFeatureFilter(";
protected final String TEXT_711 = ".eINSTANCE.get";
- protected final String TEXT_712 = "()));";
- protected final String TEXT_713 = NL;
- protected final String TEXT_714 = NL + "\t\t\t";
- protected final String TEXT_715 = " filter = ";
- protected final String TEXT_716 = ".createFeatureFilter(";
- protected final String TEXT_717 = ".eINSTANCE.get";
- protected final String TEXT_718 = "());";
- protected final String TEXT_719 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_712 = "());";
+ protected final String TEXT_713 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_714 = ".createFeatureFilter(";
+ protected final String TEXT_715 = ".eINSTANCE.get";
+ protected final String TEXT_716 = "()));";
+ protected final String TEXT_717 = NL;
+ protected final String TEXT_718 = NL + "\t\t\t";
+ protected final String TEXT_719 = " filter = ";
protected final String TEXT_720 = ".createFeatureFilter(";
protected final String TEXT_721 = ".eINSTANCE.get";
- protected final String TEXT_722 = "()));";
- protected final String TEXT_723 = NL;
- protected final String TEXT_724 = NL + "\t\t\t";
- protected final String TEXT_725 = " filter = ";
- protected final String TEXT_726 = ".createFeatureFilter(";
- protected final String TEXT_727 = ".eINSTANCE.get";
- protected final String TEXT_728 = "());";
- protected final String TEXT_729 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_722 = "());";
+ protected final String TEXT_723 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_724 = ".createFeatureFilter(";
+ protected final String TEXT_725 = ".eINSTANCE.get";
+ protected final String TEXT_726 = "()));";
+ protected final String TEXT_727 = NL;
+ protected final String TEXT_728 = NL + "\t\t\t";
+ protected final String TEXT_729 = " filter = ";
protected final String TEXT_730 = ".createFeatureFilter(";
protected final String TEXT_731 = ".eINSTANCE.get";
- protected final String TEXT_732 = "()));";
- protected final String TEXT_733 = NL;
- protected final String TEXT_734 = NL + "\t\t\t";
- protected final String TEXT_735 = " filter = ";
- protected final String TEXT_736 = ".createFeatureFilter(";
- protected final String TEXT_737 = ".eINSTANCE.get";
- protected final String TEXT_738 = "());";
- protected final String TEXT_739 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_732 = "());";
+ protected final String TEXT_733 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_734 = ".createFeatureFilter(";
+ protected final String TEXT_735 = ".eINSTANCE.get";
+ protected final String TEXT_736 = "()));";
+ protected final String TEXT_737 = NL;
+ protected final String TEXT_738 = NL + "\t\t\t";
+ protected final String TEXT_739 = " filter = ";
protected final String TEXT_740 = ".createFeatureFilter(";
protected final String TEXT_741 = ".eINSTANCE.get";
- protected final String TEXT_742 = "()));";
- protected final String TEXT_743 = NL + "\t\t\tfilter = getConstrainedChildLinksFilter().or(filter);";
- protected final String TEXT_744 = NL + "\t\t\t";
- protected final String TEXT_745 = " filter = getConstrainedChildLinksFilter();";
- protected final String TEXT_746 = NL + "\t\t\tfilter = filter.or(createUncontainedLinksFilter());";
- protected final String TEXT_747 = NL + "\t\t\t";
- protected final String TEXT_748 = " filter = createUncontainedLinksFilter();";
- protected final String TEXT_749 = NL + "\t\t\t";
- protected final String TEXT_750 = " filter = ";
- protected final String TEXT_751 = ".NOT_TOUCH;";
- protected final String TEXT_752 = NL + "\t\t\treturn filter;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t \t * @generated" + NL + "\t \t */" + NL + "\t\tprotected ";
- protected final String TEXT_753 = " getCreateNotationalElementCommand(";
- protected final String TEXT_754 = " descriptor) {" + NL + "\t\t\t";
- protected final String TEXT_755 = " linkDescriptor = (";
- protected final String TEXT_756 = ") descriptor;";
- protected final String TEXT_757 = NL;
- protected final String TEXT_758 = "\t\t\t";
- protected final String TEXT_759 = " sourceView = getViewService().findView(linkDescriptor.getSource());" + NL + "\t\t\t";
- protected final String TEXT_760 = " targetView = getViewService().findView(linkDescriptor.getDestination());" + NL + "\t\t\t";
- protected final String TEXT_761 = " decorator = null;" + NL + "\t\t\tif (sourceView == null || targetView == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tswitch (linkDescriptor.getVisualID()) {";
- protected final String TEXT_762 = NL + "\t\t\tcase ";
- protected final String TEXT_763 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() instanceof ";
- protected final String TEXT_764 = ") {" + NL + "\t\t\t\t\tdecorator = ";
- protected final String TEXT_765 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;";
+ protected final String TEXT_742 = "());";
+ protected final String TEXT_743 = NL + "\t\t\tfilter = filter.or(";
+ protected final String TEXT_744 = ".createFeatureFilter(";
+ protected final String TEXT_745 = ".eINSTANCE.get";
+ protected final String TEXT_746 = "()));";
+ protected final String TEXT_747 = NL + "\t\t\tfilter = getConstrainedChildLinksFilter().or(filter);";
+ protected final String TEXT_748 = NL + "\t\t\t";
+ protected final String TEXT_749 = " filter = getConstrainedChildLinksFilter();";
+ protected final String TEXT_750 = NL + "\t\t\tfilter = filter.or(createUncontainedLinksFilter());";
+ protected final String TEXT_751 = NL + "\t\t\t";
+ protected final String TEXT_752 = " filter = createUncontainedLinksFilter();";
+ protected final String TEXT_753 = NL + "\t\t\t";
+ protected final String TEXT_754 = " filter = ";
+ protected final String TEXT_755 = ".NOT_TOUCH;";
+ protected final String TEXT_756 = NL + "\t\t\treturn filter;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t \t * @generated" + NL + "\t \t */" + NL + "\t\tprotected ";
+ protected final String TEXT_757 = " getCreateNotationalElementCommand(";
+ protected final String TEXT_758 = " descriptor) {" + NL + "\t\t\t";
+ protected final String TEXT_759 = " linkDescriptor = (";
+ protected final String TEXT_760 = ") descriptor;";
+ protected final String TEXT_761 = NL;
+ protected final String TEXT_762 = "\t\t\t";
+ protected final String TEXT_763 = " sourceView = getViewService().findView(linkDescriptor.getSource());" + NL + "\t\t\t";
+ protected final String TEXT_764 = " targetView = getViewService().findView(linkDescriptor.getDestination());" + NL + "\t\t\t";
+ protected final String TEXT_765 = " decorator = null;" + NL + "\t\t\tif (sourceView == null || targetView == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tswitch (linkDescriptor.getVisualID()) {";
protected final String TEXT_766 = NL + "\t\t\tcase ";
- protected final String TEXT_767 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() == null) {" + NL + "\t\t\t\t\tdecorator = ";
- protected final String TEXT_768 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;";
- protected final String TEXT_769 = NL + "\t\t\t}" + NL + "\t\t\tif (decorator == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\treturn new ";
- protected final String TEXT_770 = "(";
- protected final String TEXT_771 = ", linkDescriptor.getElement(), sourceView, targetView, decorator);";
- protected final String TEXT_772 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_773 = " getSemanticChildLinks() {";
- protected final String TEXT_774 = NL;
- protected final String TEXT_775 = "\t";
- protected final String TEXT_776 = " result = new ";
- protected final String TEXT_777 = "();";
- protected final String TEXT_778 = NL + "\t";
- protected final String TEXT_779 = " modelObject = ";
- protected final String TEXT_780 = ".getElement();" + NL + "\t";
- protected final String TEXT_781 = " nextValue;";
- protected final String TEXT_782 = NL + "\tint linkVID;";
- protected final String TEXT_783 = NL + "\tfor(";
- protected final String TEXT_784 = " it = ";
- protected final String TEXT_785 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
- protected final String TEXT_786 = ") it.next();";
- protected final String TEXT_787 = NL + "\tnextValue = (";
- protected final String TEXT_788 = ")";
- protected final String TEXT_789 = ";";
- protected final String TEXT_790 = NL + "\tlinkVID = ";
- protected final String TEXT_791 = ".INSTANCE.getLinkWithClassVisualID(nextValue);";
- protected final String TEXT_792 = NL + "\tswitch (linkVID) {";
- protected final String TEXT_793 = NL + "\tcase ";
- protected final String TEXT_794 = ".VISUAL_ID: {";
- protected final String TEXT_795 = NL + "\tif (";
- protected final String TEXT_796 = ".VISUAL_ID == linkVID) {";
- protected final String TEXT_797 = NL + "\t\t";
- protected final String TEXT_798 = " source = (";
- protected final String TEXT_799 = ")";
- protected final String TEXT_800 = ";";
+ protected final String TEXT_767 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() instanceof ";
+ protected final String TEXT_768 = ") {" + NL + "\t\t\t\t\tdecorator = ";
+ protected final String TEXT_769 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;";
+ protected final String TEXT_770 = NL + "\t\t\tcase ";
+ protected final String TEXT_771 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() == null) {" + NL + "\t\t\t\t\tdecorator = ";
+ protected final String TEXT_772 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;";
+ protected final String TEXT_773 = NL + "\t\t\t}" + NL + "\t\t\tif (decorator == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\treturn new ";
+ protected final String TEXT_774 = "(";
+ protected final String TEXT_775 = ", linkDescriptor.getElement(), sourceView, targetView, decorator);";
+ protected final String TEXT_776 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_777 = " getSemanticChildLinks() {";
+ protected final String TEXT_778 = NL;
+ protected final String TEXT_779 = "\t";
+ protected final String TEXT_780 = " result = new ";
+ protected final String TEXT_781 = "();";
+ protected final String TEXT_782 = NL + "\t";
+ protected final String TEXT_783 = " modelObject = ";
+ protected final String TEXT_784 = ".getElement();" + NL + "\t";
+ protected final String TEXT_785 = " nextValue;";
+ protected final String TEXT_786 = NL + "\tint linkVID;";
+ protected final String TEXT_787 = NL + "\tfor(";
+ protected final String TEXT_788 = " it = ";
+ protected final String TEXT_789 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
+ protected final String TEXT_790 = ") it.next();";
+ protected final String TEXT_791 = NL + "\tnextValue = (";
+ protected final String TEXT_792 = ")";
+ protected final String TEXT_793 = ";";
+ protected final String TEXT_794 = NL + "\tlinkVID = ";
+ protected final String TEXT_795 = ".INSTANCE.getLinkWithClassVisualID(nextValue);";
+ protected final String TEXT_796 = NL + "\tswitch (linkVID) {";
+ protected final String TEXT_797 = NL + "\tcase ";
+ protected final String TEXT_798 = ".VISUAL_ID: {";
+ protected final String TEXT_799 = NL + "\tif (";
+ protected final String TEXT_800 = ".VISUAL_ID == linkVID) {";
protected final String TEXT_801 = NL + "\t\t";
- protected final String TEXT_802 = " source = ";
- protected final String TEXT_803 = ".getElement();";
- protected final String TEXT_804 = NL + "\t\t";
- protected final String TEXT_805 = " target = (";
- protected final String TEXT_806 = ")";
- protected final String TEXT_807 = ";";
+ protected final String TEXT_802 = " source = (";
+ protected final String TEXT_803 = ")";
+ protected final String TEXT_804 = ";";
+ protected final String TEXT_805 = NL + "\t\t";
+ protected final String TEXT_806 = " source = ";
+ protected final String TEXT_807 = ".getElement();";
protected final String TEXT_808 = NL + "\t\t";
- protected final String TEXT_809 = " target = ";
- protected final String TEXT_810 = ".getElement();";
- protected final String TEXT_811 = NL + "\t\tif (source != null && target != null) {" + NL + "\t\t\tresult.add(new ";
- protected final String TEXT_812 = "(source, target, nextValue, linkVID));" + NL + "\t\t}";
- protected final String TEXT_813 = NL + "\t\tbreak;" + NL + "\t}";
- protected final String TEXT_814 = NL + "\t}";
- protected final String TEXT_815 = NL + "\t}";
- protected final String TEXT_816 = NL + "\t}";
- protected final String TEXT_817 = NL + "\tfor(";
- protected final String TEXT_818 = " it = ";
- protected final String TEXT_819 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
- protected final String TEXT_820 = ") it.next();";
- protected final String TEXT_821 = NL + "\tnextValue = (";
- protected final String TEXT_822 = ")";
- protected final String TEXT_823 = ";";
- protected final String TEXT_824 = NL + "\tif (nextValue != null) {";
- protected final String TEXT_825 = NL + "\t\tresult.add(new ";
- protected final String TEXT_826 = "(modelObject, nextValue, null, ";
- protected final String TEXT_827 = ".VISUAL_ID));";
- protected final String TEXT_828 = NL + "\t}";
- protected final String TEXT_829 = NL + "\t}";
- protected final String TEXT_830 = NL + "\treturn result;";
- protected final String TEXT_831 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_832 = " getNotationalChildLinks() {" + NL + "\t\t\t";
- protected final String TEXT_833 = " result = new ";
- protected final String TEXT_834 = "();" + NL + "\t\t\t";
- protected final String TEXT_835 = " allLinks = ";
- protected final String TEXT_836 = ".getEdges();" + NL + "\t\t\tfor(";
- protected final String TEXT_837 = " it = allLinks.iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
- protected final String TEXT_838 = " next = (";
- protected final String TEXT_839 = ") it.next();";
- protected final String TEXT_840 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null && next.getElement().eResource() == null) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
- protected final String TEXT_841 = " source = next.getSource();" + NL + "\t\t\t\tif (source == null || (source.isSetElement() && source.getElement() != null && source.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
- protected final String TEXT_842 = " target = next.getTarget();" + NL + "\t\t\t\tif (target == null || (target.isSetElement() && target.getElement() != null && target.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}";
- protected final String TEXT_843 = NL + "\t\t\t\tif (!next.isSetElement() || next.getElement() == null) {" + NL + "\t\t\t\t\tif (next.getSource() == ";
- protected final String TEXT_844 = ") {" + NL + "\t\t\t\t\t\tint linkVID = ";
- protected final String TEXT_845 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {";
- protected final String TEXT_846 = NL + "\t\t\t\t\t\tcase ";
- protected final String TEXT_847 = ".VISUAL_ID:";
- protected final String TEXT_848 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}";
- protected final String TEXT_849 = NL + "\t\t\t\t} else {";
- protected final String TEXT_850 = NL + "\t\t\t\t}";
- protected final String TEXT_851 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null) {";
- protected final String TEXT_852 = NL + "\t\t\t\t\tif (next.getElement().eContainer() == ";
- protected final String TEXT_853 = ".getElement()) {" + NL + "\t\t\t\t\t\tint linkVID = ";
- protected final String TEXT_854 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {";
- protected final String TEXT_855 = NL + "\t\t\t\t\t\tcase ";
- protected final String TEXT_856 = ".VISUAL_ID:";
- protected final String TEXT_857 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}";
- protected final String TEXT_858 = NL + "\t\t\t}" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational edge should be created for the given domain element. " + NL + "\t\t * The generated code always returns ";
- protected final String TEXT_859 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView(";
- protected final String TEXT_860 = " descriptor) {" + NL + "\t\t\treturn ";
- protected final String TEXT_861 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_862 = " getHost() {" + NL + "\t\t\treturn ";
- protected final String TEXT_863 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshLinkNotationModel() {" + NL + "\t\t";
- protected final String TEXT_864 = " linkRefresher = getLinkNotationModelRefresher();" + NL + "\t\tif (!linkRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_865 = " command = linkRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_866 = " domainModelEditDomain = ";
- protected final String TEXT_867 = ".getEditingDomain(";
- protected final String TEXT_868 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new ";
- protected final String TEXT_869 = "(domainModelEditDomain, command));" + NL + "\t}";
- protected final String TEXT_870 = NL;
- protected final String TEXT_871 = NL;
- protected final String TEXT_872 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_873 = " domainModelRefresher = new ";
- protected final String TEXT_874 = "(this);" + NL;
+ protected final String TEXT_809 = " target = (";
+ protected final String TEXT_810 = ")";
+ protected final String TEXT_811 = ";";
+ protected final String TEXT_812 = NL + "\t\t";
+ protected final String TEXT_813 = " target = ";
+ protected final String TEXT_814 = ".getElement();";
+ protected final String TEXT_815 = NL + "\t\tif (source != null && target != null) {" + NL + "\t\t\tresult.add(new ";
+ protected final String TEXT_816 = "(source, target, nextValue, linkVID));" + NL + "\t\t}";
+ protected final String TEXT_817 = NL + "\t\tbreak;" + NL + "\t}";
+ protected final String TEXT_818 = NL + "\t}";
+ protected final String TEXT_819 = NL + "\t}";
+ protected final String TEXT_820 = NL + "\t}";
+ protected final String TEXT_821 = NL + "\tfor(";
+ protected final String TEXT_822 = " it = ";
+ protected final String TEXT_823 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
+ protected final String TEXT_824 = ") it.next();";
+ protected final String TEXT_825 = NL + "\tnextValue = (";
+ protected final String TEXT_826 = ")";
+ protected final String TEXT_827 = ";";
+ protected final String TEXT_828 = NL + "\tif (nextValue != null) {";
+ protected final String TEXT_829 = NL + "\t\tresult.add(new ";
+ protected final String TEXT_830 = "(modelObject, nextValue, null, ";
+ protected final String TEXT_831 = ".VISUAL_ID));";
+ protected final String TEXT_832 = NL + "\t}";
+ protected final String TEXT_833 = NL + "\t}";
+ protected final String TEXT_834 = NL + "\treturn result;";
+ protected final String TEXT_835 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_836 = " getNotationalChildLinks() {" + NL + "\t\t\t";
+ protected final String TEXT_837 = " result = new ";
+ protected final String TEXT_838 = "();" + NL + "\t\t\t";
+ protected final String TEXT_839 = " allLinks = ";
+ protected final String TEXT_840 = ".getEdges();" + NL + "\t\t\tfor(";
+ protected final String TEXT_841 = " it = allLinks.iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
+ protected final String TEXT_842 = " next = (";
+ protected final String TEXT_843 = ") it.next();";
+ protected final String TEXT_844 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null && next.getElement().eResource() == null) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
+ protected final String TEXT_845 = " source = next.getSource();" + NL + "\t\t\t\tif (source == null || (source.isSetElement() && source.getElement() != null && source.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
+ protected final String TEXT_846 = " target = next.getTarget();" + NL + "\t\t\t\tif (target == null || (target.isSetElement() && target.getElement() != null && target.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}";
+ protected final String TEXT_847 = NL + "\t\t\t\tif (!next.isSetElement() || next.getElement() == null) {" + NL + "\t\t\t\t\tif (next.getSource() == ";
+ protected final String TEXT_848 = ") {" + NL + "\t\t\t\t\t\tint linkVID = ";
+ protected final String TEXT_849 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {";
+ protected final String TEXT_850 = NL + "\t\t\t\t\t\tcase ";
+ protected final String TEXT_851 = ".VISUAL_ID:";
+ protected final String TEXT_852 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}";
+ protected final String TEXT_853 = NL + "\t\t\t\t} else {";
+ protected final String TEXT_854 = NL + "\t\t\t\t}";
+ protected final String TEXT_855 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null) {";
+ protected final String TEXT_856 = NL + "\t\t\t\t\tif (next.getElement().eContainer() == ";
+ protected final String TEXT_857 = ".getElement()) {" + NL + "\t\t\t\t\t\tint linkVID = ";
+ protected final String TEXT_858 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {";
+ protected final String TEXT_859 = NL + "\t\t\t\t\t\tcase ";
+ protected final String TEXT_860 = ".VISUAL_ID:";
+ protected final String TEXT_861 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}";
+ protected final String TEXT_862 = NL + "\t\t\t}" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational edge should be created for the given domain element. " + NL + "\t\t * The generated code always returns ";
+ protected final String TEXT_863 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView(";
+ protected final String TEXT_864 = " descriptor) {" + NL + "\t\t\treturn ";
+ protected final String TEXT_865 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_866 = " getHost() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_867 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshLinkNotationModel() {" + NL + "\t\t";
+ protected final String TEXT_868 = " linkRefresher = getLinkNotationModelRefresher();" + NL + "\t\tif (!linkRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_869 = " command = linkRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_870 = " domainModelEditDomain = ";
+ protected final String TEXT_871 = ".getEditingDomain(";
+ protected final String TEXT_872 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new ";
+ protected final String TEXT_873 = "(domainModelEditDomain, command));" + NL + "\t}";
+ protected final String TEXT_874 = NL;
protected final String TEXT_875 = NL;
- protected final String TEXT_876 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher(";
- protected final String TEXT_877 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeRefresher(";
- protected final String TEXT_878 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate CompositeRefresher getCompositeRefresher(";
- protected final String TEXT_879 = " feature) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\tRefresher refresher = (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t\tif (refresher instanceof CompositeRefresher) {" + NL + "\t\t\treturn (CompositeRefresher) refresher;" + NL + "\t\t}" + NL + "\t\tCompositeRefresher result = new CompositeRefresher();" + NL + "\t\tif (refresher != null) {" + NL + "\t\t\tresult.addRefresher(refresher);" + NL + "\t\t}" + NL + "\t\tstructuralFeatures2Refresher.put(feature, result);" + NL + "\t\treturn result;" + NL + "\t}" + NL;
- protected final String TEXT_880 = NL;
- protected final String TEXT_881 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshFont() {";
- protected final String TEXT_882 = NL + "\t\t";
- protected final String TEXT_883 = " style =" + NL + "\t\t\t(";
- protected final String TEXT_884 = ") ";
- protected final String TEXT_885 = ".getStyle(" + NL + "\t\t\t\t";
- protected final String TEXT_886 = ".eINSTANCE.getFontStyle());" + NL + "\t\t";
- protected final String TEXT_887 = " toDispose = createdFont;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tString fontName = style.getFontName();" + NL + "\t\t\tint fontHeight = style.getFontHeight();" + NL + "\t\t\tint fontStyle = ";
- protected final String TEXT_888 = ".NORMAL;" + NL + "\t\t\tif (style.isBold()) {" + NL + "\t\t\t\tfontStyle |= ";
- protected final String TEXT_889 = ".BOLD;" + NL + "\t\t\t}" + NL + "\t\t\tif (style.isItalic()) {" + NL + "\t\t\t\tfontStyle |= ";
- protected final String TEXT_890 = ".ITALIC;" + NL + "\t\t\t}" + NL + "\t\t\t";
- protected final String TEXT_891 = " currentFont = getFigure().getFont();" + NL + "\t\t\tif (currentFont != null) {" + NL + "\t\t\t\t";
- protected final String TEXT_892 = " currentFontData = currentFont.getFontData()[0];" + NL + "\t\t\t\tif (currentFontData.getName().equals(fontName) && currentFontData.getHeight() == fontHeight && currentFontData.getStyle() == fontStyle) {" + NL + "\t\t\t\t\treturn;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tcreatedFont = new ";
- protected final String TEXT_893 = "(null, fontName, fontHeight, fontStyle);" + NL + "\t\t\tgetFigure().setFont(createdFont);" + NL + "\t\t} else {" + NL + "\t\t\t//revert to the default font" + NL + "\t\t\tgetFigure().setFont(getViewer().getControl().getFont());" + NL + "\t\t\tcreatedFont = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}";
- protected final String TEXT_894 = "\t" + NL + "\t}";
- protected final String TEXT_895 = NL + NL + "\t/**" + NL + "\t * The font (created by {@link #refreshFont()}) currently assigned to the label (unless the default font is assigned)." + NL + "\t * Whenever another non-default font is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_896 = " createdFont;";
- protected final String TEXT_897 = "\t" + NL;
- protected final String TEXT_898 = NL;
- protected final String TEXT_899 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshForegroundColor() {" + NL + "\t\t";
- protected final String TEXT_900 = " style = (";
- protected final String TEXT_901 = ") ";
- protected final String TEXT_902 = ".getStyle(";
- protected final String TEXT_903 = ".eINSTANCE.getLineStyle());" + NL + "\t\t";
- protected final String TEXT_904 = " toDispose = createdForegroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint foregroundColor = style.getLineColor();" + NL + "\t\t\tint red = foregroundColor & 0x000000FF;" + NL + "\t\t\tint green = (foregroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (foregroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t";
- protected final String TEXT_905 = " currentColor = getFigure().getForegroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedForegroundColor = new ";
- protected final String TEXT_906 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setForegroundColor(createdForegroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setForegroundColor(getViewer().getControl().getForeground());" + NL + "\t\t\tcreatedForegroundColor = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshForegroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_907 = " createdForegroundColor;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBackgroundColor() {" + NL + "\t\t";
- protected final String TEXT_908 = " style = (";
- protected final String TEXT_909 = ") ";
- protected final String TEXT_910 = ".getStyle(";
- protected final String TEXT_911 = ".eINSTANCE.getFillStyle());" + NL + "\t\t";
- protected final String TEXT_912 = " toDispose = createdBackgroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint backgroundColor = style.getFillColor();" + NL + "\t\t\tint red = backgroundColor & 0x000000FF;" + NL + "\t\t\tint green = (backgroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (backgroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t";
- protected final String TEXT_913 = " currentColor = getFigure().getBackgroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedBackgroundColor = new ";
- protected final String TEXT_914 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setBackgroundColor(createdBackgroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setBackgroundColor(getViewer().getControl().getBackground());" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshBackgroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_915 = " createdBackgroundColor;" + NL;
- protected final String TEXT_916 = NL;
- protected final String TEXT_917 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_918 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher(";
- protected final String TEXT_919 = " feature, ";
- protected final String TEXT_920 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new ";
- protected final String TEXT_921 = "();";
- protected final String TEXT_922 = NL;
- protected final String TEXT_923 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_924 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_925 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);";
+ protected final String TEXT_876 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_877 = " domainModelRefresher = new ";
+ protected final String TEXT_878 = "(this);" + NL;
+ protected final String TEXT_879 = NL;
+ protected final String TEXT_880 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher(";
+ protected final String TEXT_881 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeRefresher(";
+ protected final String TEXT_882 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate CompositeRefresher getCompositeRefresher(";
+ protected final String TEXT_883 = " feature) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\tRefresher refresher = (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t\tif (refresher instanceof CompositeRefresher) {" + NL + "\t\t\treturn (CompositeRefresher) refresher;" + NL + "\t\t}" + NL + "\t\tCompositeRefresher result = new CompositeRefresher();" + NL + "\t\tif (refresher != null) {" + NL + "\t\t\tresult.addRefresher(refresher);" + NL + "\t\t}" + NL + "\t\tstructuralFeatures2Refresher.put(feature, result);" + NL + "\t\treturn result;" + NL + "\t}" + NL;
+ protected final String TEXT_884 = NL;
+ protected final String TEXT_885 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshFont() {";
+ protected final String TEXT_886 = NL + "\t\t";
+ protected final String TEXT_887 = " style =" + NL + "\t\t\t(";
+ protected final String TEXT_888 = ") ";
+ protected final String TEXT_889 = ".getStyle(" + NL + "\t\t\t\t";
+ protected final String TEXT_890 = ".eINSTANCE.getFontStyle());" + NL + "\t\t";
+ protected final String TEXT_891 = " toDispose = createdFont;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tString fontName = style.getFontName();" + NL + "\t\t\tint fontHeight = style.getFontHeight();" + NL + "\t\t\tint fontStyle = ";
+ protected final String TEXT_892 = ".NORMAL;" + NL + "\t\t\tif (style.isBold()) {" + NL + "\t\t\t\tfontStyle |= ";
+ protected final String TEXT_893 = ".BOLD;" + NL + "\t\t\t}" + NL + "\t\t\tif (style.isItalic()) {" + NL + "\t\t\t\tfontStyle |= ";
+ protected final String TEXT_894 = ".ITALIC;" + NL + "\t\t\t}" + NL + "\t\t\t";
+ protected final String TEXT_895 = " currentFont = getFigure().getFont();" + NL + "\t\t\tif (currentFont != null) {" + NL + "\t\t\t\t";
+ protected final String TEXT_896 = " currentFontData = currentFont.getFontData()[0];" + NL + "\t\t\t\tif (currentFontData.getName().equals(fontName) && currentFontData.getHeight() == fontHeight && currentFontData.getStyle() == fontStyle) {" + NL + "\t\t\t\t\treturn;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tcreatedFont = new ";
+ protected final String TEXT_897 = "(null, fontName, fontHeight, fontStyle);" + NL + "\t\t\tgetFigure().setFont(createdFont);" + NL + "\t\t} else {" + NL + "\t\t\t//revert to the default font" + NL + "\t\t\tgetFigure().setFont(getViewer().getControl().getFont());" + NL + "\t\t\tcreatedFont = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}";
+ protected final String TEXT_898 = "\t" + NL + "\t}";
+ protected final String TEXT_899 = NL + NL + "\t/**" + NL + "\t * The font (created by {@link #refreshFont()}) currently assigned to the label (unless the default font is assigned)." + NL + "\t * Whenever another non-default font is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_900 = " createdFont;";
+ protected final String TEXT_901 = "\t" + NL;
+ protected final String TEXT_902 = NL;
+ protected final String TEXT_903 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshForegroundColor() {" + NL + "\t\t";
+ protected final String TEXT_904 = " style = (";
+ protected final String TEXT_905 = ") ";
+ protected final String TEXT_906 = ".getStyle(";
+ protected final String TEXT_907 = ".eINSTANCE.getLineStyle());" + NL + "\t\t";
+ protected final String TEXT_908 = " toDispose = createdForegroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint foregroundColor = style.getLineColor();" + NL + "\t\t\tint red = foregroundColor & 0x000000FF;" + NL + "\t\t\tint green = (foregroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (foregroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t";
+ protected final String TEXT_909 = " currentColor = getFigure().getForegroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedForegroundColor = new ";
+ protected final String TEXT_910 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setForegroundColor(createdForegroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setForegroundColor(getViewer().getControl().getForeground());" + NL + "\t\t\tcreatedForegroundColor = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshForegroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_911 = " createdForegroundColor;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBackgroundColor() {" + NL + "\t\t";
+ protected final String TEXT_912 = " style = (";
+ protected final String TEXT_913 = ") ";
+ protected final String TEXT_914 = ".getStyle(";
+ protected final String TEXT_915 = ".eINSTANCE.getFillStyle());" + NL + "\t\t";
+ protected final String TEXT_916 = " toDispose = createdBackgroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint backgroundColor = style.getFillColor();" + NL + "\t\t\tint red = backgroundColor & 0x000000FF;" + NL + "\t\t\tint green = (backgroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (backgroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t";
+ protected final String TEXT_917 = " currentColor = getFigure().getBackgroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedBackgroundColor = new ";
+ protected final String TEXT_918 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setBackgroundColor(createdBackgroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setBackgroundColor(getViewer().getControl().getBackground());" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshBackgroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_919 = " createdBackgroundColor;" + NL;
+ protected final String TEXT_920 = NL;
+ protected final String TEXT_921 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_922 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher(";
+ protected final String TEXT_923 = " feature, ";
+ protected final String TEXT_924 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new ";
+ protected final String TEXT_925 = "();";
protected final String TEXT_926 = NL;
- protected final String TEXT_927 = "\t\tRefresher boundsRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBounds();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_928 = ".eINSTANCE.getNode_LayoutConstraint(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_929 = ".eINSTANCE.getSize_Width(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_930 = ".eINSTANCE.getSize_Height(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_931 = ".eINSTANCE.getLocation_X(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_932 = ".eINSTANCE.getLocation_Y(), boundsRefresher);";
- protected final String TEXT_933 = NL;
- protected final String TEXT_934 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_935 = ".eINSTANCE.getView_Visible(), visibilityRefresher);";
- protected final String TEXT_936 = NL;
- protected final String TEXT_937 = "\t\tRefresher sourceEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshSourceConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_938 = ".eINSTANCE.getView_SourceEdges(), sourceEdgesRefresher);";
- protected final String TEXT_939 = NL;
- protected final String TEXT_940 = "\t\tRefresher targetEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshTargetConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_941 = ".eINSTANCE.getView_TargetEdges(), targetEdgesRefresher);";
- protected final String TEXT_942 = NL;
- protected final String TEXT_943 = "\t\tRefresher fontRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshFont();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_944 = ".eINSTANCE.getFontStyle_FontHeight(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_945 = ".eINSTANCE.getFontStyle_FontName(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_946 = ".eINSTANCE.getFontStyle_Bold(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_947 = ".eINSTANCE.getFontStyle_Italic(), fontRefresher);" + NL + "\t\t";
- protected final String TEXT_948 = NL;
- protected final String TEXT_949 = "\t\tRefresher backgroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBackgroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_950 = ".eINSTANCE.getFillStyle_FillColor(), backgroundColorRefresher);" + NL + "\t\tRefresher foregroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshForegroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_951 = ".eINSTANCE.getLineStyle_LineColor(), foregroundColorRefresher);" + NL + "\t}" + NL;
+ protected final String TEXT_927 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_928 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_929 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);";
+ protected final String TEXT_930 = NL;
+ protected final String TEXT_931 = "\t\tRefresher boundsRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBounds();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_932 = ".eINSTANCE.getNode_LayoutConstraint(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_933 = ".eINSTANCE.getSize_Width(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_934 = ".eINSTANCE.getSize_Height(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_935 = ".eINSTANCE.getLocation_X(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_936 = ".eINSTANCE.getLocation_Y(), boundsRefresher);";
+ protected final String TEXT_937 = NL;
+ protected final String TEXT_938 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_939 = ".eINSTANCE.getView_Visible(), visibilityRefresher);";
+ protected final String TEXT_940 = NL;
+ protected final String TEXT_941 = "\t\tRefresher sourceEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshSourceConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_942 = ".eINSTANCE.getView_SourceEdges(), sourceEdgesRefresher);";
+ protected final String TEXT_943 = NL;
+ protected final String TEXT_944 = "\t\tRefresher targetEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshTargetConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_945 = ".eINSTANCE.getView_TargetEdges(), targetEdgesRefresher);";
+ protected final String TEXT_946 = NL;
+ protected final String TEXT_947 = "\t\tRefresher fontRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshFont();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_948 = ".eINSTANCE.getFontStyle_FontHeight(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_949 = ".eINSTANCE.getFontStyle_FontName(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_950 = ".eINSTANCE.getFontStyle_Bold(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_951 = ".eINSTANCE.getFontStyle_Italic(), fontRefresher);" + NL + "\t\t";
protected final String TEXT_952 = NL;
- protected final String TEXT_953 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_954 = "static ";
- protected final String TEXT_955 = "class Create";
- protected final String TEXT_956 = "Command extends ";
- protected final String TEXT_957 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final ";
- protected final String TEXT_958 = " notationAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create";
- protected final String TEXT_959 = "Command(";
- protected final String TEXT_960 = " parent, ";
- protected final String TEXT_961 = " request";
- protected final String TEXT_962 = ", ";
- protected final String TEXT_963 = " constraint";
- protected final String TEXT_964 = ") {" + NL + "\t\t\t";
- protected final String TEXT_965 = " domainModelEditDomain = ";
- protected final String TEXT_966 = ".getEditingDomain(parent.getDiagram().getElement());";
- protected final String TEXT_967 = NL + "\t\t\t";
- protected final String TEXT_968 = " createdDomainElement = ";
- protected final String TEXT_969 = ".eINSTANCE.create(" + NL + "\t\t\t\t";
- protected final String TEXT_970 = ".eINSTANCE.get";
- protected final String TEXT_971 = "());";
- protected final String TEXT_972 = NL + "\t\t\t";
- protected final String TEXT_973 = " createdDomainElement = ";
- protected final String TEXT_974 = ".eINSTANCE.create";
- protected final String TEXT_975 = "();";
+ protected final String TEXT_953 = "\t\tRefresher backgroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBackgroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_954 = ".eINSTANCE.getFillStyle_FillColor(), backgroundColorRefresher);" + NL + "\t\tRefresher foregroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshForegroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_955 = ".eINSTANCE.getLineStyle_LineColor(), foregroundColorRefresher);" + NL + "\t}" + NL;
+ protected final String TEXT_956 = NL;
+ protected final String TEXT_957 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_958 = "static ";
+ protected final String TEXT_959 = "class Create";
+ protected final String TEXT_960 = "Command extends ";
+ protected final String TEXT_961 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final ";
+ protected final String TEXT_962 = " notationAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create";
+ protected final String TEXT_963 = "Command(";
+ protected final String TEXT_964 = " parent, ";
+ protected final String TEXT_965 = " request";
+ protected final String TEXT_966 = ", ";
+ protected final String TEXT_967 = " constraint";
+ protected final String TEXT_968 = ") {" + NL + "\t\t\t";
+ protected final String TEXT_969 = " domainModelEditDomain = ";
+ protected final String TEXT_970 = ".getEditingDomain(parent.getDiagram().getElement());";
+ protected final String TEXT_971 = NL + "\t\t\t";
+ protected final String TEXT_972 = " createdDomainElement = ";
+ protected final String TEXT_973 = ".eINSTANCE.create(" + NL + "\t\t\t\t";
+ protected final String TEXT_974 = ".eINSTANCE.get";
+ protected final String TEXT_975 = "());";
protected final String TEXT_976 = NL + "\t\t\t";
- protected final String TEXT_977 = NL + "\t\t\t";
- protected final String TEXT_978 = ".";
- protected final String TEXT_979 = ".initializeElement(";
- protected final String TEXT_980 = "(";
- protected final String TEXT_981 = ") ";
- protected final String TEXT_982 = "createdDomainElement);";
- protected final String TEXT_983 = NL;
- protected final String TEXT_984 = NL + "\t\tif (";
- protected final String TEXT_985 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_986 = NL + "\t\t}";
- protected final String TEXT_987 = NL + "\t\tif (";
- protected final String TEXT_988 = ".size() >= ";
- protected final String TEXT_989 = ".eINSTANCE.get";
- protected final String TEXT_990 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_991 = NL + "\t\t}";
- protected final String TEXT_992 = NL;
- protected final String TEXT_993 = NL + "\t\tif (";
- protected final String TEXT_994 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_977 = " createdDomainElement = ";
+ protected final String TEXT_978 = ".eINSTANCE.create";
+ protected final String TEXT_979 = "();";
+ protected final String TEXT_980 = NL + "\t\t\t";
+ protected final String TEXT_981 = NL + "\t\t\t";
+ protected final String TEXT_982 = ".";
+ protected final String TEXT_983 = ".initializeElement(";
+ protected final String TEXT_984 = "(";
+ protected final String TEXT_985 = ") ";
+ protected final String TEXT_986 = "createdDomainElement);";
+ protected final String TEXT_987 = NL;
+ protected final String TEXT_988 = NL + "\t\tif (";
+ protected final String TEXT_989 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_990 = NL + "\t\t}";
+ protected final String TEXT_991 = NL + "\t\tif (";
+ protected final String TEXT_992 = ".size() >= ";
+ protected final String TEXT_993 = ".eINSTANCE.get";
+ protected final String TEXT_994 = "().getUpperBound()) {" + NL + "\t\t\t";
protected final String TEXT_995 = NL + "\t\t}";
- protected final String TEXT_996 = NL + "\t\tif (";
- protected final String TEXT_997 = ".size() >= ";
- protected final String TEXT_998 = ".eINSTANCE.get";
- protected final String TEXT_999 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1000 = NL + "\t\t}";
- protected final String TEXT_1001 = NL + "\t\t\t";
- protected final String TEXT_1002 = " compoundCommand = new ";
- protected final String TEXT_1003 = "();" + NL + "\t\t\tcompoundCommand.append(";
- protected final String TEXT_1004 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t";
- protected final String TEXT_1005 = ".eINSTANCE.get";
- protected final String TEXT_1006 = "(), createdDomainElement));" + NL + "\t\t\tcompoundCommand.append(";
- protected final String TEXT_1007 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t";
- protected final String TEXT_1008 = ".eINSTANCE.get";
- protected final String TEXT_1009 = "(), createdDomainElement));" + NL + "\t\t\tthis.domainModelAddCommand = compoundCommand;";
- protected final String TEXT_1010 = NL + "\t\t\tthis.domainModelAddCommand = ";
+ protected final String TEXT_996 = NL;
+ protected final String TEXT_997 = NL + "\t\tif (";
+ protected final String TEXT_998 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_999 = NL + "\t\t}";
+ protected final String TEXT_1000 = NL + "\t\tif (";
+ protected final String TEXT_1001 = ".size() >= ";
+ protected final String TEXT_1002 = ".eINSTANCE.get";
+ protected final String TEXT_1003 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_1004 = NL + "\t\t}";
+ protected final String TEXT_1005 = NL + "\t\t\t";
+ protected final String TEXT_1006 = " compoundCommand = new ";
+ protected final String TEXT_1007 = "();" + NL + "\t\t\tcompoundCommand.append(";
+ protected final String TEXT_1008 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t";
+ protected final String TEXT_1009 = ".eINSTANCE.get";
+ protected final String TEXT_1010 = "(), createdDomainElement));" + NL + "\t\t\tcompoundCommand.append(";
protected final String TEXT_1011 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t";
protected final String TEXT_1012 = ".eINSTANCE.get";
- protected final String TEXT_1013 = "(), createdDomainElement);";
- protected final String TEXT_1014 = NL + "\t\t\tconstraint = constraint.union(new ";
- protected final String TEXT_1015 = "(";
- protected final String TEXT_1016 = ", ";
- protected final String TEXT_1017 = "));";
- protected final String TEXT_1018 = NL + "\t\t\tthis.notationAddCommand = new ";
- protected final String TEXT_1019 = "(parent, ";
- protected final String TEXT_1020 = "(";
- protected final String TEXT_1021 = ") ";
- protected final String TEXT_1022 = "createdDomainElement, " + NL + "\t\t\t\t";
- protected final String TEXT_1023 = "constraint";
- protected final String TEXT_1024 = "null";
- protected final String TEXT_1025 = ", ";
- protected final String TEXT_1026 = ".INSTANCE);" + NL + "\t\t\trequest.setCreatedObject(notationAddCommand.getCreatedView());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canExecute() && notationAddCommand != null && notationAddCommand.canExecute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canUndo() && notationAddCommand != null && notationAddCommand.canUndo();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tnotationAddCommand.execute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tnotationAddCommand.undo();" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}";
- protected final String TEXT_1027 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect";
- protected final String TEXT_1028 = "SourceCommand extends ";
- protected final String TEXT_1029 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1030 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1031 = " newSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1032 = " oldSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1033 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect";
- protected final String TEXT_1034 = "SourceCommand(";
- protected final String TEXT_1035 = " request) {" + NL + "\t\t\tthis((";
- protected final String TEXT_1036 = ")request.getConnectionEditPart().getModel(), (";
- protected final String TEXT_1037 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect";
+ protected final String TEXT_1013 = "(), createdDomainElement));" + NL + "\t\t\tthis.domainModelAddCommand = compoundCommand;";
+ protected final String TEXT_1014 = NL + "\t\t\tthis.domainModelAddCommand = ";
+ protected final String TEXT_1015 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t";
+ protected final String TEXT_1016 = ".eINSTANCE.get";
+ protected final String TEXT_1017 = "(), createdDomainElement);";
+ protected final String TEXT_1018 = NL + "\t\t\tconstraint = constraint.union(new ";
+ protected final String TEXT_1019 = "(";
+ protected final String TEXT_1020 = ", ";
+ protected final String TEXT_1021 = "));";
+ protected final String TEXT_1022 = NL + "\t\t\tthis.notationAddCommand = new ";
+ protected final String TEXT_1023 = "(parent, ";
+ protected final String TEXT_1024 = "(";
+ protected final String TEXT_1025 = ") ";
+ protected final String TEXT_1026 = "createdDomainElement, " + NL + "\t\t\t\t";
+ protected final String TEXT_1027 = "constraint";
+ protected final String TEXT_1028 = "null";
+ protected final String TEXT_1029 = ", ";
+ protected final String TEXT_1030 = ".INSTANCE);" + NL + "\t\t\trequest.setCreatedObject(notationAddCommand.getCreatedView());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canExecute() && notationAddCommand != null && notationAddCommand.canExecute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canUndo() && notationAddCommand != null && notationAddCommand.canUndo();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tnotationAddCommand.execute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tnotationAddCommand.undo();" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}";
+ protected final String TEXT_1031 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect";
+ protected final String TEXT_1032 = "SourceCommand extends ";
+ protected final String TEXT_1033 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1034 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1035 = " newSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1036 = " oldSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1037 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect";
protected final String TEXT_1038 = "SourceCommand(";
- protected final String TEXT_1039 = " edge, ";
- protected final String TEXT_1040 = " newSource) {" + NL + "\t\t\tthis.edge = edge;" + NL + "\t\t\tthis.newSource = newSource;" + NL + "\t\t\tthis.oldSource = edge.getSource();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\treconnectCommand.execute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn reconnectCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\treconnectCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {";
- protected final String TEXT_1041 = NL + "\t\t\tfinal boolean[] resultHolder = new boolean[1];" + NL + "\t\t\t//To validate the reconnection against constraints, the current link should be deleted. Of course, we must then undo its deletion." + NL + "\t\t\tfinal ";
- protected final String TEXT_1042 = " domainModelEditDomain = ";
- protected final String TEXT_1043 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t";
- protected final String TEXT_1044 = " command = new ";
- protected final String TEXT_1045 = "() {" + NL + "\t\t\t\tprivate ";
- protected final String TEXT_1046 = " deleteCommand = createDomainModelRemoveCommand(domainModelEditDomain);" + NL + "\t\t\t\tpublic boolean canExecute() {" + NL + "\t\t\t\t\treturn deleteCommand.canExecute();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic boolean canUndo() {" + NL + "\t\t\t\t\treturn true;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\tdeleteCommand.execute();" + NL + "\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\tresultHolder[0] = canReconnect();" + NL + "\t\t\t\t\t} finally {" + NL + "\t\t\t\t\t\tdeleteCommand.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t\tif (!command.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "\t\t\tnew ";
- protected final String TEXT_1047 = "(domainModelEditDomain, command).execute();" + NL + "\t\t\tif (resultHolder[0]) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t}" + NL + "\t\t\treturn resultHolder[0] && reconnectCommand.canExecute();";
- protected final String TEXT_1048 = NL + "\t\t\tif (canReconnect()) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t\treturn reconnectCommand.canExecute();" + NL + "\t\t\t}" + NL + "\t\t\treturn false;";
- protected final String TEXT_1049 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {";
- protected final String TEXT_1050 = NL + "\t\t\treturn false;";
- protected final String TEXT_1051 = NL + "\t\t\t";
- protected final String TEXT_1052 = " container = (";
- protected final String TEXT_1053 = ")getRelationshipContainer(newSource.getElement(), ";
- protected final String TEXT_1054 = ".eINSTANCE.get";
- protected final String TEXT_1055 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
- protected final String TEXT_1056 = NL;
- protected final String TEXT_1057 = NL + "\t\tif (";
- protected final String TEXT_1058 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_1059 = NL + "\t\t}";
- protected final String TEXT_1060 = NL + "\t\tif (";
- protected final String TEXT_1061 = ".size() >= ";
- protected final String TEXT_1062 = ".eINSTANCE.get";
- protected final String TEXT_1063 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1064 = NL + "\t\t}";
- protected final String TEXT_1065 = NL;
- protected final String TEXT_1066 = NL + "\t\tif (";
- protected final String TEXT_1067 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1039 = " request) {" + NL + "\t\t\tthis((";
+ protected final String TEXT_1040 = ")request.getConnectionEditPart().getModel(), (";
+ protected final String TEXT_1041 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect";
+ protected final String TEXT_1042 = "SourceCommand(";
+ protected final String TEXT_1043 = " edge, ";
+ protected final String TEXT_1044 = " newSource) {" + NL + "\t\t\tthis.edge = edge;" + NL + "\t\t\tthis.newSource = newSource;" + NL + "\t\t\tthis.oldSource = edge.getSource();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\treconnectCommand.execute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn reconnectCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\treconnectCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {";
+ protected final String TEXT_1045 = NL + "\t\t\tfinal boolean[] resultHolder = new boolean[1];" + NL + "\t\t\t//To validate the reconnection against constraints, the current link should be deleted. Of course, we must then undo its deletion." + NL + "\t\t\tfinal ";
+ protected final String TEXT_1046 = " domainModelEditDomain = ";
+ protected final String TEXT_1047 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t";
+ protected final String TEXT_1048 = " command = new ";
+ protected final String TEXT_1049 = "() {" + NL + "\t\t\t\tprivate ";
+ protected final String TEXT_1050 = " deleteCommand = createDomainModelRemoveCommand(domainModelEditDomain);" + NL + "\t\t\t\tpublic boolean canExecute() {" + NL + "\t\t\t\t\treturn deleteCommand.canExecute();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic boolean canUndo() {" + NL + "\t\t\t\t\treturn true;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\tdeleteCommand.execute();" + NL + "\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\tresultHolder[0] = canReconnect();" + NL + "\t\t\t\t\t} finally {" + NL + "\t\t\t\t\t\tdeleteCommand.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t\tif (!command.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "\t\t\tnew ";
+ protected final String TEXT_1051 = "(domainModelEditDomain, command).execute();" + NL + "\t\t\tif (resultHolder[0]) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t}" + NL + "\t\t\treturn resultHolder[0] && reconnectCommand.canExecute();";
+ protected final String TEXT_1052 = NL + "\t\t\tif (canReconnect()) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t\treturn reconnectCommand.canExecute();" + NL + "\t\t\t}" + NL + "\t\t\treturn false;";
+ protected final String TEXT_1053 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {";
+ protected final String TEXT_1054 = NL + "\t\t\treturn false;";
+ protected final String TEXT_1055 = NL + "\t\t\t";
+ protected final String TEXT_1056 = " container = (";
+ protected final String TEXT_1057 = ")getRelationshipContainer(newSource.getElement(), ";
+ protected final String TEXT_1058 = ".eINSTANCE.get";
+ protected final String TEXT_1059 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
+ protected final String TEXT_1060 = NL;
+ protected final String TEXT_1061 = NL + "\t\tif (";
+ protected final String TEXT_1062 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1063 = NL + "\t\t}";
+ protected final String TEXT_1064 = NL + "\t\tif (";
+ protected final String TEXT_1065 = ".size() >= ";
+ protected final String TEXT_1066 = ".eINSTANCE.get";
+ protected final String TEXT_1067 = "().getUpperBound()) {" + NL + "\t\t\t";
protected final String TEXT_1068 = NL + "\t\t}";
- protected final String TEXT_1069 = NL + "\t\tif (";
- protected final String TEXT_1070 = ".size() >= ";
- protected final String TEXT_1071 = ".eINSTANCE.get";
- protected final String TEXT_1072 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1073 = NL + "\t\t}";
- protected final String TEXT_1074 = NL;
- protected final String TEXT_1075 = NL + "\t\tif (";
- protected final String TEXT_1076 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1069 = NL;
+ protected final String TEXT_1070 = NL + "\t\tif (";
+ protected final String TEXT_1071 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1072 = NL + "\t\t}";
+ protected final String TEXT_1073 = NL + "\t\tif (";
+ protected final String TEXT_1074 = ".size() >= ";
+ protected final String TEXT_1075 = ".eINSTANCE.get";
+ protected final String TEXT_1076 = "().getUpperBound()) {" + NL + "\t\t\t";
protected final String TEXT_1077 = NL + "\t\t}";
- protected final String TEXT_1078 = NL + "\t\tif (";
- protected final String TEXT_1079 = ".size() >= ";
- protected final String TEXT_1080 = ".eINSTANCE.get";
- protected final String TEXT_1081 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1082 = NL + "\t\t}";
- protected final String TEXT_1083 = NL;
- protected final String TEXT_1084 = NL + "\t\t\tif(!";
- protected final String TEXT_1085 = ".canCreateLink(";
- protected final String TEXT_1086 = ", ";
- protected final String TEXT_1087 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
- protected final String TEXT_1088 = NL + "\t\t\treturn true;";
- protected final String TEXT_1089 = NL;
- protected final String TEXT_1090 = NL + "\t\tif (";
- protected final String TEXT_1091 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_1092 = NL + "\t\t}";
- protected final String TEXT_1093 = NL + "\t\tif (";
- protected final String TEXT_1094 = ".size() >= ";
- protected final String TEXT_1095 = ".eINSTANCE.get";
- protected final String TEXT_1096 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1097 = NL + "\t\t}";
- protected final String TEXT_1098 = NL;
- protected final String TEXT_1099 = NL + "\t\t\tif(!";
- protected final String TEXT_1100 = ".canCreateLink(";
- protected final String TEXT_1101 = ", ";
- protected final String TEXT_1102 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
- protected final String TEXT_1103 = NL + "\t\t\treturn true;";
- protected final String TEXT_1104 = NL + "\t\t\treturn false;";
- protected final String TEXT_1105 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1106 = " createReconnectCommand() {" + NL + "\t\t\t";
- protected final String TEXT_1107 = " editingDomain = ";
- protected final String TEXT_1108 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t";
- protected final String TEXT_1109 = " result = new ";
- protected final String TEXT_1110 = "();" + NL + "\t\t\tresult.append(new ";
- protected final String TEXT_1111 = "(edge, newSource));";
- protected final String TEXT_1112 = NL + "\t\t\t";
- protected final String TEXT_1113 = " container = getRelationshipContainer(newSource.getElement(), ";
- protected final String TEXT_1114 = ".eINSTANCE.get";
- protected final String TEXT_1115 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn ";
- protected final String TEXT_1116 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\t";
- protected final String TEXT_1117 = " oldContainer = edge.getElement().eContainer();" + NL + "\t\t\tif (oldContainer == null) {" + NL + "\t\t\t\treturn ";
- protected final String TEXT_1118 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tif (oldContainer != container) {";
- protected final String TEXT_1119 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1120 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), ";
- protected final String TEXT_1121 = ".eINSTANCE.get";
- protected final String TEXT_1122 = "(), edge.getElement()));";
+ protected final String TEXT_1078 = NL;
+ protected final String TEXT_1079 = NL + "\t\tif (";
+ protected final String TEXT_1080 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1081 = NL + "\t\t}";
+ protected final String TEXT_1082 = NL + "\t\tif (";
+ protected final String TEXT_1083 = ".size() >= ";
+ protected final String TEXT_1084 = ".eINSTANCE.get";
+ protected final String TEXT_1085 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_1086 = NL + "\t\t}";
+ protected final String TEXT_1087 = NL;
+ protected final String TEXT_1088 = NL + "\t\t\tif(!";
+ protected final String TEXT_1089 = ".canCreateLink(";
+ protected final String TEXT_1090 = ", ";
+ protected final String TEXT_1091 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
+ protected final String TEXT_1092 = NL + "\t\t\treturn true;";
+ protected final String TEXT_1093 = NL;
+ protected final String TEXT_1094 = NL + "\t\tif (";
+ protected final String TEXT_1095 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1096 = NL + "\t\t}";
+ protected final String TEXT_1097 = NL + "\t\tif (";
+ protected final String TEXT_1098 = ".size() >= ";
+ protected final String TEXT_1099 = ".eINSTANCE.get";
+ protected final String TEXT_1100 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_1101 = NL + "\t\t}";
+ protected final String TEXT_1102 = NL;
+ protected final String TEXT_1103 = NL + "\t\t\tif(!";
+ protected final String TEXT_1104 = ".canCreateLink(";
+ protected final String TEXT_1105 = ", ";
+ protected final String TEXT_1106 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
+ protected final String TEXT_1107 = NL + "\t\t\treturn true;";
+ protected final String TEXT_1108 = NL + "\t\t\treturn false;";
+ protected final String TEXT_1109 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1110 = " createReconnectCommand() {" + NL + "\t\t\t";
+ protected final String TEXT_1111 = " editingDomain = ";
+ protected final String TEXT_1112 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t";
+ protected final String TEXT_1113 = " result = new ";
+ protected final String TEXT_1114 = "();" + NL + "\t\t\tresult.append(new ";
+ protected final String TEXT_1115 = "(edge, newSource));";
+ protected final String TEXT_1116 = NL + "\t\t\t";
+ protected final String TEXT_1117 = " container = getRelationshipContainer(newSource.getElement(), ";
+ protected final String TEXT_1118 = ".eINSTANCE.get";
+ protected final String TEXT_1119 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn ";
+ protected final String TEXT_1120 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\t";
+ protected final String TEXT_1121 = " oldContainer = edge.getElement().eContainer();" + NL + "\t\t\tif (oldContainer == null) {" + NL + "\t\t\t\treturn ";
+ protected final String TEXT_1122 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tif (oldContainer != container) {";
protected final String TEXT_1123 = NL + "\t\t\t\tresult.append(";
protected final String TEXT_1124 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), ";
protected final String TEXT_1125 = ".eINSTANCE.get";
- protected final String TEXT_1126 = "(), ";
- protected final String TEXT_1127 = ".UNSET_VALUE));";
- protected final String TEXT_1128 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1129 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, ";
- protected final String TEXT_1130 = ".eINSTANCE.get";
- protected final String TEXT_1131 = "(), edge.getElement()));";
+ protected final String TEXT_1126 = "(), edge.getElement()));";
+ protected final String TEXT_1127 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1128 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), ";
+ protected final String TEXT_1129 = ".eINSTANCE.get";
+ protected final String TEXT_1130 = "(), ";
+ protected final String TEXT_1131 = ".UNSET_VALUE));";
protected final String TEXT_1132 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1133 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), ";
+ protected final String TEXT_1133 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, ";
protected final String TEXT_1134 = ".eINSTANCE.get";
- protected final String TEXT_1135 = "()," + NL + "\t\t\t\t\tedge.getElement()));";
+ protected final String TEXT_1135 = "(), edge.getElement()));";
protected final String TEXT_1136 = NL + "\t\t\t\tresult.append(";
protected final String TEXT_1137 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), ";
protected final String TEXT_1138 = ".eINSTANCE.get";
- protected final String TEXT_1139 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_1140 = ".UNSET_VALUE));";
- protected final String TEXT_1141 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1142 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, ";
- protected final String TEXT_1143 = ".eINSTANCE.get";
- protected final String TEXT_1144 = "(), edge.getElement()));";
- protected final String TEXT_1145 = NL + "\t\t\t}";
- protected final String TEXT_1146 = NL + "\t\t\tresult.append(";
- protected final String TEXT_1147 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), ";
- protected final String TEXT_1148 = ".eINSTANCE.get";
- protected final String TEXT_1149 = "()," + NL + "\t\t\t\toldSource.getElement()));" + NL + "\t\t\tresult.append(";
- protected final String TEXT_1150 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), ";
- protected final String TEXT_1151 = ".eINSTANCE.get";
- protected final String TEXT_1152 = "()," + NL + "\t\t\t\tnewSource.getElement()));";
- protected final String TEXT_1153 = NL + "\t\t\tresult.append(";
+ protected final String TEXT_1139 = "()," + NL + "\t\t\t\t\tedge.getElement()));";
+ protected final String TEXT_1140 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1141 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), ";
+ protected final String TEXT_1142 = ".eINSTANCE.get";
+ protected final String TEXT_1143 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1144 = ".UNSET_VALUE));";
+ protected final String TEXT_1145 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1146 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, ";
+ protected final String TEXT_1147 = ".eINSTANCE.get";
+ protected final String TEXT_1148 = "(), edge.getElement()));";
+ protected final String TEXT_1149 = NL + "\t\t\t}";
+ protected final String TEXT_1150 = NL + "\t\t\tresult.append(";
+ protected final String TEXT_1151 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), ";
+ protected final String TEXT_1152 = ".eINSTANCE.get";
+ protected final String TEXT_1153 = "()," + NL + "\t\t\t\toldSource.getElement()));" + NL + "\t\t\tresult.append(";
protected final String TEXT_1154 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), ";
protected final String TEXT_1155 = ".eINSTANCE.get";
protected final String TEXT_1156 = "()," + NL + "\t\t\t\tnewSource.getElement()));";
protected final String TEXT_1157 = NL + "\t\t\tresult.append(";
- protected final String TEXT_1158 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), ";
+ protected final String TEXT_1158 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), ";
protected final String TEXT_1159 = ".eINSTANCE.get";
- protected final String TEXT_1160 = "(), edge.getTarget().getElement()));" + NL + "\t\t\tresult.append(";
- protected final String TEXT_1161 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), ";
- protected final String TEXT_1162 = ".eINSTANCE.get";
- protected final String TEXT_1163 = "(), edge.getTarget().getElement()));";
- protected final String TEXT_1164 = NL + "\t\t\tresult.append(";
- protected final String TEXT_1165 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), ";
+ protected final String TEXT_1160 = "()," + NL + "\t\t\t\tnewSource.getElement()));";
+ protected final String TEXT_1161 = NL + "\t\t\tresult.append(";
+ protected final String TEXT_1162 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), ";
+ protected final String TEXT_1163 = ".eINSTANCE.get";
+ protected final String TEXT_1164 = "(), edge.getTarget().getElement()));" + NL + "\t\t\tresult.append(";
+ protected final String TEXT_1165 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), ";
protected final String TEXT_1166 = ".eINSTANCE.get";
- protected final String TEXT_1167 = "(), ";
- protected final String TEXT_1168 = ".UNSET_VALUE));" + NL + "\t\t\tresult.append(";
- protected final String TEXT_1169 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), ";
+ protected final String TEXT_1167 = "(), edge.getTarget().getElement()));";
+ protected final String TEXT_1168 = NL + "\t\t\tresult.append(";
+ protected final String TEXT_1169 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), ";
protected final String TEXT_1170 = ".eINSTANCE.get";
- protected final String TEXT_1171 = "(), edge.getTarget().getElement()));";
- protected final String TEXT_1172 = NL + "\t\t\treturn result;" + NL + "\t\t}" + NL;
- protected final String TEXT_1173 = NL;
- protected final String TEXT_1174 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_1175 = " getRelationshipContainer(";
- protected final String TEXT_1176 = " element, ";
- protected final String TEXT_1177 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
- protected final String TEXT_1178 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_1179 = NL;
- protected final String TEXT_1180 = NL + "\t\t\tprivate ";
- protected final String TEXT_1181 = " createDomainModelRemoveCommand(";
- protected final String TEXT_1182 = " editingDomain) {";
- protected final String TEXT_1183 = NL + "\t\t\t\t";
- protected final String TEXT_1184 = " result = new ";
- protected final String TEXT_1185 = "();";
- protected final String TEXT_1186 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1187 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1188 = ".getElement().eContainer(), ";
- protected final String TEXT_1189 = ".eINSTANCE.get";
- protected final String TEXT_1190 = "(), ";
- protected final String TEXT_1191 = ".getElement()));";
- protected final String TEXT_1192 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1193 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1194 = ".getElement().eContainer(), ";
- protected final String TEXT_1195 = ".eINSTANCE.get";
- protected final String TEXT_1196 = "(), ";
- protected final String TEXT_1197 = ".UNSET_VALUE));";
- protected final String TEXT_1198 = NL + "\t\t\t\treturn ";
- protected final String TEXT_1199 = ".INSTANCE;";
- protected final String TEXT_1200 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1201 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1202 = ".getElement().eContainer(), ";
- protected final String TEXT_1203 = ".eINSTANCE.get";
- protected final String TEXT_1204 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_1205 = ".getElement()));";
- protected final String TEXT_1206 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1207 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1208 = ".getElement().eContainer(), ";
- protected final String TEXT_1209 = ".eINSTANCE.get";
- protected final String TEXT_1210 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_1211 = ".UNSET_VALUE));";
- protected final String TEXT_1212 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1213 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1214 = ".getElement(), ";
- protected final String TEXT_1215 = ".eINSTANCE.get";
- protected final String TEXT_1216 = "(), ";
- protected final String TEXT_1217 = ".getSource().getElement()));";
- protected final String TEXT_1218 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1219 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1220 = ".getElement(), ";
- protected final String TEXT_1221 = ".eINSTANCE.get";
- protected final String TEXT_1222 = "(), ";
- protected final String TEXT_1223 = ".UNSET_VALUE));";
- protected final String TEXT_1224 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1225 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1226 = ".getElement(), ";
- protected final String TEXT_1227 = ".eINSTANCE.get";
- protected final String TEXT_1228 = "(), ";
- protected final String TEXT_1229 = ".getTarget().getElement()));";
- protected final String TEXT_1230 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1231 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1232 = ".getElement(), ";
- protected final String TEXT_1233 = ".eINSTANCE.get";
- protected final String TEXT_1234 = "(), ";
- protected final String TEXT_1235 = ".UNSET_VALUE));";
- protected final String TEXT_1236 = NL + "\t\t\t\treturn result;";
- protected final String TEXT_1237 = NL + "\t\t\t\treturn ";
- protected final String TEXT_1238 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1239 = ".getSource().getElement(), ";
- protected final String TEXT_1240 = ".eINSTANCE.get";
- protected final String TEXT_1241 = "(), ";
- protected final String TEXT_1242 = ".getTarget().getElement());";
- protected final String TEXT_1243 = NL + "\t\t\t\treturn ";
- protected final String TEXT_1244 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1245 = ".getSource().getElement(), ";
- protected final String TEXT_1246 = ".eINSTANCE.get";
- protected final String TEXT_1247 = "(), ";
- protected final String TEXT_1248 = ".UNSET_VALUE);";
- protected final String TEXT_1249 = NL + "\t\t\t}";
- protected final String TEXT_1250 = NL + "\t}" + NL;
- protected final String TEXT_1251 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create";
- protected final String TEXT_1252 = "StartCommand extends ";
- protected final String TEXT_1253 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1254 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create";
- protected final String TEXT_1255 = "StartCommand(";
- protected final String TEXT_1256 = " requestEx) {" + NL + "\t\t\t//Until the mouse button is pressed, the source of the connection is in request.getTargetEditPart(), not in request.getSourceEditPart()." + NL + "\t\t\tsource = (";
- protected final String TEXT_1257 = ")requestEx.getTargetEditPart().getModel();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn true;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {" + NL + "\t\t\tif (source == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
- protected final String TEXT_1258 = NL + "\t\t\treturn false;";
- protected final String TEXT_1259 = NL + "\t\t\t";
- protected final String TEXT_1260 = " container = (";
- protected final String TEXT_1261 = ")getRelationshipContainer(source.getElement(), ";
- protected final String TEXT_1262 = ".eINSTANCE.get";
- protected final String TEXT_1263 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
- protected final String TEXT_1264 = NL;
- protected final String TEXT_1265 = NL + "\t\tif (";
- protected final String TEXT_1266 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_1267 = NL + "\t\t}";
- protected final String TEXT_1268 = NL + "\t\tif (";
- protected final String TEXT_1269 = ".size() >= ";
- protected final String TEXT_1270 = ".eINSTANCE.get";
- protected final String TEXT_1271 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1272 = NL + "\t\t}";
- protected final String TEXT_1273 = NL;
- protected final String TEXT_1274 = NL + "\t\tif (";
- protected final String TEXT_1275 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1171 = "(), ";
+ protected final String TEXT_1172 = ".UNSET_VALUE));" + NL + "\t\t\tresult.append(";
+ protected final String TEXT_1173 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), ";
+ protected final String TEXT_1174 = ".eINSTANCE.get";
+ protected final String TEXT_1175 = "(), edge.getTarget().getElement()));";
+ protected final String TEXT_1176 = NL + "\t\t\treturn result;" + NL + "\t\t}" + NL;
+ protected final String TEXT_1177 = NL;
+ protected final String TEXT_1178 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_1179 = " getRelationshipContainer(";
+ protected final String TEXT_1180 = " element, ";
+ protected final String TEXT_1181 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
+ protected final String TEXT_1182 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_1183 = NL;
+ protected final String TEXT_1184 = NL + "\t\t\tprivate ";
+ protected final String TEXT_1185 = " createDomainModelRemoveCommand(";
+ protected final String TEXT_1186 = " editingDomain) {";
+ protected final String TEXT_1187 = NL + "\t\t\t\t";
+ protected final String TEXT_1188 = " result = new ";
+ protected final String TEXT_1189 = "();";
+ protected final String TEXT_1190 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1191 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1192 = ".getElement().eContainer(), ";
+ protected final String TEXT_1193 = ".eINSTANCE.get";
+ protected final String TEXT_1194 = "(), ";
+ protected final String TEXT_1195 = ".getElement()));";
+ protected final String TEXT_1196 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1197 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1198 = ".getElement().eContainer(), ";
+ protected final String TEXT_1199 = ".eINSTANCE.get";
+ protected final String TEXT_1200 = "(), ";
+ protected final String TEXT_1201 = ".UNSET_VALUE));";
+ protected final String TEXT_1202 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_1203 = ".INSTANCE;";
+ protected final String TEXT_1204 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1205 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1206 = ".getElement().eContainer(), ";
+ protected final String TEXT_1207 = ".eINSTANCE.get";
+ protected final String TEXT_1208 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1209 = ".getElement()));";
+ protected final String TEXT_1210 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1211 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1212 = ".getElement().eContainer(), ";
+ protected final String TEXT_1213 = ".eINSTANCE.get";
+ protected final String TEXT_1214 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1215 = ".UNSET_VALUE));";
+ protected final String TEXT_1216 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1217 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1218 = ".getElement(), ";
+ protected final String TEXT_1219 = ".eINSTANCE.get";
+ protected final String TEXT_1220 = "(), ";
+ protected final String TEXT_1221 = ".getSource().getElement()));";
+ protected final String TEXT_1222 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1223 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1224 = ".getElement(), ";
+ protected final String TEXT_1225 = ".eINSTANCE.get";
+ protected final String TEXT_1226 = "(), ";
+ protected final String TEXT_1227 = ".UNSET_VALUE));";
+ protected final String TEXT_1228 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1229 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1230 = ".getElement(), ";
+ protected final String TEXT_1231 = ".eINSTANCE.get";
+ protected final String TEXT_1232 = "(), ";
+ protected final String TEXT_1233 = ".getTarget().getElement()));";
+ protected final String TEXT_1234 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1235 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1236 = ".getElement(), ";
+ protected final String TEXT_1237 = ".eINSTANCE.get";
+ protected final String TEXT_1238 = "(), ";
+ protected final String TEXT_1239 = ".UNSET_VALUE));";
+ protected final String TEXT_1240 = NL + "\t\t\t\treturn result;";
+ protected final String TEXT_1241 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_1242 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1243 = ".getSource().getElement(), ";
+ protected final String TEXT_1244 = ".eINSTANCE.get";
+ protected final String TEXT_1245 = "(), ";
+ protected final String TEXT_1246 = ".getTarget().getElement());";
+ protected final String TEXT_1247 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_1248 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1249 = ".getSource().getElement(), ";
+ protected final String TEXT_1250 = ".eINSTANCE.get";
+ protected final String TEXT_1251 = "(), ";
+ protected final String TEXT_1252 = ".UNSET_VALUE);";
+ protected final String TEXT_1253 = NL + "\t\t\t}";
+ protected final String TEXT_1254 = NL + "\t}" + NL;
+ protected final String TEXT_1255 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create";
+ protected final String TEXT_1256 = "StartCommand extends ";
+ protected final String TEXT_1257 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1258 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create";
+ protected final String TEXT_1259 = "StartCommand(";
+ protected final String TEXT_1260 = " requestEx) {" + NL + "\t\t\t//Until the mouse button is pressed, the source of the connection is in request.getTargetEditPart(), not in request.getSourceEditPart()." + NL + "\t\t\tsource = (";
+ protected final String TEXT_1261 = ")requestEx.getTargetEditPart().getModel();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn true;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {" + NL + "\t\t\tif (source == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
+ protected final String TEXT_1262 = NL + "\t\t\treturn false;";
+ protected final String TEXT_1263 = NL + "\t\t\t";
+ protected final String TEXT_1264 = " container = (";
+ protected final String TEXT_1265 = ")getRelationshipContainer(source.getElement(), ";
+ protected final String TEXT_1266 = ".eINSTANCE.get";
+ protected final String TEXT_1267 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
+ protected final String TEXT_1268 = NL;
+ protected final String TEXT_1269 = NL + "\t\tif (";
+ protected final String TEXT_1270 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1271 = NL + "\t\t}";
+ protected final String TEXT_1272 = NL + "\t\tif (";
+ protected final String TEXT_1273 = ".size() >= ";
+ protected final String TEXT_1274 = ".eINSTANCE.get";
+ protected final String TEXT_1275 = "().getUpperBound()) {" + NL + "\t\t\t";
protected final String TEXT_1276 = NL + "\t\t}";
- protected final String TEXT_1277 = NL + "\t\tif (";
- protected final String TEXT_1278 = ".size() >= ";
- protected final String TEXT_1279 = ".eINSTANCE.get";
- protected final String TEXT_1280 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1281 = NL + "\t\t}";
- protected final String TEXT_1282 = NL;
- protected final String TEXT_1283 = NL + "\t\tif (";
- protected final String TEXT_1284 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1277 = NL;
+ protected final String TEXT_1278 = NL + "\t\tif (";
+ protected final String TEXT_1279 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1280 = NL + "\t\t}";
+ protected final String TEXT_1281 = NL + "\t\tif (";
+ protected final String TEXT_1282 = ".size() >= ";
+ protected final String TEXT_1283 = ".eINSTANCE.get";
+ protected final String TEXT_1284 = "().getUpperBound()) {" + NL + "\t\t\t";
protected final String TEXT_1285 = NL + "\t\t}";
- protected final String TEXT_1286 = NL + "\t\tif (";
- protected final String TEXT_1287 = ".size() >= ";
- protected final String TEXT_1288 = ".eINSTANCE.get";
- protected final String TEXT_1289 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1290 = NL + "\t\t}";
- protected final String TEXT_1291 = NL;
- protected final String TEXT_1292 = NL + "\t\t\tif(!";
- protected final String TEXT_1293 = ".canCreateLink(";
- protected final String TEXT_1294 = ", ";
- protected final String TEXT_1295 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
- protected final String TEXT_1296 = NL + "\t\t\treturn true;";
- protected final String TEXT_1297 = NL;
- protected final String TEXT_1298 = NL + "\t\tif (";
- protected final String TEXT_1299 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_1300 = NL + "\t\t}";
- protected final String TEXT_1301 = NL + "\t\tif (";
- protected final String TEXT_1302 = ".size() >= ";
- protected final String TEXT_1303 = ".eINSTANCE.get";
- protected final String TEXT_1304 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1305 = NL + "\t\t}";
- protected final String TEXT_1306 = NL;
- protected final String TEXT_1307 = NL + "\t\t\tif(!";
- protected final String TEXT_1308 = ".canCreateLink(";
- protected final String TEXT_1309 = ", ";
- protected final String TEXT_1310 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
- protected final String TEXT_1311 = NL + "\t\t\treturn true;";
- protected final String TEXT_1312 = NL + "\t\t\treturn false;";
- protected final String TEXT_1313 = NL + "\t\t}";
- protected final String TEXT_1314 = NL;
- protected final String TEXT_1315 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_1316 = " getRelationshipContainer(";
- protected final String TEXT_1317 = " element, ";
- protected final String TEXT_1318 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
- protected final String TEXT_1319 = NL + NL + "\t}";
- protected final String TEXT_1320 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect";
- protected final String TEXT_1321 = "TargetCommand extends ";
- protected final String TEXT_1322 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1323 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1324 = " newTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1325 = " oldTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1326 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect";
- protected final String TEXT_1327 = "TargetCommand(";
- protected final String TEXT_1328 = " request) {" + NL + "\t\t\tthis((";
- protected final String TEXT_1329 = ")request.getConnectionEditPart().getModel(), (";
- protected final String TEXT_1330 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect";
+ protected final String TEXT_1286 = NL;
+ protected final String TEXT_1287 = NL + "\t\tif (";
+ protected final String TEXT_1288 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1289 = NL + "\t\t}";
+ protected final String TEXT_1290 = NL + "\t\tif (";
+ protected final String TEXT_1291 = ".size() >= ";
+ protected final String TEXT_1292 = ".eINSTANCE.get";
+ protected final String TEXT_1293 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_1294 = NL + "\t\t}";
+ protected final String TEXT_1295 = NL;
+ protected final String TEXT_1296 = NL + "\t\t\tif(!";
+ protected final String TEXT_1297 = ".canCreateLink(";
+ protected final String TEXT_1298 = ", ";
+ protected final String TEXT_1299 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
+ protected final String TEXT_1300 = NL + "\t\t\treturn true;";
+ protected final String TEXT_1301 = NL;
+ protected final String TEXT_1302 = NL + "\t\tif (";
+ protected final String TEXT_1303 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1304 = NL + "\t\t}";
+ protected final String TEXT_1305 = NL + "\t\tif (";
+ protected final String TEXT_1306 = ".size() >= ";
+ protected final String TEXT_1307 = ".eINSTANCE.get";
+ protected final String TEXT_1308 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_1309 = NL + "\t\t}";
+ protected final String TEXT_1310 = NL;
+ protected final String TEXT_1311 = NL + "\t\t\tif(!";
+ protected final String TEXT_1312 = ".canCreateLink(";
+ protected final String TEXT_1313 = ", ";
+ protected final String TEXT_1314 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
+ protected final String TEXT_1315 = NL + "\t\t\treturn true;";
+ protected final String TEXT_1316 = NL + "\t\t\treturn false;";
+ protected final String TEXT_1317 = NL + "\t\t}";
+ protected final String TEXT_1318 = NL;
+ protected final String TEXT_1319 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_1320 = " getRelationshipContainer(";
+ protected final String TEXT_1321 = " element, ";
+ protected final String TEXT_1322 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
+ protected final String TEXT_1323 = NL + NL + "\t}";
+ protected final String TEXT_1324 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect";
+ protected final String TEXT_1325 = "TargetCommand extends ";
+ protected final String TEXT_1326 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1327 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1328 = " newTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1329 = " oldTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1330 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect";
protected final String TEXT_1331 = "TargetCommand(";
- protected final String TEXT_1332 = " edge, ";
- protected final String TEXT_1333 = " newTarget) {" + NL + "\t\t\tthis.edge = edge;" + NL + "\t\t\tthis.newTarget = newTarget;" + NL + "\t\t\tthis.oldTarget = edge.getTarget();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\treconnectCommand.execute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn reconnectCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\treconnectCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {";
- protected final String TEXT_1334 = NL + "\t\t\tfinal boolean[] resultHolder = new boolean[1];" + NL + "\t\t\t//To validate the reconnection against constraints, the current link should be deleted. Of course, we must then undo its deletion." + NL + "\t\t\tfinal ";
- protected final String TEXT_1335 = " domainModelEditDomain = ";
- protected final String TEXT_1336 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t";
- protected final String TEXT_1337 = " command = new ";
- protected final String TEXT_1338 = "() {" + NL + "\t\t\t\tprivate ";
- protected final String TEXT_1339 = " deleteCommand = createDomainModelRemoveCommand(domainModelEditDomain);" + NL + "\t\t\t\tpublic boolean canExecute() {" + NL + "\t\t\t\t\treturn deleteCommand.canExecute();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic boolean canUndo() {" + NL + "\t\t\t\t\treturn true;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\tdeleteCommand.execute();" + NL + "\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\tresultHolder[0] = canReconnect();" + NL + "\t\t\t\t\t} finally {" + NL + "\t\t\t\t\t\tdeleteCommand.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t\tif (!command.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "\t\t\tnew ";
- protected final String TEXT_1340 = "(domainModelEditDomain, command).execute();" + NL + "\t\t\tif (resultHolder[0]) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t}" + NL + "\t\t\treturn resultHolder[0] && reconnectCommand.canExecute();";
- protected final String TEXT_1341 = NL + "\t\t\tif (canReconnect()) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t\treturn reconnectCommand.canExecute();" + NL + "\t\t\t}" + NL + "\t\t\treturn false;";
- protected final String TEXT_1342 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {";
- protected final String TEXT_1343 = NL;
- protected final String TEXT_1344 = NL + "\t\tif (";
- protected final String TEXT_1345 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_1346 = NL + "\t\t}";
- protected final String TEXT_1347 = NL + "\t\tif (";
- protected final String TEXT_1348 = ".size() >= ";
- protected final String TEXT_1349 = ".eINSTANCE.get";
- protected final String TEXT_1350 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1351 = NL + "\t\t}";
- protected final String TEXT_1352 = NL;
- protected final String TEXT_1353 = NL + "\t\t\tif(!";
- protected final String TEXT_1354 = ".canCreateLink(";
- protected final String TEXT_1355 = ", ";
- protected final String TEXT_1356 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
- protected final String TEXT_1357 = NL + "\t\t\treturn true;";
- protected final String TEXT_1358 = NL;
- protected final String TEXT_1359 = NL + "\t\tif (";
- protected final String TEXT_1360 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_1361 = NL + "\t\t}";
- protected final String TEXT_1362 = NL + "\t\tif (";
- protected final String TEXT_1363 = ".size() >= ";
- protected final String TEXT_1364 = ".eINSTANCE.get";
- protected final String TEXT_1365 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1366 = NL + "\t\t}";
- protected final String TEXT_1367 = NL;
- protected final String TEXT_1368 = NL + "\t\t\tif(!";
- protected final String TEXT_1369 = ".canCreateLink(";
- protected final String TEXT_1370 = ", ";
- protected final String TEXT_1371 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
- protected final String TEXT_1372 = NL + "\t\t\treturn true;";
- protected final String TEXT_1373 = NL + "\t\t\treturn false;";
- protected final String TEXT_1374 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1375 = " createReconnectCommand() {" + NL + "\t\t\t";
- protected final String TEXT_1376 = " editingDomain = ";
- protected final String TEXT_1377 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t";
- protected final String TEXT_1378 = " result = new ";
- protected final String TEXT_1379 = "();" + NL + "\t\t\tresult.append(new ";
- protected final String TEXT_1380 = "(edge, newTarget));";
- protected final String TEXT_1381 = NL + "\t\t\tresult.append(";
- protected final String TEXT_1382 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), ";
- protected final String TEXT_1383 = ".eINSTANCE.get";
- protected final String TEXT_1384 = "()," + NL + "\t\t\t\toldTarget.getElement()));" + NL + "\t\t\tresult.append(";
- protected final String TEXT_1385 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), ";
- protected final String TEXT_1386 = ".eINSTANCE.get";
- protected final String TEXT_1387 = "()," + NL + "\t\t\t\tnewTarget.getElement()));";
- protected final String TEXT_1388 = NL + "\t\t\tresult.append(";
+ protected final String TEXT_1332 = " request) {" + NL + "\t\t\tthis((";
+ protected final String TEXT_1333 = ")request.getConnectionEditPart().getModel(), (";
+ protected final String TEXT_1334 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect";
+ protected final String TEXT_1335 = "TargetCommand(";
+ protected final String TEXT_1336 = " edge, ";
+ protected final String TEXT_1337 = " newTarget) {" + NL + "\t\t\tthis.edge = edge;" + NL + "\t\t\tthis.newTarget = newTarget;" + NL + "\t\t\tthis.oldTarget = edge.getTarget();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\treconnectCommand.execute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn reconnectCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\treconnectCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {";
+ protected final String TEXT_1338 = NL + "\t\t\tfinal boolean[] resultHolder = new boolean[1];" + NL + "\t\t\t//To validate the reconnection against constraints, the current link should be deleted. Of course, we must then undo its deletion." + NL + "\t\t\tfinal ";
+ protected final String TEXT_1339 = " domainModelEditDomain = ";
+ protected final String TEXT_1340 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t";
+ protected final String TEXT_1341 = " command = new ";
+ protected final String TEXT_1342 = "() {" + NL + "\t\t\t\tprivate ";
+ protected final String TEXT_1343 = " deleteCommand = createDomainModelRemoveCommand(domainModelEditDomain);" + NL + "\t\t\t\tpublic boolean canExecute() {" + NL + "\t\t\t\t\treturn deleteCommand.canExecute();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic boolean canUndo() {" + NL + "\t\t\t\t\treturn true;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\tdeleteCommand.execute();" + NL + "\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\tresultHolder[0] = canReconnect();" + NL + "\t\t\t\t\t} finally {" + NL + "\t\t\t\t\t\tdeleteCommand.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t\tif (!command.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "\t\t\tnew ";
+ protected final String TEXT_1344 = "(domainModelEditDomain, command).execute();" + NL + "\t\t\tif (resultHolder[0]) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t}" + NL + "\t\t\treturn resultHolder[0] && reconnectCommand.canExecute();";
+ protected final String TEXT_1345 = NL + "\t\t\tif (canReconnect()) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t\treturn reconnectCommand.canExecute();" + NL + "\t\t\t}" + NL + "\t\t\treturn false;";
+ protected final String TEXT_1346 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {";
+ protected final String TEXT_1347 = NL;
+ protected final String TEXT_1348 = NL + "\t\tif (";
+ protected final String TEXT_1349 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1350 = NL + "\t\t}";
+ protected final String TEXT_1351 = NL + "\t\tif (";
+ protected final String TEXT_1352 = ".size() >= ";
+ protected final String TEXT_1353 = ".eINSTANCE.get";
+ protected final String TEXT_1354 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_1355 = NL + "\t\t}";
+ protected final String TEXT_1356 = NL;
+ protected final String TEXT_1357 = NL + "\t\t\tif(!";
+ protected final String TEXT_1358 = ".canCreateLink(";
+ protected final String TEXT_1359 = ", ";
+ protected final String TEXT_1360 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
+ protected final String TEXT_1361 = NL + "\t\t\treturn true;";
+ protected final String TEXT_1362 = NL;
+ protected final String TEXT_1363 = NL + "\t\tif (";
+ protected final String TEXT_1364 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1365 = NL + "\t\t}";
+ protected final String TEXT_1366 = NL + "\t\tif (";
+ protected final String TEXT_1367 = ".size() >= ";
+ protected final String TEXT_1368 = ".eINSTANCE.get";
+ protected final String TEXT_1369 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_1370 = NL + "\t\t}";
+ protected final String TEXT_1371 = NL;
+ protected final String TEXT_1372 = NL + "\t\t\tif(!";
+ protected final String TEXT_1373 = ".canCreateLink(";
+ protected final String TEXT_1374 = ", ";
+ protected final String TEXT_1375 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
+ protected final String TEXT_1376 = NL + "\t\t\treturn true;";
+ protected final String TEXT_1377 = NL + "\t\t\treturn false;";
+ protected final String TEXT_1378 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1379 = " createReconnectCommand() {" + NL + "\t\t\t";
+ protected final String TEXT_1380 = " editingDomain = ";
+ protected final String TEXT_1381 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t";
+ protected final String TEXT_1382 = " result = new ";
+ protected final String TEXT_1383 = "();" + NL + "\t\t\tresult.append(new ";
+ protected final String TEXT_1384 = "(edge, newTarget));";
+ protected final String TEXT_1385 = NL + "\t\t\tresult.append(";
+ protected final String TEXT_1386 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), ";
+ protected final String TEXT_1387 = ".eINSTANCE.get";
+ protected final String TEXT_1388 = "()," + NL + "\t\t\t\toldTarget.getElement()));" + NL + "\t\t\tresult.append(";
protected final String TEXT_1389 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), ";
protected final String TEXT_1390 = ".eINSTANCE.get";
protected final String TEXT_1391 = "()," + NL + "\t\t\t\tnewTarget.getElement()));";
protected final String TEXT_1392 = NL + "\t\t\tresult.append(";
- protected final String TEXT_1393 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), ";
+ protected final String TEXT_1393 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), ";
protected final String TEXT_1394 = ".eINSTANCE.get";
- protected final String TEXT_1395 = "(), oldTarget.getElement()));" + NL + "\t\t\tresult.append(";
- protected final String TEXT_1396 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), ";
- protected final String TEXT_1397 = ".eINSTANCE.get";
- protected final String TEXT_1398 = "(), newTarget.getElement()));";
- protected final String TEXT_1399 = NL + "\t\t\tresult.append(";
+ protected final String TEXT_1395 = "()," + NL + "\t\t\t\tnewTarget.getElement()));";
+ protected final String TEXT_1396 = NL + "\t\t\tresult.append(";
+ protected final String TEXT_1397 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), ";
+ protected final String TEXT_1398 = ".eINSTANCE.get";
+ protected final String TEXT_1399 = "(), oldTarget.getElement()));" + NL + "\t\t\tresult.append(";
protected final String TEXT_1400 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), ";
protected final String TEXT_1401 = ".eINSTANCE.get";
protected final String TEXT_1402 = "(), newTarget.getElement()));";
- protected final String TEXT_1403 = NL + "\t\t\treturn result;" + NL + "\t\t}";
- protected final String TEXT_1404 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_1405 = NL;
- protected final String TEXT_1406 = NL + "\t\t\tprivate ";
- protected final String TEXT_1407 = " createDomainModelRemoveCommand(";
- protected final String TEXT_1408 = " editingDomain) {";
- protected final String TEXT_1409 = NL + "\t\t\t\t";
- protected final String TEXT_1410 = " result = new ";
- protected final String TEXT_1411 = "();";
- protected final String TEXT_1412 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1413 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1414 = ".getElement().eContainer(), ";
- protected final String TEXT_1415 = ".eINSTANCE.get";
- protected final String TEXT_1416 = "(), ";
- protected final String TEXT_1417 = ".getElement()));";
- protected final String TEXT_1418 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1419 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1420 = ".getElement().eContainer(), ";
- protected final String TEXT_1421 = ".eINSTANCE.get";
- protected final String TEXT_1422 = "(), ";
- protected final String TEXT_1423 = ".UNSET_VALUE));";
- protected final String TEXT_1424 = NL + "\t\t\t\treturn ";
- protected final String TEXT_1425 = ".INSTANCE;";
- protected final String TEXT_1426 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1427 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1428 = ".getElement().eContainer(), ";
- protected final String TEXT_1429 = ".eINSTANCE.get";
- protected final String TEXT_1430 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_1431 = ".getElement()));";
- protected final String TEXT_1432 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1433 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1434 = ".getElement().eContainer(), ";
- protected final String TEXT_1435 = ".eINSTANCE.get";
- protected final String TEXT_1436 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_1437 = ".UNSET_VALUE));";
- protected final String TEXT_1438 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1439 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1440 = ".getElement(), ";
- protected final String TEXT_1441 = ".eINSTANCE.get";
- protected final String TEXT_1442 = "(), ";
- protected final String TEXT_1443 = ".getSource().getElement()));";
- protected final String TEXT_1444 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1445 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1446 = ".getElement(), ";
- protected final String TEXT_1447 = ".eINSTANCE.get";
- protected final String TEXT_1448 = "(), ";
- protected final String TEXT_1449 = ".UNSET_VALUE));";
- protected final String TEXT_1450 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1451 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1452 = ".getElement(), ";
- protected final String TEXT_1453 = ".eINSTANCE.get";
- protected final String TEXT_1454 = "(), ";
- protected final String TEXT_1455 = ".getTarget().getElement()));";
- protected final String TEXT_1456 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1457 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1458 = ".getElement(), ";
- protected final String TEXT_1459 = ".eINSTANCE.get";
- protected final String TEXT_1460 = "(), ";
- protected final String TEXT_1461 = ".UNSET_VALUE));";
- protected final String TEXT_1462 = NL + "\t\t\t\treturn result;";
- protected final String TEXT_1463 = NL + "\t\t\t\treturn ";
- protected final String TEXT_1464 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1465 = ".getSource().getElement(), ";
- protected final String TEXT_1466 = ".eINSTANCE.get";
- protected final String TEXT_1467 = "(), ";
- protected final String TEXT_1468 = ".getTarget().getElement());";
- protected final String TEXT_1469 = NL + "\t\t\t\treturn ";
- protected final String TEXT_1470 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_1471 = ".getSource().getElement(), ";
- protected final String TEXT_1472 = ".eINSTANCE.get";
- protected final String TEXT_1473 = "(), ";
- protected final String TEXT_1474 = ".UNSET_VALUE);";
- protected final String TEXT_1475 = NL + "\t\t\t}";
- protected final String TEXT_1476 = NL + "\t}" + NL;
- protected final String TEXT_1477 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create";
- protected final String TEXT_1478 = "Command extends ";
- protected final String TEXT_1479 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final ";
- protected final String TEXT_1480 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final ";
- protected final String TEXT_1481 = " target;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final ";
- protected final String TEXT_1482 = " createdEdge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create";
- protected final String TEXT_1483 = "Command(";
- protected final String TEXT_1484 = " requestEx) {" + NL + "\t\t\tif (requestEx.getSourceEditPart().getModel() instanceof ";
- protected final String TEXT_1485 = ") {" + NL + "\t\t\t\tsource = (";
- protected final String TEXT_1486 = ")requestEx.getSourceEditPart().getModel();" + NL + "\t\t\t} else {" + NL + "\t\t\t\tsource = null;" + NL + "\t\t\t}" + NL + "\t\t\tif (requestEx.getTargetEditPart().getModel() instanceof ";
- protected final String TEXT_1487 = ") {" + NL + "\t\t\t\ttarget = (";
- protected final String TEXT_1488 = ")requestEx.getTargetEditPart().getModel();" + NL + "\t\t\t} else {" + NL + "\t\t\t\ttarget = null;" + NL + "\t\t\t}" + NL + "\t\t\tif (source == null || target == null) {" + NL + "\t\t\t\tcreatedEdge = null;" + NL + "\t\t\t\tdomainModelAddCommand = ";
- protected final String TEXT_1489 = ".INSTANCE;" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedEdge = ";
- protected final String TEXT_1490 = ".eINSTANCE.createEdge();";
- protected final String TEXT_1491 = NL + "\t\t\t";
- protected final String TEXT_1492 = " createdDomainElement = ";
- protected final String TEXT_1493 = ".eINSTANCE.create";
- protected final String TEXT_1494 = "();" + NL + "\t\t\tcreatedEdge.setElement(";
- protected final String TEXT_1495 = "(";
- protected final String TEXT_1496 = ") ";
- protected final String TEXT_1497 = "createdDomainElement);" + NL + "\t\t\t";
- protected final String TEXT_1498 = NL + "\t\t\t";
- protected final String TEXT_1499 = ".";
- protected final String TEXT_1500 = ".initializeElement(";
- protected final String TEXT_1501 = "(";
- protected final String TEXT_1502 = ") ";
- protected final String TEXT_1503 = "createdDomainElement);";
- protected final String TEXT_1504 = NL + "\t\t\tcreatedEdge.setElement(null);";
- protected final String TEXT_1505 = NL + "\t\t\t";
- protected final String TEXT_1506 = ".INSTANCE.decorateView(createdEdge);" + NL + "\t\t\t";
- protected final String TEXT_1507 = " domainModelEditDomain = ";
- protected final String TEXT_1508 = ".getEditingDomain(source.getDiagram().getElement());";
- protected final String TEXT_1509 = NL + "\t\t\torg.eclipse.emf.common.command.CompoundCommand addLinkEndsCommand = new org.eclipse.emf.common.command.CompoundCommand();";
- protected final String TEXT_1510 = NL + "\t\t\t";
- protected final String TEXT_1511 = " container = getRelationshipContainer(source.getElement(), ";
- protected final String TEXT_1512 = ".eINSTANCE.get";
- protected final String TEXT_1513 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\tdomainModelAddCommand = null;" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\taddLinkEndsCommand.append(";
- protected final String TEXT_1514 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcontainer, ";
- protected final String TEXT_1515 = ".eINSTANCE.get";
- protected final String TEXT_1516 = "(), createdDomainElement));";
- protected final String TEXT_1517 = NL + "\t\t\taddLinkEndsCommand.append(";
- protected final String TEXT_1518 = ".create(domainModelEditDomain," + NL + "\t\t\t\tcontainer, ";
+ protected final String TEXT_1403 = NL + "\t\t\tresult.append(";
+ protected final String TEXT_1404 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), ";
+ protected final String TEXT_1405 = ".eINSTANCE.get";
+ protected final String TEXT_1406 = "(), newTarget.getElement()));";
+ protected final String TEXT_1407 = NL + "\t\t\treturn result;" + NL + "\t\t}";
+ protected final String TEXT_1408 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_1409 = NL;
+ protected final String TEXT_1410 = NL + "\t\t\tprivate ";
+ protected final String TEXT_1411 = " createDomainModelRemoveCommand(";
+ protected final String TEXT_1412 = " editingDomain) {";
+ protected final String TEXT_1413 = NL + "\t\t\t\t";
+ protected final String TEXT_1414 = " result = new ";
+ protected final String TEXT_1415 = "();";
+ protected final String TEXT_1416 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1417 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1418 = ".getElement().eContainer(), ";
+ protected final String TEXT_1419 = ".eINSTANCE.get";
+ protected final String TEXT_1420 = "(), ";
+ protected final String TEXT_1421 = ".getElement()));";
+ protected final String TEXT_1422 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1423 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1424 = ".getElement().eContainer(), ";
+ protected final String TEXT_1425 = ".eINSTANCE.get";
+ protected final String TEXT_1426 = "(), ";
+ protected final String TEXT_1427 = ".UNSET_VALUE));";
+ protected final String TEXT_1428 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_1429 = ".INSTANCE;";
+ protected final String TEXT_1430 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1431 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1432 = ".getElement().eContainer(), ";
+ protected final String TEXT_1433 = ".eINSTANCE.get";
+ protected final String TEXT_1434 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1435 = ".getElement()));";
+ protected final String TEXT_1436 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1437 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1438 = ".getElement().eContainer(), ";
+ protected final String TEXT_1439 = ".eINSTANCE.get";
+ protected final String TEXT_1440 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1441 = ".UNSET_VALUE));";
+ protected final String TEXT_1442 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1443 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1444 = ".getElement(), ";
+ protected final String TEXT_1445 = ".eINSTANCE.get";
+ protected final String TEXT_1446 = "(), ";
+ protected final String TEXT_1447 = ".getSource().getElement()));";
+ protected final String TEXT_1448 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1449 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1450 = ".getElement(), ";
+ protected final String TEXT_1451 = ".eINSTANCE.get";
+ protected final String TEXT_1452 = "(), ";
+ protected final String TEXT_1453 = ".UNSET_VALUE));";
+ protected final String TEXT_1454 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1455 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1456 = ".getElement(), ";
+ protected final String TEXT_1457 = ".eINSTANCE.get";
+ protected final String TEXT_1458 = "(), ";
+ protected final String TEXT_1459 = ".getTarget().getElement()));";
+ protected final String TEXT_1460 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1461 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1462 = ".getElement(), ";
+ protected final String TEXT_1463 = ".eINSTANCE.get";
+ protected final String TEXT_1464 = "(), ";
+ protected final String TEXT_1465 = ".UNSET_VALUE));";
+ protected final String TEXT_1466 = NL + "\t\t\t\treturn result;";
+ protected final String TEXT_1467 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_1468 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1469 = ".getSource().getElement(), ";
+ protected final String TEXT_1470 = ".eINSTANCE.get";
+ protected final String TEXT_1471 = "(), ";
+ protected final String TEXT_1472 = ".getTarget().getElement());";
+ protected final String TEXT_1473 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_1474 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1475 = ".getSource().getElement(), ";
+ protected final String TEXT_1476 = ".eINSTANCE.get";
+ protected final String TEXT_1477 = "(), ";
+ protected final String TEXT_1478 = ".UNSET_VALUE);";
+ protected final String TEXT_1479 = NL + "\t\t\t}";
+ protected final String TEXT_1480 = NL + "\t}" + NL;
+ protected final String TEXT_1481 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create";
+ protected final String TEXT_1482 = "Command extends ";
+ protected final String TEXT_1483 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final ";
+ protected final String TEXT_1484 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final ";
+ protected final String TEXT_1485 = " target;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final ";
+ protected final String TEXT_1486 = " createdEdge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create";
+ protected final String TEXT_1487 = "Command(";
+ protected final String TEXT_1488 = " requestEx) {" + NL + "\t\t\tif (requestEx.getSourceEditPart().getModel() instanceof ";
+ protected final String TEXT_1489 = ") {" + NL + "\t\t\t\tsource = (";
+ protected final String TEXT_1490 = ")requestEx.getSourceEditPart().getModel();" + NL + "\t\t\t} else {" + NL + "\t\t\t\tsource = null;" + NL + "\t\t\t}" + NL + "\t\t\tif (requestEx.getTargetEditPart().getModel() instanceof ";
+ protected final String TEXT_1491 = ") {" + NL + "\t\t\t\ttarget = (";
+ protected final String TEXT_1492 = ")requestEx.getTargetEditPart().getModel();" + NL + "\t\t\t} else {" + NL + "\t\t\t\ttarget = null;" + NL + "\t\t\t}" + NL + "\t\t\tif (source == null || target == null) {" + NL + "\t\t\t\tcreatedEdge = null;" + NL + "\t\t\t\tdomainModelAddCommand = ";
+ protected final String TEXT_1493 = ".INSTANCE;" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedEdge = ";
+ protected final String TEXT_1494 = ".eINSTANCE.createEdge();";
+ protected final String TEXT_1495 = NL + "\t\t\t";
+ protected final String TEXT_1496 = " createdDomainElement = ";
+ protected final String TEXT_1497 = ".eINSTANCE.create";
+ protected final String TEXT_1498 = "();" + NL + "\t\t\tcreatedEdge.setElement(";
+ protected final String TEXT_1499 = "(";
+ protected final String TEXT_1500 = ") ";
+ protected final String TEXT_1501 = "createdDomainElement);" + NL + "\t\t\t";
+ protected final String TEXT_1502 = NL + "\t\t\t";
+ protected final String TEXT_1503 = ".";
+ protected final String TEXT_1504 = ".initializeElement(";
+ protected final String TEXT_1505 = "(";
+ protected final String TEXT_1506 = ") ";
+ protected final String TEXT_1507 = "createdDomainElement);";
+ protected final String TEXT_1508 = NL + "\t\t\tcreatedEdge.setElement(null);";
+ protected final String TEXT_1509 = NL + "\t\t\t";
+ protected final String TEXT_1510 = ".INSTANCE.decorateView(createdEdge);" + NL + "\t\t\t";
+ protected final String TEXT_1511 = " domainModelEditDomain = ";
+ protected final String TEXT_1512 = ".getEditingDomain(source.getDiagram().getElement());";
+ protected final String TEXT_1513 = NL + "\t\t\torg.eclipse.emf.common.command.CompoundCommand addLinkEndsCommand = new org.eclipse.emf.common.command.CompoundCommand();";
+ protected final String TEXT_1514 = NL + "\t\t\t";
+ protected final String TEXT_1515 = " container = getRelationshipContainer(source.getElement(), ";
+ protected final String TEXT_1516 = ".eINSTANCE.get";
+ protected final String TEXT_1517 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\tdomainModelAddCommand = null;" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\taddLinkEndsCommand.append(";
+ protected final String TEXT_1518 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcontainer, ";
protected final String TEXT_1519 = ".eINSTANCE.get";
protected final String TEXT_1520 = "(), createdDomainElement));";
- protected final String TEXT_1521 = NL;
- protected final String TEXT_1522 = NL + "\t\tif (";
- protected final String TEXT_1523 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_1524 = NL + "\t\t}";
- protected final String TEXT_1525 = NL + "\t\tif (";
- protected final String TEXT_1526 = ".size() >= ";
- protected final String TEXT_1527 = ".eINSTANCE.get";
- protected final String TEXT_1528 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1529 = NL + "\t\t}";
- protected final String TEXT_1530 = NL + "\t\t\taddLinkEndsCommand.append(";
- protected final String TEXT_1531 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, ";
- protected final String TEXT_1532 = ".eINSTANCE.get";
- protected final String TEXT_1533 = "(), source.getElement()));";
- protected final String TEXT_1534 = NL;
- protected final String TEXT_1535 = NL + "\t\tif (";
- protected final String TEXT_1536 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_1537 = NL + "\t\t}";
- protected final String TEXT_1538 = NL + "\t\tif (";
- protected final String TEXT_1539 = ".size() >= ";
- protected final String TEXT_1540 = ".eINSTANCE.get";
- protected final String TEXT_1541 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1542 = NL + "\t\t}";
- protected final String TEXT_1543 = NL;
- protected final String TEXT_1544 = NL + "\t\tif (";
- protected final String TEXT_1545 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1521 = NL + "\t\t\taddLinkEndsCommand.append(";
+ protected final String TEXT_1522 = ".create(domainModelEditDomain," + NL + "\t\t\t\tcontainer, ";
+ protected final String TEXT_1523 = ".eINSTANCE.get";
+ protected final String TEXT_1524 = "(), createdDomainElement));";
+ protected final String TEXT_1525 = NL;
+ protected final String TEXT_1526 = NL + "\t\tif (";
+ protected final String TEXT_1527 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1528 = NL + "\t\t}";
+ protected final String TEXT_1529 = NL + "\t\tif (";
+ protected final String TEXT_1530 = ".size() >= ";
+ protected final String TEXT_1531 = ".eINSTANCE.get";
+ protected final String TEXT_1532 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_1533 = NL + "\t\t}";
+ protected final String TEXT_1534 = NL + "\t\t\taddLinkEndsCommand.append(";
+ protected final String TEXT_1535 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, ";
+ protected final String TEXT_1536 = ".eINSTANCE.get";
+ protected final String TEXT_1537 = "(), source.getElement()));";
+ protected final String TEXT_1538 = NL;
+ protected final String TEXT_1539 = NL + "\t\tif (";
+ protected final String TEXT_1540 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1541 = NL + "\t\t}";
+ protected final String TEXT_1542 = NL + "\t\tif (";
+ protected final String TEXT_1543 = ".size() >= ";
+ protected final String TEXT_1544 = ".eINSTANCE.get";
+ protected final String TEXT_1545 = "().getUpperBound()) {" + NL + "\t\t\t";
protected final String TEXT_1546 = NL + "\t\t}";
- protected final String TEXT_1547 = NL + "\t\tif (";
- protected final String TEXT_1548 = ".size() >= ";
- protected final String TEXT_1549 = ".eINSTANCE.get";
- protected final String TEXT_1550 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1551 = NL + "\t\t}";
- protected final String TEXT_1552 = NL + "\t\t\taddLinkEndsCommand.append(";
- protected final String TEXT_1553 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, ";
- protected final String TEXT_1554 = ".eINSTANCE.get";
- protected final String TEXT_1555 = "(), target.getElement()));";
- protected final String TEXT_1556 = NL + "\t\tdomainModelAddCommand = addLinkEndsCommand;";
- protected final String TEXT_1557 = NL;
- protected final String TEXT_1558 = NL + "\t\tif (";
- protected final String TEXT_1559 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_1560 = NL + "\t\t}";
- protected final String TEXT_1561 = NL + "\t\tif (";
- protected final String TEXT_1562 = ".size() >= ";
- protected final String TEXT_1563 = ".eINSTANCE.get";
- protected final String TEXT_1564 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_1565 = NL + "\t\t}";
- protected final String TEXT_1566 = NL + "\t\t\tdomainModelAddCommand = ";
- protected final String TEXT_1567 = ".create(domainModelEditDomain, source.getElement(), " + NL + "\t\t\t\t";
- protected final String TEXT_1568 = ".eINSTANCE.get";
- protected final String TEXT_1569 = "(), target.getElement());";
- protected final String TEXT_1570 = NL + "\t\t}" + NL;
- protected final String TEXT_1571 = NL;
- protected final String TEXT_1572 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_1573 = " getRelationshipContainer(";
- protected final String TEXT_1574 = " element, ";
- protected final String TEXT_1575 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
- protected final String TEXT_1576 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\tif (source == null || target == null || createdEdge == null || domainModelAddCommand == null || !domainModelAddCommand.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
- protected final String TEXT_1577 = NL;
- protected final String TEXT_1578 = NL + "\t\t\tif(!";
- protected final String TEXT_1579 = ".canCreateLink(";
- protected final String TEXT_1580 = ", ";
- protected final String TEXT_1581 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
- protected final String TEXT_1582 = NL + "\t\t\treturn true;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn source != null && target != null && createdEdge != null && domainModelAddCommand != null && domainModelAddCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tsource.getDiagram().insertEdge(createdEdge);" + NL + "\t\t\tcreatedEdge.setSource(source);" + NL + "\t\t\tcreatedEdge.setTarget(target);" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t\tsource.getDiagram().removeEdge(createdEdge);" + NL + "\t\t\tcreatedEdge.setSource(null);" + NL + "\t\t\tcreatedEdge.setTarget(null);" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}";
- protected final String TEXT_1583 = NL;
- protected final String TEXT_1584 = NL;
- protected final String TEXT_1585 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class MapModeWorkaround {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic int DPtoLP(int dp) {" + NL + "\t\t\treturn dp;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static MapModeWorkaround INSTANCE = new MapModeWorkaround();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate MapModeWorkaround getMapMode() {" + NL + "\t\treturn MapModeWorkaround.INSTANCE;" + NL + "\t}";
- protected final String TEXT_1586 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class TreeEditPartAdapter extends ";
- protected final String TEXT_1587 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic TreeEditPartAdapter() {" + NL + "\t\t\tsuper(getDiagramNode(), ";
- protected final String TEXT_1588 = ".getInstance().getItemProvidersAdapterFactory());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createEditPolicies() {";
- protected final String TEXT_1589 = NL;
- protected final String TEXT_1590 = "\t\tinstallEditPolicy(";
- protected final String TEXT_1591 = ".COMPONENT_ROLE, new ";
- protected final String TEXT_1592 = "() {" + NL + "\t\t\tprotected ";
- protected final String TEXT_1593 = " createDeleteCommand(";
- protected final String TEXT_1594 = " deleteRequest) {" + NL + "\t\t\t\t";
- protected final String TEXT_1595 = " editingDomain = ";
- protected final String TEXT_1596 = ".getEditingDomain(getDiagramNode().getDiagram().getElement());" + NL + "\t\t\t\t";
- protected final String TEXT_1597 = " cc = new ";
- protected final String TEXT_1598 = "();" + NL + "\t\t\t\tcc.append(getDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append(";
- protected final String TEXT_1599 = ".create(editingDomain, getDiagramNode()));" + NL + "\t\t\t\treturn new ";
- protected final String TEXT_1600 = "(editingDomain, cc);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprivate org.eclipse.emf.common.command.Command getDomainModelRemoveCommand(";
- protected final String TEXT_1601 = " editingDomain) {";
- protected final String TEXT_1602 = NL + "\t\t\t\t";
- protected final String TEXT_1603 = " result = new ";
- protected final String TEXT_1604 = "();";
- protected final String TEXT_1605 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1606 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_1607 = ".eINSTANCE.get";
- protected final String TEXT_1608 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
+ protected final String TEXT_1547 = NL;
+ protected final String TEXT_1548 = NL + "\t\tif (";
+ protected final String TEXT_1549 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1550 = NL + "\t\t}";
+ protected final String TEXT_1551 = NL + "\t\tif (";
+ protected final String TEXT_1552 = ".size() >= ";
+ protected final String TEXT_1553 = ".eINSTANCE.get";
+ protected final String TEXT_1554 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_1555 = NL + "\t\t}";
+ protected final String TEXT_1556 = NL + "\t\t\taddLinkEndsCommand.append(";
+ protected final String TEXT_1557 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, ";
+ protected final String TEXT_1558 = ".eINSTANCE.get";
+ protected final String TEXT_1559 = "(), target.getElement()));";
+ protected final String TEXT_1560 = NL + "\t\tdomainModelAddCommand = addLinkEndsCommand;";
+ protected final String TEXT_1561 = NL;
+ protected final String TEXT_1562 = NL + "\t\tif (";
+ protected final String TEXT_1563 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_1564 = NL + "\t\t}";
+ protected final String TEXT_1565 = NL + "\t\tif (";
+ protected final String TEXT_1566 = ".size() >= ";
+ protected final String TEXT_1567 = ".eINSTANCE.get";
+ protected final String TEXT_1568 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_1569 = NL + "\t\t}";
+ protected final String TEXT_1570 = NL + "\t\t\tdomainModelAddCommand = ";
+ protected final String TEXT_1571 = ".create(domainModelEditDomain, source.getElement(), " + NL + "\t\t\t\t";
+ protected final String TEXT_1572 = ".eINSTANCE.get";
+ protected final String TEXT_1573 = "(), target.getElement());";
+ protected final String TEXT_1574 = NL + "\t\t}" + NL;
+ protected final String TEXT_1575 = NL;
+ protected final String TEXT_1576 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_1577 = " getRelationshipContainer(";
+ protected final String TEXT_1578 = " element, ";
+ protected final String TEXT_1579 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
+ protected final String TEXT_1580 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\tif (source == null || target == null || createdEdge == null || domainModelAddCommand == null || !domainModelAddCommand.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
+ protected final String TEXT_1581 = NL;
+ protected final String TEXT_1582 = NL + "\t\t\tif(!";
+ protected final String TEXT_1583 = ".canCreateLink(";
+ protected final String TEXT_1584 = ", ";
+ protected final String TEXT_1585 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}";
+ protected final String TEXT_1586 = NL + "\t\t\treturn true;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn source != null && target != null && createdEdge != null && domainModelAddCommand != null && domainModelAddCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tsource.getDiagram().insertEdge(createdEdge);" + NL + "\t\t\tcreatedEdge.setSource(source);" + NL + "\t\t\tcreatedEdge.setTarget(target);" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t\tsource.getDiagram().removeEdge(createdEdge);" + NL + "\t\t\tcreatedEdge.setSource(null);" + NL + "\t\t\tcreatedEdge.setTarget(null);" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}";
+ protected final String TEXT_1587 = NL;
+ protected final String TEXT_1588 = NL;
+ protected final String TEXT_1589 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class MapModeWorkaround {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic int DPtoLP(int dp) {" + NL + "\t\t\treturn dp;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static MapModeWorkaround INSTANCE = new MapModeWorkaround();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate MapModeWorkaround getMapMode() {" + NL + "\t\treturn MapModeWorkaround.INSTANCE;" + NL + "\t}";
+ protected final String TEXT_1590 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class TreeEditPartAdapter extends ";
+ protected final String TEXT_1591 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic TreeEditPartAdapter() {" + NL + "\t\t\tsuper(getDiagramNode(), ";
+ protected final String TEXT_1592 = ".getInstance().getItemProvidersAdapterFactory());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createEditPolicies() {";
+ protected final String TEXT_1593 = NL;
+ protected final String TEXT_1594 = "\t\tinstallEditPolicy(";
+ protected final String TEXT_1595 = ".COMPONENT_ROLE, new ";
+ protected final String TEXT_1596 = "() {" + NL + "\t\t\tprotected ";
+ protected final String TEXT_1597 = " createDeleteCommand(";
+ protected final String TEXT_1598 = " deleteRequest) {" + NL + "\t\t\t\t";
+ protected final String TEXT_1599 = " editingDomain = ";
+ protected final String TEXT_1600 = ".getEditingDomain(getDiagramNode().getDiagram().getElement());" + NL + "\t\t\t\t";
+ protected final String TEXT_1601 = " cc = new ";
+ protected final String TEXT_1602 = "();" + NL + "\t\t\t\tcc.append(getDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append(";
+ protected final String TEXT_1603 = ".create(editingDomain, getDiagramNode()));" + NL + "\t\t\t\treturn new ";
+ protected final String TEXT_1604 = "(editingDomain, cc);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprivate org.eclipse.emf.common.command.Command getDomainModelRemoveCommand(";
+ protected final String TEXT_1605 = " editingDomain) {";
+ protected final String TEXT_1606 = NL + "\t\t\t\t";
+ protected final String TEXT_1607 = " result = new ";
+ protected final String TEXT_1608 = "();";
protected final String TEXT_1609 = NL + "\t\t\t\tresult.append(";
protected final String TEXT_1610 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
protected final String TEXT_1611 = ".eINSTANCE.get";
- protected final String TEXT_1612 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_1613 = ".UNSET_VALUE));";
- protected final String TEXT_1614 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1615 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_1616 = ".eINSTANCE.get";
- protected final String TEXT_1617 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
+ protected final String TEXT_1612 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
+ protected final String TEXT_1613 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1614 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_1615 = ".eINSTANCE.get";
+ protected final String TEXT_1616 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1617 = ".UNSET_VALUE));";
protected final String TEXT_1618 = NL + "\t\t\t\tresult.append(";
protected final String TEXT_1619 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
protected final String TEXT_1620 = ".eINSTANCE.get";
- protected final String TEXT_1621 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_1622 = ".UNSET_VALUE));";
- protected final String TEXT_1623 = NL + "\t\t\t\treturn result;";
- protected final String TEXT_1624 = NL + "\t\t\t\treturn ";
- protected final String TEXT_1625 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_1626 = ".eINSTANCE.get";
- protected final String TEXT_1627 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement());";
+ protected final String TEXT_1621 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
+ protected final String TEXT_1622 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1623 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_1624 = ".eINSTANCE.get";
+ protected final String TEXT_1625 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1626 = ".UNSET_VALUE));";
+ protected final String TEXT_1627 = NL + "\t\t\t\treturn result;";
protected final String TEXT_1628 = NL + "\t\t\t\treturn ";
protected final String TEXT_1629 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
protected final String TEXT_1630 = ".eINSTANCE.get";
- protected final String TEXT_1631 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_1632 = ".UNSET_VALUE);";
- protected final String TEXT_1633 = NL + "\t\t\t}" + NL + "\t\t});";
- protected final String TEXT_1634 = NL;
- protected final String TEXT_1635 = "\t\tinstallEditPolicy(";
- protected final String TEXT_1636 = ".DIRECT_EDIT_ROLE," + NL + "\t\t\t\tnew ";
- protected final String TEXT_1637 = "() {" + NL + "\t\t\t\t\tprotected void showCurrentEditValue(";
- protected final String TEXT_1638 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tsetWidgetText(value);" + NL + "\t\t\t\t\t}";
- protected final String TEXT_1639 = NL;
- protected final String TEXT_1640 = "\t\t\t\t\tprotected ";
- protected final String TEXT_1641 = " getDirectEditCommand(";
- protected final String TEXT_1642 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tif (value == null) {" + NL + "\t\t\t\t\t\t\t//Invalid value is transformed into a null by the validator." + NL + "\t\t\t\t\t\t\t//XXX: implement validator" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_1643 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tfinal Object[] parseResult;" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tparseResult = new ";
- protected final String TEXT_1644 = "(";
- protected final String TEXT_1645 = ").parse(value);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_1646 = ".INSTANCE;" + NL + "\t\t\t\t\t\t} catch (";
- protected final String TEXT_1647 = " e) {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_1648 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_1649 = " editingDomain = ";
- protected final String TEXT_1650 = ".getEditingDomain(";
- protected final String TEXT_1651 = ".getDiagram().getElement());";
- protected final String TEXT_1652 = NL + "\t\t\t\t\t\tif (parseResult.length != ";
- protected final String TEXT_1653 = ") {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_1654 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_1655 = " domainModelCommand = createDomainModelCommand(editingDomain, parseResult);" + NL + "\t\t\t\t\t\treturn new ";
- protected final String TEXT_1656 = "(editingDomain, domainModelCommand);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t";
- protected final String TEXT_1657 = " createDomainModelCommand(";
- protected final String TEXT_1658 = " editingDomain, Object[] values) {" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_1659 = " element = ";
- protected final String TEXT_1660 = ";" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_1661 = " result = new ";
- protected final String TEXT_1662 = "();" + NL + "\t\t\t\t\t\tObject valueToSet;";
- protected final String TEXT_1663 = NL + "\t\t\t\t\t\t";
- protected final String TEXT_1664 = " ";
- protected final String TEXT_1665 = "feature = (";
- protected final String TEXT_1666 = ") ";
- protected final String TEXT_1667 = ".eINSTANCE.get";
- protected final String TEXT_1668 = "();" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tvalueToSet = ";
- protected final String TEXT_1669 = ".parseValue(feature, values[";
- protected final String TEXT_1670 = "]);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_1671 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_1672 = NL + "\t\t\t\t\t\t";
- protected final String TEXT_1673 = " ";
- protected final String TEXT_1674 = "values = new ";
- protected final String TEXT_1675 = "();" + NL + "\t\t\t\t\t\tvalues.addAll(element.get";
- protected final String TEXT_1676 = "());" + NL + "\t\t\t\t\t\tresult.append(";
- protected final String TEXT_1677 = ".create(editingDomain, element, feature, values));" + NL + "\t\t\t\t\t\tresult.append(";
- protected final String TEXT_1678 = ".create(editingDomain, element, feature, valueToSet));";
- protected final String TEXT_1679 = NL + "\t\t\t\t\t\tresult.append(";
- protected final String TEXT_1680 = ".create(editingDomain, element, feature, valueToSet));";
- protected final String TEXT_1681 = NL + "\t\t\t\t\t\treturn result;" + NL + "\t\t\t\t\t}";
- protected final String TEXT_1682 = NL + "\t\t\t\t});";
- protected final String TEXT_1683 = NL + "\t\t}" + NL;
- protected final String TEXT_1684 = NL;
- protected final String TEXT_1685 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_1686 = " manager;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest(";
- protected final String TEXT_1687 = " req) {" + NL + "\t\tif (";
- protected final String TEXT_1688 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\tperformDirectEdit();" + NL + "\t\t} else {" + NL + "\t\t\tsuper.performRequest(req);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_1689 = " getManager() {" + NL + "\t\tif (manager == null) {" + NL + "\t\t\tmanager = new ";
- protected final String TEXT_1690 = "(this, ";
- protected final String TEXT_1691 = ".class, new ";
- protected final String TEXT_1692 = "() {" + NL + "\t\t\t\tpublic void relocate(";
- protected final String TEXT_1693 = " celleditor) {" + NL + "\t\t\t\t\tif (checkTreeItem()) {" + NL + "\t\t\t\t\t\tcelleditor.getControl().setFont(((";
- protected final String TEXT_1694 = ") getWidget()).getFont());" + NL + "\t\t\t\t\t\tcelleditor.getControl().setBounds(((";
- protected final String TEXT_1695 = ") getWidget()).getBounds());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}) {" + NL + "\t\t\t\tprotected void initCellEditor() {" + NL + "\t\t\t\t\tgetCellEditor().setValue(getEditText());" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t}" + NL + "\t\treturn manager;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void performDirectEdit() {" + NL + "\t\tgetManager().show();" + NL + "\t}" + NL + "" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getEditText() {" + NL + "\t\t\t";
- protected final String TEXT_1696 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelEditText();" + NL + "\t\t\t}" + NL + "\t\t\treturn \"\";" + NL + "\t\t}" + NL;
- protected final String TEXT_1697 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void activate() {" + NL + "\t\t\tsuper.activate();" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void deactivate() {" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\t\tsuper.deactivate();" + NL + "\t\t}" + NL;
- protected final String TEXT_1698 = NL;
- protected final String TEXT_1699 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_1700 = " domainModelRefresher = new ";
- protected final String TEXT_1701 = "(this);" + NL;
- protected final String TEXT_1702 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getText() {" + NL + "\t\t\t";
- protected final String TEXT_1703 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelText();" + NL + "\t\t\t}" + NL + "\t\t\treturn super.getText();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1704 = " getPrimaryLabelEditPart() {" + NL + "\t\t\tfor(";
- protected final String TEXT_1705 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
- protected final String TEXT_1706 = " nextChild = (";
- protected final String TEXT_1707 = ")it.next();" + NL + "\t\t\t\tif (";
- protected final String TEXT_1708 = ".getVisualID(nextChild) == ";
- protected final String TEXT_1709 = ".VISUAL_ID) {" + NL + "\t\t\t\t\treturn (";
- protected final String TEXT_1710 = ") ";
- protected final String TEXT_1711 = ".this.getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
- protected final String TEXT_1712 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createRefreshers() {" + NL + "\t\t\tsuper.createRefreshers();" + NL + "\t\t\tRefresher labelRefresher = new Refresher() {" + NL + "\t\t\t\tpublic void refresh() {" + NL + "\t\t\t\t\trefreshVisuals();" + NL + "\t\t\t\t}" + NL + "\t\t\t};";
- protected final String TEXT_1713 = NL + "\t\t\tregisterRefresher(";
- protected final String TEXT_1714 = ".eINSTANCE.get";
- protected final String TEXT_1715 = "(), labelRefresher);";
- protected final String TEXT_1716 = NL + "\t\t\tregisterRefresher(";
- protected final String TEXT_1717 = ".eINSTANCE.get";
- protected final String TEXT_1718 = "(), labelRefresher);";
- protected final String TEXT_1719 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Since compartments and labels are not selectable edit parts, they are filtered from the overview as well." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_1720 = " getModelChildren() {" + NL + "\t\t\t";
- protected final String TEXT_1721 = " result = new ";
- protected final String TEXT_1722 = "();" + NL + "\t\t\tfor(";
- protected final String TEXT_1723 = " it = getDiagramNode().getVisibleChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
- protected final String TEXT_1724 = " next = (";
- protected final String TEXT_1725 = ") it.next();" + NL + "\t\t\t\tswitch (";
- protected final String TEXT_1726 = ".getVisualID(next)) {";
- protected final String TEXT_1727 = NL + "\t\t\t\tcase ";
- protected final String TEXT_1728 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tbreak;";
- protected final String TEXT_1729 = NL + "\t\t\t\tcase ";
- protected final String TEXT_1730 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.addAll(next.getChildren());" + NL + "\t\t\t\t\tbreak;";
- protected final String TEXT_1731 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tresult.addAll(getDiagramNode().getSourceEdges());" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "\t}" + NL + "}";
- protected final String TEXT_1732 = NL;
+ protected final String TEXT_1631 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement());";
+ protected final String TEXT_1632 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_1633 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_1634 = ".eINSTANCE.get";
+ protected final String TEXT_1635 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1636 = ".UNSET_VALUE);";
+ protected final String TEXT_1637 = NL + "\t\t\t}" + NL + "\t\t});";
+ protected final String TEXT_1638 = NL;
+ protected final String TEXT_1639 = "\t\tinstallEditPolicy(";
+ protected final String TEXT_1640 = ".DIRECT_EDIT_ROLE," + NL + "\t\t\t\tnew ";
+ protected final String TEXT_1641 = "() {" + NL + "\t\t\t\t\tprotected void showCurrentEditValue(";
+ protected final String TEXT_1642 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tsetWidgetText(value);" + NL + "\t\t\t\t\t}";
+ protected final String TEXT_1643 = NL;
+ protected final String TEXT_1644 = "\t\t\t\t\tprotected ";
+ protected final String TEXT_1645 = " getDirectEditCommand(";
+ protected final String TEXT_1646 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tif (value == null) {" + NL + "\t\t\t\t\t\t\t//Invalid value is transformed into a null by the validator." + NL + "\t\t\t\t\t\t\t//XXX: implement validator" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_1647 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tfinal Object[] parseResult;" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tparseResult = new ";
+ protected final String TEXT_1648 = "(";
+ protected final String TEXT_1649 = ").parse(value);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_1650 = ".INSTANCE;" + NL + "\t\t\t\t\t\t} catch (";
+ protected final String TEXT_1651 = " e) {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_1652 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1653 = " editingDomain = ";
+ protected final String TEXT_1654 = ".getEditingDomain(";
+ protected final String TEXT_1655 = ".getDiagram().getElement());";
+ protected final String TEXT_1656 = NL + "\t\t\t\t\t\tif (parseResult.length != ";
+ protected final String TEXT_1657 = ") {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_1658 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1659 = " domainModelCommand = createDomainModelCommand(editingDomain, parseResult);" + NL + "\t\t\t\t\t\treturn new ";
+ protected final String TEXT_1660 = "(editingDomain, domainModelCommand);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t";
+ protected final String TEXT_1661 = " createDomainModelCommand(";
+ protected final String TEXT_1662 = " editingDomain, Object[] values) {" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1663 = " element = ";
+ protected final String TEXT_1664 = ";" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1665 = " result = new ";
+ protected final String TEXT_1666 = "();" + NL + "\t\t\t\t\t\tObject valueToSet;";
+ protected final String TEXT_1667 = NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1668 = " ";
+ protected final String TEXT_1669 = "feature = (";
+ protected final String TEXT_1670 = ") ";
+ protected final String TEXT_1671 = ".eINSTANCE.get";
+ protected final String TEXT_1672 = "();" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tvalueToSet = ";
+ protected final String TEXT_1673 = ".parseValue(feature, values[";
+ protected final String TEXT_1674 = "]);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_1675 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_1676 = NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1677 = " ";
+ protected final String TEXT_1678 = "values = new ";
+ protected final String TEXT_1679 = "();" + NL + "\t\t\t\t\t\tvalues.addAll(element.get";
+ protected final String TEXT_1680 = "());" + NL + "\t\t\t\t\t\tresult.append(";
+ protected final String TEXT_1681 = ".create(editingDomain, element, feature, values));" + NL + "\t\t\t\t\t\tresult.append(";
+ protected final String TEXT_1682 = ".create(editingDomain, element, feature, valueToSet));";
+ protected final String TEXT_1683 = NL + "\t\t\t\t\t\tresult.append(";
+ protected final String TEXT_1684 = ".create(editingDomain, element, feature, valueToSet));";
+ protected final String TEXT_1685 = NL + "\t\t\t\t\t\treturn result;" + NL + "\t\t\t\t\t}";
+ protected final String TEXT_1686 = NL + "\t\t\t\t});";
+ protected final String TEXT_1687 = NL + "\t\t}" + NL;
+ protected final String TEXT_1688 = NL;
+ protected final String TEXT_1689 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_1690 = " manager;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest(";
+ protected final String TEXT_1691 = " req) {" + NL + "\t\tif (";
+ protected final String TEXT_1692 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\tperformDirectEdit();" + NL + "\t\t} else {" + NL + "\t\t\tsuper.performRequest(req);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_1693 = " getManager() {" + NL + "\t\tif (manager == null) {" + NL + "\t\t\tmanager = new ";
+ protected final String TEXT_1694 = "(this, ";
+ protected final String TEXT_1695 = ".class, new ";
+ protected final String TEXT_1696 = "() {" + NL + "\t\t\t\tpublic void relocate(";
+ protected final String TEXT_1697 = " celleditor) {" + NL + "\t\t\t\t\tif (checkTreeItem()) {" + NL + "\t\t\t\t\t\tcelleditor.getControl().setFont(((";
+ protected final String TEXT_1698 = ") getWidget()).getFont());" + NL + "\t\t\t\t\t\tcelleditor.getControl().setBounds(((";
+ protected final String TEXT_1699 = ") getWidget()).getBounds());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}) {" + NL + "\t\t\t\tprotected void initCellEditor() {" + NL + "\t\t\t\t\tgetCellEditor().setValue(getEditText());" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t}" + NL + "\t\treturn manager;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void performDirectEdit() {" + NL + "\t\tgetManager().show();" + NL + "\t}" + NL + "" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getEditText() {" + NL + "\t\t\t";
+ protected final String TEXT_1700 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelEditText();" + NL + "\t\t\t}" + NL + "\t\t\treturn \"\";" + NL + "\t\t}" + NL;
+ protected final String TEXT_1701 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void activate() {" + NL + "\t\t\tsuper.activate();" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void deactivate() {" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\t\tsuper.deactivate();" + NL + "\t\t}" + NL;
+ protected final String TEXT_1702 = NL;
+ protected final String TEXT_1703 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_1704 = " domainModelRefresher = new ";
+ protected final String TEXT_1705 = "(this);" + NL;
+ protected final String TEXT_1706 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getText() {" + NL + "\t\t\t";
+ protected final String TEXT_1707 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelText();" + NL + "\t\t\t}" + NL + "\t\t\treturn super.getText();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1708 = " getPrimaryLabelEditPart() {" + NL + "\t\t\tfor(";
+ protected final String TEXT_1709 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
+ protected final String TEXT_1710 = " nextChild = (";
+ protected final String TEXT_1711 = ")it.next();" + NL + "\t\t\t\tif (";
+ protected final String TEXT_1712 = ".getVisualID(nextChild) == ";
+ protected final String TEXT_1713 = ".VISUAL_ID) {" + NL + "\t\t\t\t\treturn (";
+ protected final String TEXT_1714 = ") ";
+ protected final String TEXT_1715 = ".this.getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
+ protected final String TEXT_1716 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createRefreshers() {" + NL + "\t\t\tsuper.createRefreshers();" + NL + "\t\t\tRefresher labelRefresher = new Refresher() {" + NL + "\t\t\t\tpublic void refresh() {" + NL + "\t\t\t\t\trefreshVisuals();" + NL + "\t\t\t\t}" + NL + "\t\t\t};";
+ protected final String TEXT_1717 = NL + "\t\t\tregisterRefresher(";
+ protected final String TEXT_1718 = ".eINSTANCE.get";
+ protected final String TEXT_1719 = "(), labelRefresher);";
+ protected final String TEXT_1720 = NL + "\t\t\tregisterRefresher(";
+ protected final String TEXT_1721 = ".eINSTANCE.get";
+ protected final String TEXT_1722 = "(), labelRefresher);";
+ protected final String TEXT_1723 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Since compartments and labels are not selectable edit parts, they are filtered from the overview as well." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_1724 = " getModelChildren() {" + NL + "\t\t\t";
+ protected final String TEXT_1725 = " result = new ";
+ protected final String TEXT_1726 = "();" + NL + "\t\t\tfor(";
+ protected final String TEXT_1727 = " it = getDiagramNode().getVisibleChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
+ protected final String TEXT_1728 = " next = (";
+ protected final String TEXT_1729 = ") it.next();" + NL + "\t\t\t\tswitch (";
+ protected final String TEXT_1730 = ".getVisualID(next)) {";
+ protected final String TEXT_1731 = NL + "\t\t\t\tcase ";
+ protected final String TEXT_1732 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tbreak;";
+ protected final String TEXT_1733 = NL + "\t\t\t\tcase ";
+ protected final String TEXT_1734 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.addAll(next.getChildren());" + NL + "\t\t\t\t\tbreak;";
+ protected final String TEXT_1735 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tresult.addAll(getDiagramNode().getSourceEdges());" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "\t}" + NL + "}";
+ protected final String TEXT_1736 = NL;
public String generate(Object argument)
{
@@ -3577,40 +3581,52 @@ if (myHelper.hasExternalLabels()) {
stringBuffer.append(TEXT_564);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor"));
stringBuffer.append(TEXT_565);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.TreeEditPart"));
+
+if (!genNode.getChildNodes().isEmpty() && isXYLayout) {
+
stringBuffer.append(TEXT_566);
- /*@ include file="adapters/propertySource.javajetinc"*/
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.SnapToHelper"));
stringBuffer.append(TEXT_567);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.SnapToGrid"));
+ stringBuffer.append(TEXT_568);
+
+}
+
+ stringBuffer.append(TEXT_569);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.TreeEditPart"));
+ stringBuffer.append(TEXT_570);
+ /*@ include file="adapters/propertySource.javajetinc"*/
+ stringBuffer.append(TEXT_571);
if (!genNode.getChildNodes().isEmpty()) {
- stringBuffer.append(TEXT_568);
+ stringBuffer.append(TEXT_572);
}
if (myHelper.containsLinks()) {
- stringBuffer.append(TEXT_569);
+ stringBuffer.append(TEXT_573);
}
- stringBuffer.append(TEXT_570);
+ stringBuffer.append(TEXT_574);
if (myHelper.containsLinks()) {
- stringBuffer.append(TEXT_571);
+ stringBuffer.append(TEXT_575);
}
if (!genNode.getChildNodes().isEmpty()) {
- stringBuffer.append(TEXT_572);
+ stringBuffer.append(TEXT_576);
}
- stringBuffer.append(TEXT_573);
+ stringBuffer.append(TEXT_577);
{
final String _getViewCode = "getDiagramNode()";
@@ -3620,22 +3636,22 @@ if (!genNode.getChildNodes().isEmpty()) {
final boolean isListLayout = !isXYLayout;
final List childNodes = genNode.getChildNodes();
- stringBuffer.append(TEXT_574);
- stringBuffer.append(TEXT_575);
+ stringBuffer.append(TEXT_578);
+ stringBuffer.append(TEXT_579);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_576);
+ stringBuffer.append(TEXT_580);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_577);
+ stringBuffer.append(TEXT_581);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_578);
+ stringBuffer.append(TEXT_582);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_579);
+ stringBuffer.append(TEXT_583);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_580);
+ stringBuffer.append(TEXT_584);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_581);
+ stringBuffer.append(TEXT_585);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_582);
+ stringBuffer.append(TEXT_586);
boolean hasConstraintsInChildren = false;
for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
@@ -3650,19 +3666,19 @@ for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
if (hasConstraintsInChildren) {
- stringBuffer.append(TEXT_583);
+ stringBuffer.append(TEXT_587);
stringBuffer.append(genDiagram.getVisualIDRegistryQualifiedClassName());
- stringBuffer.append(TEXT_584);
+ stringBuffer.append(TEXT_588);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_585);
+ stringBuffer.append(TEXT_589);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_586);
+ stringBuffer.append(TEXT_590);
}
- stringBuffer.append(TEXT_587);
+ stringBuffer.append(TEXT_591);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_588);
+ stringBuffer.append(TEXT_592);
{
boolean hasDeclaredFilter = false;
@@ -3681,25 +3697,25 @@ if (hasConstraintsInChildren) {
if (!hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_589);
+ stringBuffer.append(TEXT_593);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_590);
+ stringBuffer.append(TEXT_594);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_591);
+ stringBuffer.append(TEXT_595);
stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_592);
+ stringBuffer.append(TEXT_596);
stringBuffer.append(childMetaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_593);
+ stringBuffer.append(TEXT_597);
} else {
- stringBuffer.append(TEXT_594);
+ stringBuffer.append(TEXT_598);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_595);
+ stringBuffer.append(TEXT_599);
stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_596);
+ stringBuffer.append(TEXT_600);
stringBuffer.append(childMetaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_597);
+ stringBuffer.append(TEXT_601);
}
} //for
@@ -3707,22 +3723,22 @@ if (hasConstraintsInChildren) {
if (hasDeclaredFilter) {
- stringBuffer.append(TEXT_598);
+ stringBuffer.append(TEXT_602);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_599);
+ stringBuffer.append(TEXT_603);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_600);
+ stringBuffer.append(TEXT_604);
} else {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_601);
+ stringBuffer.append(TEXT_605);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_602);
+ stringBuffer.append(TEXT_606);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_603);
+ stringBuffer.append(TEXT_607);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_604);
+ stringBuffer.append(TEXT_608);
}
@@ -3731,43 +3747,43 @@ if (hasConstraintsInChildren) {
if (hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_605);
+ stringBuffer.append(TEXT_609);
} else {
- stringBuffer.append(TEXT_606);
+ stringBuffer.append(TEXT_610);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_607);
+ stringBuffer.append(TEXT_611);
}
}
if (!hasDeclaredFilter) {
- stringBuffer.append(TEXT_608);
+ stringBuffer.append(TEXT_612);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_609);
+ stringBuffer.append(TEXT_613);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_610);
+ stringBuffer.append(TEXT_614);
}
- stringBuffer.append(TEXT_611);
+ stringBuffer.append(TEXT_615);
} //local declaration of hasDeclaredFilter
- stringBuffer.append(TEXT_612);
+ stringBuffer.append(TEXT_616);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand"));
- stringBuffer.append(TEXT_613);
+ stringBuffer.append(TEXT_617);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_614);
+ stringBuffer.append(TEXT_618);
{
String _parentNode = "getHost()";
- stringBuffer.append(TEXT_615);
- stringBuffer.append(TEXT_616);
+ stringBuffer.append(TEXT_619);
+ stringBuffer.append(TEXT_620);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_617);
+ stringBuffer.append(TEXT_621);
for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
GenNode nextNode = (GenNode) it.next();
@@ -3777,15 +3793,15 @@ for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
}
String childNodeInterfaceName = importManager.getImportedName(nextNode.getDomainMetaClass().getQualifiedInterfaceName());
- stringBuffer.append(TEXT_618);
+ stringBuffer.append(TEXT_622);
stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_619);
+ stringBuffer.append(TEXT_623);
stringBuffer.append(childNodeInterfaceName);
- stringBuffer.append(TEXT_620);
+ stringBuffer.append(TEXT_624);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand"));
- stringBuffer.append(TEXT_621);
+ stringBuffer.append(TEXT_625);
stringBuffer.append(_parentNode);
- stringBuffer.append(TEXT_622);
+ stringBuffer.append(TEXT_626);
if (!isListLayout) {
int defaultWidth = 40;
@@ -3796,48 +3812,48 @@ for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
defaultHeight = defSizeAttrs.getHeight();
}
- stringBuffer.append(TEXT_623);
+ stringBuffer.append(TEXT_627);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
- stringBuffer.append(TEXT_624);
+ stringBuffer.append(TEXT_628);
stringBuffer.append(defaultWidth);
- stringBuffer.append(TEXT_625);
+ stringBuffer.append(TEXT_629);
stringBuffer.append(defaultHeight);
- stringBuffer.append(TEXT_626);
+ stringBuffer.append(TEXT_630);
} else {
- stringBuffer.append(TEXT_627);
+ stringBuffer.append(TEXT_631);
}
- stringBuffer.append(TEXT_628);
+ stringBuffer.append(TEXT_632);
stringBuffer.append(importManager.getImportedName(nextNode.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_629);
+ stringBuffer.append(TEXT_633);
}
- stringBuffer.append(TEXT_630);
+ stringBuffer.append(TEXT_634);
}
- stringBuffer.append(TEXT_631);
+ stringBuffer.append(TEXT_635);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_632);
- stringBuffer.append(TEXT_633);
+ stringBuffer.append(TEXT_636);
+ stringBuffer.append(TEXT_637);
if (childNodes.size() == 0) {
- stringBuffer.append(TEXT_634);
+ stringBuffer.append(TEXT_638);
stringBuffer.append(importManager.getImportedName("java.util.Collections"));
- stringBuffer.append(TEXT_635);
+ stringBuffer.append(TEXT_639);
} else {
- stringBuffer.append(TEXT_636);
+ stringBuffer.append(TEXT_640);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_637);
+ stringBuffer.append(TEXT_641);
stringBuffer.append(importManager.getImportedName("java.util.LinkedList"));
- stringBuffer.append(TEXT_638);
+ stringBuffer.append(TEXT_642);
Map genFeature2genNodeMap = new LinkedHashMap();
for (int nodeIndex = 0; nodeIndex < childNodes.size(); nodeIndex++) {
@@ -3855,15 +3871,15 @@ if (childNodes.size() == 0) {
Set entrySet = genFeature2genNodeMap.entrySet();
if (entrySet.size() > 0) {
- stringBuffer.append(TEXT_639);
+ stringBuffer.append(TEXT_643);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_640);
+ stringBuffer.append(TEXT_644);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_641);
+ stringBuffer.append(TEXT_645);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_642);
+ stringBuffer.append(TEXT_646);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_643);
+ stringBuffer.append(TEXT_647);
}
for (Iterator entries = entrySet.iterator(); entries.hasNext();) {
@@ -3872,127 +3888,127 @@ if (childNodes.size() == 0) {
Collection genNodesCollection = (Collection) nextEntry.getValue();
if (childMetaFeature.isListType()) {
- stringBuffer.append(TEXT_644);
+ stringBuffer.append(TEXT_648);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_645);
+ stringBuffer.append(TEXT_649);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, true);
- stringBuffer.append(TEXT_646);
+ stringBuffer.append(TEXT_650);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_647);
+ stringBuffer.append(TEXT_651);
} else {
- stringBuffer.append(TEXT_648);
+ stringBuffer.append(TEXT_652);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_649);
+ stringBuffer.append(TEXT_653);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, false);
- stringBuffer.append(TEXT_650);
+ stringBuffer.append(TEXT_654);
}
- stringBuffer.append(TEXT_651);
+ stringBuffer.append(TEXT_655);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_652);
+ stringBuffer.append(TEXT_656);
boolean generateSwitch = genNodesCollection.size() != 1;
if (generateSwitch) {
- stringBuffer.append(TEXT_653);
+ stringBuffer.append(TEXT_657);
}
for (Iterator genNodesIterator = genNodesCollection.iterator(); genNodesIterator.hasNext();) {
GenNode nextNode = (GenNode) genNodesIterator.next();
if (generateSwitch) {
- stringBuffer.append(TEXT_654);
+ stringBuffer.append(TEXT_658);
stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_655);
+ stringBuffer.append(TEXT_659);
} else {
- stringBuffer.append(TEXT_656);
+ stringBuffer.append(TEXT_660);
stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_657);
+ stringBuffer.append(TEXT_661);
}
- stringBuffer.append(TEXT_658);
+ stringBuffer.append(TEXT_662);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_659);
+ stringBuffer.append(TEXT_663);
if (generateSwitch) {
- stringBuffer.append(TEXT_660);
+ stringBuffer.append(TEXT_664);
} else {
- stringBuffer.append(TEXT_661);
+ stringBuffer.append(TEXT_665);
}
}
if (generateSwitch) {
- stringBuffer.append(TEXT_662);
+ stringBuffer.append(TEXT_666);
}
if (childMetaFeature.isListType()) {
- stringBuffer.append(TEXT_663);
+ stringBuffer.append(TEXT_667);
}
}
- stringBuffer.append(TEXT_664);
+ stringBuffer.append(TEXT_668);
}
- stringBuffer.append(TEXT_665);
+ stringBuffer.append(TEXT_669);
stringBuffer.append(genDiagram.isSynchronized());
- stringBuffer.append(TEXT_666);
+ stringBuffer.append(TEXT_670);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_667);
+ stringBuffer.append(TEXT_671);
stringBuffer.append(genDiagram.isSynchronized());
- stringBuffer.append(TEXT_668);
+ stringBuffer.append(TEXT_672);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_669);
+ stringBuffer.append(TEXT_673);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_670);
+ stringBuffer.append(TEXT_674);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher"));
- stringBuffer.append(TEXT_671);
+ stringBuffer.append(TEXT_675);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_672);
+ stringBuffer.append(TEXT_676);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_673);
+ stringBuffer.append(TEXT_677);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_674);
+ stringBuffer.append(TEXT_678);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_675);
+ stringBuffer.append(TEXT_679);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_676);
+ stringBuffer.append(TEXT_680);
}
- stringBuffer.append(TEXT_677);
+ stringBuffer.append(TEXT_681);
if (myHelper.containsLinks() || _includeUncontainedLinks) {
- stringBuffer.append(TEXT_678);
+ stringBuffer.append(TEXT_682);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_679);
+ stringBuffer.append(TEXT_683);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_680);
+ stringBuffer.append(TEXT_684);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_681);
+ stringBuffer.append(TEXT_685);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService"));
- stringBuffer.append(TEXT_682);
+ stringBuffer.append(TEXT_686);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService"));
- stringBuffer.append(TEXT_683);
+ stringBuffer.append(TEXT_687);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.EditPartRegistryBasedViewService"));
- stringBuffer.append(TEXT_684);
+ stringBuffer.append(TEXT_688);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.OwnedLinksNotationModelRefresher"));
- stringBuffer.append(TEXT_685);
+ stringBuffer.append(TEXT_689);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService"));
- stringBuffer.append(TEXT_686);
+ stringBuffer.append(TEXT_690);
boolean hasConstraintsInContainedLinks = false;
for (Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) {
@@ -4005,27 +4021,19 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
}
if (hasConstraintsInContainedLinks) {
- stringBuffer.append(TEXT_687);
+ stringBuffer.append(TEXT_691);
stringBuffer.append(genDiagram.getVisualIDRegistryQualifiedClassName());
- stringBuffer.append(TEXT_688);
+ stringBuffer.append(TEXT_692);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_689);
+ stringBuffer.append(TEXT_693);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_690);
+ stringBuffer.append(TEXT_694);
}
if (_includeUncontainedLinks) {
- stringBuffer.append(TEXT_691);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_692);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_693);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
- stringBuffer.append(TEXT_694);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
stringBuffer.append(TEXT_695);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
stringBuffer.append(TEXT_696);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
stringBuffer.append(TEXT_697);
@@ -4035,12 +4043,20 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
stringBuffer.append(TEXT_699);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
stringBuffer.append(TEXT_700);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
+ stringBuffer.append(TEXT_701);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
+ stringBuffer.append(TEXT_702);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
+ stringBuffer.append(TEXT_703);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
+ stringBuffer.append(TEXT_704);
}
- stringBuffer.append(TEXT_701);
+ stringBuffer.append(TEXT_705);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_702);
+ stringBuffer.append(TEXT_706);
{
boolean hasDeclaredFilter = false;
@@ -4053,7 +4069,7 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
}
GenFeature _feature = modelFacet.getChildMetaFeature();
- stringBuffer.append(TEXT_703);
+ stringBuffer.append(TEXT_707);
/*
* input:
@@ -4067,32 +4083,32 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
if (!hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_704);
+ stringBuffer.append(TEXT_708);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_705);
+ stringBuffer.append(TEXT_709);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_706);
+ stringBuffer.append(TEXT_710);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_707);
+ stringBuffer.append(TEXT_711);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_708);
+ stringBuffer.append(TEXT_712);
} else {
- stringBuffer.append(TEXT_709);
+ stringBuffer.append(TEXT_713);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_710);
+ stringBuffer.append(TEXT_714);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_711);
+ stringBuffer.append(TEXT_715);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_712);
+ stringBuffer.append(TEXT_716);
}
_feature = modelFacet.getSourceMetaFeature();
- stringBuffer.append(TEXT_713);
+ stringBuffer.append(TEXT_717);
/*
* input:
@@ -4106,32 +4122,32 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
if (!hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_714);
+ stringBuffer.append(TEXT_718);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_715);
+ stringBuffer.append(TEXT_719);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_716);
+ stringBuffer.append(TEXT_720);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_717);
+ stringBuffer.append(TEXT_721);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_718);
+ stringBuffer.append(TEXT_722);
} else {
- stringBuffer.append(TEXT_719);
+ stringBuffer.append(TEXT_723);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_720);
+ stringBuffer.append(TEXT_724);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_721);
+ stringBuffer.append(TEXT_725);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_722);
+ stringBuffer.append(TEXT_726);
}
_feature = modelFacet.getTargetMetaFeature();
- stringBuffer.append(TEXT_723);
+ stringBuffer.append(TEXT_727);
/*
* input:
@@ -4145,25 +4161,25 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
if (!hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_724);
+ stringBuffer.append(TEXT_728);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_725);
+ stringBuffer.append(TEXT_729);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_726);
+ stringBuffer.append(TEXT_730);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_727);
+ stringBuffer.append(TEXT_731);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_728);
+ stringBuffer.append(TEXT_732);
} else {
- stringBuffer.append(TEXT_729);
+ stringBuffer.append(TEXT_733);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_730);
+ stringBuffer.append(TEXT_734);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_731);
+ stringBuffer.append(TEXT_735);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_732);
+ stringBuffer.append(TEXT_736);
}
@@ -4173,7 +4189,7 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
GenLink nextLink = (GenLink) it.next();
GenFeature _feature = ((FeatureLinkModelFacet) nextLink.getModelFacet()).getMetaFeature();
- stringBuffer.append(TEXT_733);
+ stringBuffer.append(TEXT_737);
/*
* input:
@@ -4187,25 +4203,25 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
if (!hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_734);
+ stringBuffer.append(TEXT_738);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_735);
+ stringBuffer.append(TEXT_739);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_736);
+ stringBuffer.append(TEXT_740);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_737);
+ stringBuffer.append(TEXT_741);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_738);
+ stringBuffer.append(TEXT_742);
} else {
- stringBuffer.append(TEXT_739);
+ stringBuffer.append(TEXT_743);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_740);
+ stringBuffer.append(TEXT_744);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_741);
+ stringBuffer.append(TEXT_745);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_742);
+ stringBuffer.append(TEXT_746);
}
@@ -4214,65 +4230,65 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
if (hasConstraintsInContainedLinks) {
if (hasDeclaredFilter) {
- stringBuffer.append(TEXT_743);
+ stringBuffer.append(TEXT_747);
} else {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_744);
+ stringBuffer.append(TEXT_748);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_745);
+ stringBuffer.append(TEXT_749);
}
}
if (_includeUncontainedLinks) {
if (hasDeclaredFilter) {
- stringBuffer.append(TEXT_746);
+ stringBuffer.append(TEXT_750);
} else {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_747);
+ stringBuffer.append(TEXT_751);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_748);
+ stringBuffer.append(TEXT_752);
}
}
if (!hasDeclaredFilter) {
- stringBuffer.append(TEXT_749);
+ stringBuffer.append(TEXT_753);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_750);
+ stringBuffer.append(TEXT_754);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_751);
+ stringBuffer.append(TEXT_755);
}
} //local declaration of hasDeclaredFilter
- stringBuffer.append(TEXT_752);
+ stringBuffer.append(TEXT_756);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand"));
- stringBuffer.append(TEXT_753);
+ stringBuffer.append(TEXT_757);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_754);
+ stringBuffer.append(TEXT_758);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor"));
- stringBuffer.append(TEXT_755);
+ stringBuffer.append(TEXT_759);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor"));
- stringBuffer.append(TEXT_756);
+ stringBuffer.append(TEXT_760);
{
Iterator _containedTypeModelFacetLinks = myHelper.getContainedTypeModelFacetLinks();
Iterator _containedFeatureModelFacetLinks = myHelper.getContainedFeatureModelFacetLinks();
String _diagramCode = "getHost().getDiagram()";
- stringBuffer.append(TEXT_757);
- stringBuffer.append(TEXT_758);
+ stringBuffer.append(TEXT_761);
+ stringBuffer.append(TEXT_762);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_759);
+ stringBuffer.append(TEXT_763);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_760);
+ stringBuffer.append(TEXT_764);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IViewDecorator"));
- stringBuffer.append(TEXT_761);
+ stringBuffer.append(TEXT_765);
for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) {
GenLink nextLink = (GenLink) it.next();
@@ -4281,48 +4297,48 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
continue;
}
- stringBuffer.append(TEXT_762);
+ stringBuffer.append(TEXT_766);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_763);
+ stringBuffer.append(TEXT_767);
stringBuffer.append(importManager.getImportedName(modelFacet.getMetaClass().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_764);
+ stringBuffer.append(TEXT_768);
stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_765);
+ stringBuffer.append(TEXT_769);
}
for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) {
GenLink nextLink = (GenLink) it.next();
- stringBuffer.append(TEXT_766);
+ stringBuffer.append(TEXT_770);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_767);
+ stringBuffer.append(TEXT_771);
stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_768);
+ stringBuffer.append(TEXT_772);
}
- stringBuffer.append(TEXT_769);
+ stringBuffer.append(TEXT_773);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalEdgeCommand"));
- stringBuffer.append(TEXT_770);
+ stringBuffer.append(TEXT_774);
stringBuffer.append(_diagramCode);
- stringBuffer.append(TEXT_771);
+ stringBuffer.append(TEXT_775);
}
- stringBuffer.append(TEXT_772);
+ stringBuffer.append(TEXT_776);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_773);
+ stringBuffer.append(TEXT_777);
{
Iterator _containedTypeModelFacetLinks = myHelper.getContainedTypeModelFacetLinks();
Iterator _containedFeatureModelFacetLinks = myHelper.getContainedFeatureModelFacetLinks();
- stringBuffer.append(TEXT_774);
- stringBuffer.append(TEXT_775);
+ stringBuffer.append(TEXT_778);
+ stringBuffer.append(TEXT_779);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_776);
+ stringBuffer.append(TEXT_780);
stringBuffer.append(importManager.getImportedName("java.util.LinkedList"));
- stringBuffer.append(TEXT_777);
+ stringBuffer.append(TEXT_781);
Map genFeature2genLinkMap = new LinkedHashMap();
for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) {
@@ -4345,18 +4361,18 @@ for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) {
}
if (!genFeature2genLinkMap.isEmpty() || !genFeature2featureGenLinkMap.isEmpty()) {
- stringBuffer.append(TEXT_778);
+ stringBuffer.append(TEXT_782);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_779);
+ stringBuffer.append(TEXT_783);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_780);
+ stringBuffer.append(TEXT_784);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_781);
+ stringBuffer.append(TEXT_785);
}
if (!genFeature2genLinkMap.isEmpty()) {
- stringBuffer.append(TEXT_782);
+ stringBuffer.append(TEXT_786);
}
for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.hasNext();) {
@@ -4365,32 +4381,32 @@ for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.has
Collection genLinksCollection = (Collection) nextEntry.getValue();
if (metaFeature.isListType()) {
- stringBuffer.append(TEXT_783);
+ stringBuffer.append(TEXT_787);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_784);
+ stringBuffer.append(TEXT_788);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true);
- stringBuffer.append(TEXT_785);
+ stringBuffer.append(TEXT_789);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_786);
+ stringBuffer.append(TEXT_790);
} else {
- stringBuffer.append(TEXT_787);
+ stringBuffer.append(TEXT_791);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_788);
+ stringBuffer.append(TEXT_792);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false);
- stringBuffer.append(TEXT_789);
+ stringBuffer.append(TEXT_793);
}
- stringBuffer.append(TEXT_790);
+ stringBuffer.append(TEXT_794);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_791);
+ stringBuffer.append(TEXT_795);
boolean generateSwitch = genLinksCollection.size() != 1;
if (generateSwitch) {
- stringBuffer.append(TEXT_792);
+ stringBuffer.append(TEXT_796);
}
for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) {
@@ -4398,67 +4414,67 @@ for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.has
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet();
if (generateSwitch) {
- stringBuffer.append(TEXT_793);
+ stringBuffer.append(TEXT_797);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_794);
+ stringBuffer.append(TEXT_798);
} else {
- stringBuffer.append(TEXT_795);
+ stringBuffer.append(TEXT_799);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_796);
+ stringBuffer.append(TEXT_800);
}
if (modelFacet.getSourceMetaFeature() != null) {
- stringBuffer.append(TEXT_797);
+ stringBuffer.append(TEXT_801);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_798);
+ stringBuffer.append(TEXT_802);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_799);
+ stringBuffer.append(TEXT_803);
myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getSourceMetaFeature(), null, false);
- stringBuffer.append(TEXT_800);
+ stringBuffer.append(TEXT_804);
} else {
- stringBuffer.append(TEXT_801);
+ stringBuffer.append(TEXT_805);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_802);
+ stringBuffer.append(TEXT_806);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_803);
+ stringBuffer.append(TEXT_807);
}
if (modelFacet.getTargetMetaFeature() != null) {
- stringBuffer.append(TEXT_804);
+ stringBuffer.append(TEXT_808);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_805);
+ stringBuffer.append(TEXT_809);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_806);
+ stringBuffer.append(TEXT_810);
myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getTargetMetaFeature(), null, false);
- stringBuffer.append(TEXT_807);
+ stringBuffer.append(TEXT_811);
} else {
- stringBuffer.append(TEXT_808);
+ stringBuffer.append(TEXT_812);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_809);
+ stringBuffer.append(TEXT_813);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_810);
+ stringBuffer.append(TEXT_814);
}
- stringBuffer.append(TEXT_811);
+ stringBuffer.append(TEXT_815);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor"));
- stringBuffer.append(TEXT_812);
+ stringBuffer.append(TEXT_816);
if (generateSwitch) {
- stringBuffer.append(TEXT_813);
+ stringBuffer.append(TEXT_817);
} else {
- stringBuffer.append(TEXT_814);
+ stringBuffer.append(TEXT_818);
}
@@ -4466,12 +4482,12 @@ for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.has
} //iterate over genLinksCollection
if (generateSwitch) {
- stringBuffer.append(TEXT_815);
+ stringBuffer.append(TEXT_819);
}
if (metaFeature.isListType()) {
- stringBuffer.append(TEXT_816);
+ stringBuffer.append(TEXT_820);
}
}
@@ -4481,180 +4497,180 @@ for (Iterator entries = genFeature2featureGenLinkMap.entrySet().iterator(); entr
Collection genLinksCollection = (Collection) nextEntry.getValue();
if (metaFeature.isListType()) {
- stringBuffer.append(TEXT_817);
+ stringBuffer.append(TEXT_821);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_818);
+ stringBuffer.append(TEXT_822);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true);
- stringBuffer.append(TEXT_819);
+ stringBuffer.append(TEXT_823);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_820);
+ stringBuffer.append(TEXT_824);
} else {
- stringBuffer.append(TEXT_821);
+ stringBuffer.append(TEXT_825);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_822);
+ stringBuffer.append(TEXT_826);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false);
- stringBuffer.append(TEXT_823);
+ stringBuffer.append(TEXT_827);
}
- stringBuffer.append(TEXT_824);
+ stringBuffer.append(TEXT_828);
for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) {
GenLink nextLink = (GenLink) genLinksIterator.next();
- stringBuffer.append(TEXT_825);
+ stringBuffer.append(TEXT_829);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor"));
- stringBuffer.append(TEXT_826);
+ stringBuffer.append(TEXT_830);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_827);
+ stringBuffer.append(TEXT_831);
}
- stringBuffer.append(TEXT_828);
+ stringBuffer.append(TEXT_832);
if (metaFeature.isListType()) {
- stringBuffer.append(TEXT_829);
+ stringBuffer.append(TEXT_833);
}
}
- stringBuffer.append(TEXT_830);
+ stringBuffer.append(TEXT_834);
}
- stringBuffer.append(TEXT_831);
+ stringBuffer.append(TEXT_835);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_832);
+ stringBuffer.append(TEXT_836);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_833);
+ stringBuffer.append(TEXT_837);
stringBuffer.append(importManager.getImportedName("java.util.LinkedList"));
- stringBuffer.append(TEXT_834);
+ stringBuffer.append(TEXT_838);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_835);
+ stringBuffer.append(TEXT_839);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_836);
+ stringBuffer.append(TEXT_840);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_837);
+ stringBuffer.append(TEXT_841);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
- stringBuffer.append(TEXT_838);
+ stringBuffer.append(TEXT_842);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
- stringBuffer.append(TEXT_839);
+ stringBuffer.append(TEXT_843);
if (_includeUncontainedLinks) {
- stringBuffer.append(TEXT_840);
+ stringBuffer.append(TEXT_844);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_841);
+ stringBuffer.append(TEXT_845);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_842);
+ stringBuffer.append(TEXT_846);
}
if (myHelper.containsFeatureModelFacetLinks()) {
- stringBuffer.append(TEXT_843);
+ stringBuffer.append(TEXT_847);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_844);
+ stringBuffer.append(TEXT_848);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_845);
+ stringBuffer.append(TEXT_849);
for(Iterator it = myHelper.getContainedFeatureModelFacetLinks(); it.hasNext(); ) {
GenLink nextLink = (GenLink) it.next();
- stringBuffer.append(TEXT_846);
+ stringBuffer.append(TEXT_850);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_847);
+ stringBuffer.append(TEXT_851);
}
- stringBuffer.append(TEXT_848);
+ stringBuffer.append(TEXT_852);
if (myHelper.containsTypeModelFacetLinks()) {
- stringBuffer.append(TEXT_849);
+ stringBuffer.append(TEXT_853);
} else {
- stringBuffer.append(TEXT_850);
+ stringBuffer.append(TEXT_854);
}
}
if (myHelper.containsTypeModelFacetLinks()) {
if (!myHelper.containsFeatureModelFacetLinks()) {
- stringBuffer.append(TEXT_851);
+ stringBuffer.append(TEXT_855);
}
- stringBuffer.append(TEXT_852);
+ stringBuffer.append(TEXT_856);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_853);
+ stringBuffer.append(TEXT_857);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_854);
+ stringBuffer.append(TEXT_858);
for(Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) {
GenLink nextLink = (GenLink) it.next();
- stringBuffer.append(TEXT_855);
+ stringBuffer.append(TEXT_859);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_856);
+ stringBuffer.append(TEXT_860);
}
- stringBuffer.append(TEXT_857);
+ stringBuffer.append(TEXT_861);
}
- stringBuffer.append(TEXT_858);
+ stringBuffer.append(TEXT_862);
stringBuffer.append(genDiagram.isSynchronized());
- stringBuffer.append(TEXT_859);
+ stringBuffer.append(TEXT_863);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_860);
+ stringBuffer.append(TEXT_864);
stringBuffer.append(genDiagram.isSynchronized());
- stringBuffer.append(TEXT_861);
+ stringBuffer.append(TEXT_865);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_862);
+ stringBuffer.append(TEXT_866);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_863);
+ stringBuffer.append(TEXT_867);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher"));
- stringBuffer.append(TEXT_864);
+ stringBuffer.append(TEXT_868);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_865);
+ stringBuffer.append(TEXT_869);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_866);
+ stringBuffer.append(TEXT_870);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_867);
+ stringBuffer.append(TEXT_871);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_868);
+ stringBuffer.append(TEXT_872);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_869);
+ stringBuffer.append(TEXT_873);
}
} //end of local declarations
- stringBuffer.append(TEXT_870);
- stringBuffer.append(TEXT_871);
- stringBuffer.append(TEXT_872);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
- stringBuffer.append(TEXT_873);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
stringBuffer.append(TEXT_874);
stringBuffer.append(TEXT_875);
stringBuffer.append(TEXT_876);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
stringBuffer.append(TEXT_877);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
stringBuffer.append(TEXT_878);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
stringBuffer.append(TEXT_879);
+ stringBuffer.append(TEXT_880);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
+ stringBuffer.append(TEXT_881);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
+ stringBuffer.append(TEXT_882);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
+ stringBuffer.append(TEXT_883);
final String primaryView = "getDiagramNode()";
- stringBuffer.append(TEXT_880);
+ stringBuffer.append(TEXT_884);
boolean isFixedFontSetInFigure;
{
@@ -4662,96 +4678,90 @@ boolean isFixedFontSetInFigure;
isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont();
}
- stringBuffer.append(TEXT_881);
+ stringBuffer.append(TEXT_885);
if (!isFixedFontSetInFigure) {
- stringBuffer.append(TEXT_882);
+ stringBuffer.append(TEXT_886);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle"));
- stringBuffer.append(TEXT_883);
+ stringBuffer.append(TEXT_887);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle"));
- stringBuffer.append(TEXT_884);
+ stringBuffer.append(TEXT_888);
stringBuffer.append(primaryView);
- stringBuffer.append(TEXT_885);
+ stringBuffer.append(TEXT_889);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
- stringBuffer.append(TEXT_886);
+ stringBuffer.append(TEXT_890);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font"));
- stringBuffer.append(TEXT_887);
+ stringBuffer.append(TEXT_891);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT"));
- stringBuffer.append(TEXT_888);
+ stringBuffer.append(TEXT_892);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT"));
- stringBuffer.append(TEXT_889);
+ stringBuffer.append(TEXT_893);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT"));
- stringBuffer.append(TEXT_890);
+ stringBuffer.append(TEXT_894);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font"));
- stringBuffer.append(TEXT_891);
+ stringBuffer.append(TEXT_895);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData"));
- stringBuffer.append(TEXT_892);
+ stringBuffer.append(TEXT_896);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font"));
- stringBuffer.append(TEXT_893);
+ stringBuffer.append(TEXT_897);
}
- stringBuffer.append(TEXT_894);
+ stringBuffer.append(TEXT_898);
if (!isFixedFontSetInFigure) {
- stringBuffer.append(TEXT_895);
+ stringBuffer.append(TEXT_899);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font"));
- stringBuffer.append(TEXT_896);
+ stringBuffer.append(TEXT_900);
}
- stringBuffer.append(TEXT_897);
- stringBuffer.append(TEXT_898);
- stringBuffer.append(TEXT_899);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle"));
- stringBuffer.append(TEXT_900);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle"));
stringBuffer.append(TEXT_901);
- stringBuffer.append(primaryView);
stringBuffer.append(TEXT_902);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_903);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle"));
stringBuffer.append(TEXT_904);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle"));
stringBuffer.append(TEXT_905);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(primaryView);
stringBuffer.append(TEXT_906);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_907);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_908);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_909);
- stringBuffer.append(primaryView);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_910);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
- stringBuffer.append(TEXT_911);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(TEXT_911);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle"));
stringBuffer.append(TEXT_912);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle"));
stringBuffer.append(TEXT_913);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(primaryView);
stringBuffer.append(TEXT_914);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_915);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_916);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_917);
- stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_918);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_919);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
stringBuffer.append(TEXT_920);
- stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
stringBuffer.append(TEXT_921);
+ stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
stringBuffer.append(TEXT_922);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
stringBuffer.append(TEXT_923);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
stringBuffer.append(TEXT_924);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
stringBuffer.append(TEXT_925);
stringBuffer.append(TEXT_926);
stringBuffer.append(TEXT_927);
@@ -4759,118 +4769,124 @@ if (!isFixedFontSetInFigure) {
stringBuffer.append(TEXT_928);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_929);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_930);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_931);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_932);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_933);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_934);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_935);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_936);
stringBuffer.append(TEXT_937);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_938);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_939);
stringBuffer.append(TEXT_940);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_941);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_942);
stringBuffer.append(TEXT_943);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_944);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_945);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_946);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_947);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_948);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_949);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_950);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_951);
+ stringBuffer.append(TEXT_952);
+ stringBuffer.append(TEXT_953);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(TEXT_954);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(TEXT_955);
for(Iterator it = genNode.getChildNodes().iterator(); it.hasNext(); ) {
GenChildNode next = (GenChildNode)it.next();
boolean isStatic = true;
boolean isListLayout = !isXYLayout;
- stringBuffer.append(TEXT_952);
+ stringBuffer.append(TEXT_956);
if (genDiagram.getPalette() != null) {
- stringBuffer.append(TEXT_953);
+ stringBuffer.append(TEXT_957);
if (isStatic) {
- stringBuffer.append(TEXT_954);
+ stringBuffer.append(TEXT_958);
}
- stringBuffer.append(TEXT_955);
+ stringBuffer.append(TEXT_959);
stringBuffer.append(next.getDomainMetaClass().getName());
stringBuffer.append(next.getVisualID());
- stringBuffer.append(TEXT_956);
+ stringBuffer.append(TEXT_960);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand"));
- stringBuffer.append(TEXT_957);
+ stringBuffer.append(TEXT_961);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand"));
- stringBuffer.append(TEXT_958);
+ stringBuffer.append(TEXT_962);
stringBuffer.append(next.getDomainMetaClass().getName());
stringBuffer.append(next.getVisualID());
- stringBuffer.append(TEXT_959);
+ stringBuffer.append(TEXT_963);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_960);
+ stringBuffer.append(TEXT_964);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx"));
- stringBuffer.append(TEXT_961);
+ stringBuffer.append(TEXT_965);
if (!isListLayout) {
- stringBuffer.append(TEXT_962);
+ stringBuffer.append(TEXT_966);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
- stringBuffer.append(TEXT_963);
+ stringBuffer.append(TEXT_967);
}
- stringBuffer.append(TEXT_964);
+ stringBuffer.append(TEXT_968);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_965);
+ stringBuffer.append(TEXT_969);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_966);
+ stringBuffer.append(TEXT_970);
if (next.getDomainMetaClass().isMapEntry()) {
/*Workaround for Ecore example: map entries cannot be created using factory, only using reflective EFactory.create() method*/
- stringBuffer.append(TEXT_967);
+ stringBuffer.append(TEXT_971);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_968);
+ stringBuffer.append(TEXT_972);
stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedFactoryInterfaceName()));
- stringBuffer.append(TEXT_969);
+ stringBuffer.append(TEXT_973);
stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_970);
+ stringBuffer.append(TEXT_974);
stringBuffer.append(next.getDomainMetaClass().getClassifierAccessorName());
- stringBuffer.append(TEXT_971);
+ stringBuffer.append(TEXT_975);
} else {
- stringBuffer.append(TEXT_972);
+ stringBuffer.append(TEXT_976);
stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_973);
+ stringBuffer.append(TEXT_977);
stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedFactoryInterfaceName()));
- stringBuffer.append(TEXT_974);
+ stringBuffer.append(TEXT_978);
stringBuffer.append(next.getDomainMetaClass().getClassifierAccessorName());
- stringBuffer.append(TEXT_975);
+ stringBuffer.append(TEXT_979);
}
- stringBuffer.append(TEXT_976);
+ stringBuffer.append(TEXT_980);
/*XXX: Class name DomainElementInitializer should be user-customizable*/
- stringBuffer.append(TEXT_977);
+ stringBuffer.append(TEXT_981);
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer"));
- stringBuffer.append(TEXT_978);
+ stringBuffer.append(TEXT_982);
stringBuffer.append(next.getUniqueIdentifier());
- stringBuffer.append(TEXT_979);
+ stringBuffer.append(TEXT_983);
if (next.getDomainMetaClass().isExternalInterface()) {
- stringBuffer.append(TEXT_980);
+ stringBuffer.append(TEXT_984);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_981);
+ stringBuffer.append(TEXT_985);
}
- stringBuffer.append(TEXT_982);
+ stringBuffer.append(TEXT_986);
TypeModelFacet facet = next.getModelFacet();
GenFeature childFeature = facet.getChildMetaFeature();
@@ -4881,29 +4897,29 @@ if (genDiagram.getPalette() != null) {
String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_983);
+ stringBuffer.append(TEXT_987);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_984);
+ stringBuffer.append(TEXT_988);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_985);
+ stringBuffer.append(TEXT_989);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_986);
+ stringBuffer.append(TEXT_990);
} else {
- stringBuffer.append(TEXT_987);
+ stringBuffer.append(TEXT_991);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_988);
+ stringBuffer.append(TEXT_992);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_989);
+ stringBuffer.append(TEXT_993);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_990);
+ stringBuffer.append(TEXT_994);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_991);
+ stringBuffer.append(TEXT_995);
}
}
@@ -4916,60 +4932,60 @@ if (upperBound > 0) {
String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_992);
+ stringBuffer.append(TEXT_996);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_993);
+ stringBuffer.append(TEXT_997);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_994);
+ stringBuffer.append(TEXT_998);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_995);
+ stringBuffer.append(TEXT_999);
} else {
- stringBuffer.append(TEXT_996);
+ stringBuffer.append(TEXT_1000);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_997);
+ stringBuffer.append(TEXT_1001);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_998);
+ stringBuffer.append(TEXT_1002);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_999);
+ stringBuffer.append(TEXT_1003);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1000);
+ stringBuffer.append(TEXT_1004);
}
}
- stringBuffer.append(TEXT_1001);
+ stringBuffer.append(TEXT_1005);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1002);
+ stringBuffer.append(TEXT_1006);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1003);
+ stringBuffer.append(TEXT_1007);
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1004);
+ stringBuffer.append(TEXT_1008);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1005);
+ stringBuffer.append(TEXT_1009);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1006);
+ stringBuffer.append(TEXT_1010);
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1007);
+ stringBuffer.append(TEXT_1011);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1008);
+ stringBuffer.append(TEXT_1012);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1009);
+ stringBuffer.append(TEXT_1013);
} else {
- stringBuffer.append(TEXT_1010);
+ stringBuffer.append(TEXT_1014);
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1011);
+ stringBuffer.append(TEXT_1015);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1012);
+ stringBuffer.append(TEXT_1016);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1013);
+ stringBuffer.append(TEXT_1017);
}
@@ -4983,33 +4999,33 @@ if (upperBound > 0) {
defaultHeight = defSizeAttrs.getHeight();
}
- stringBuffer.append(TEXT_1014);
+ stringBuffer.append(TEXT_1018);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension"));
- stringBuffer.append(TEXT_1015);
+ stringBuffer.append(TEXT_1019);
stringBuffer.append(defaultWidth);
- stringBuffer.append(TEXT_1016);
+ stringBuffer.append(TEXT_1020);
stringBuffer.append(defaultHeight);
- stringBuffer.append(TEXT_1017);
+ stringBuffer.append(TEXT_1021);
}
- stringBuffer.append(TEXT_1018);
+ stringBuffer.append(TEXT_1022);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand"));
- stringBuffer.append(TEXT_1019);
+ stringBuffer.append(TEXT_1023);
if (next.getDomainMetaClass().isExternalInterface()) {
- stringBuffer.append(TEXT_1020);
+ stringBuffer.append(TEXT_1024);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1021);
+ stringBuffer.append(TEXT_1025);
}
- stringBuffer.append(TEXT_1022);
+ stringBuffer.append(TEXT_1026);
if(!isListLayout) {
- stringBuffer.append(TEXT_1023);
+ stringBuffer.append(TEXT_1027);
} else {
- stringBuffer.append(TEXT_1024);
+ stringBuffer.append(TEXT_1028);
}
- stringBuffer.append(TEXT_1025);
+ stringBuffer.append(TEXT_1029);
stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_1026);
+ stringBuffer.append(TEXT_1030);
}
@@ -5041,60 +5057,60 @@ for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) {
}
GenLinkConstraints linkConstraints = genLink.getCreationConstraints();
- stringBuffer.append(TEXT_1027);
+ stringBuffer.append(TEXT_1031);
stringBuffer.append(reconnectCommandNameInfix);
stringBuffer.append(genLink.getVisualID());
- stringBuffer.append(TEXT_1028);
+ stringBuffer.append(TEXT_1032);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand"));
- stringBuffer.append(TEXT_1029);
+ stringBuffer.append(TEXT_1033);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
- stringBuffer.append(TEXT_1030);
+ stringBuffer.append(TEXT_1034);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1031);
+ stringBuffer.append(TEXT_1035);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1032);
+ stringBuffer.append(TEXT_1036);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1033);
+ stringBuffer.append(TEXT_1037);
stringBuffer.append(reconnectCommandNameInfix);
stringBuffer.append(genLink.getVisualID());
- stringBuffer.append(TEXT_1034);
+ stringBuffer.append(TEXT_1038);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest"));
- stringBuffer.append(TEXT_1035);
+ stringBuffer.append(TEXT_1039);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
- stringBuffer.append(TEXT_1036);
+ stringBuffer.append(TEXT_1040);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1037);
+ stringBuffer.append(TEXT_1041);
stringBuffer.append(reconnectCommandNameInfix);
stringBuffer.append(genLink.getVisualID());
- stringBuffer.append(TEXT_1038);
+ stringBuffer.append(TEXT_1042);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
- stringBuffer.append(TEXT_1039);
+ stringBuffer.append(TEXT_1043);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1040);
+ stringBuffer.append(TEXT_1044);
if (linkConstraints != null) {
- stringBuffer.append(TEXT_1041);
+ stringBuffer.append(TEXT_1045);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1042);
+ stringBuffer.append(TEXT_1046);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_1043);
+ stringBuffer.append(TEXT_1047);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1044);
+ stringBuffer.append(TEXT_1048);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand"));
- stringBuffer.append(TEXT_1045);
+ stringBuffer.append(TEXT_1049);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1046);
+ stringBuffer.append(TEXT_1050);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_1047);
+ stringBuffer.append(TEXT_1051);
} else {
- stringBuffer.append(TEXT_1048);
+ stringBuffer.append(TEXT_1052);
}
- stringBuffer.append(TEXT_1049);
+ stringBuffer.append(TEXT_1053);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet();
@@ -5102,19 +5118,19 @@ for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) {
GenFeature childFeature = modelFacet.getChildMetaFeature();
if (containmentFeature == null) {
- stringBuffer.append(TEXT_1050);
+ stringBuffer.append(TEXT_1054);
} else {
- stringBuffer.append(TEXT_1051);
+ stringBuffer.append(TEXT_1055);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_1052);
+ stringBuffer.append(TEXT_1056);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_1053);
+ stringBuffer.append(TEXT_1057);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1054);
+ stringBuffer.append(TEXT_1058);
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName());
- stringBuffer.append(TEXT_1055);
+ stringBuffer.append(TEXT_1059);
{
GenFeature _feature = containmentFeature;
@@ -5122,29 +5138,29 @@ for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = containmentFeature.getGenClass();
- stringBuffer.append(TEXT_1056);
+ stringBuffer.append(TEXT_1060);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1057);
+ stringBuffer.append(TEXT_1061);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1058);
+ stringBuffer.append(TEXT_1062);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1059);
+ stringBuffer.append(TEXT_1063);
} else {
- stringBuffer.append(TEXT_1060);
+ stringBuffer.append(TEXT_1064);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1061);
+ stringBuffer.append(TEXT_1065);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1062);
+ stringBuffer.append(TEXT_1066);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1063);
+ stringBuffer.append(TEXT_1067);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1064);
+ stringBuffer.append(TEXT_1068);
}
}
@@ -5158,29 +5174,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = containmentFeature.getGenClass();
- stringBuffer.append(TEXT_1065);
+ stringBuffer.append(TEXT_1069);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1066);
+ stringBuffer.append(TEXT_1070);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1067);
+ stringBuffer.append(TEXT_1071);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1068);
+ stringBuffer.append(TEXT_1072);
} else {
- stringBuffer.append(TEXT_1069);
+ stringBuffer.append(TEXT_1073);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1070);
+ stringBuffer.append(TEXT_1074);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1071);
+ stringBuffer.append(TEXT_1075);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1072);
+ stringBuffer.append(TEXT_1076);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1073);
+ stringBuffer.append(TEXT_1077);
}
}
@@ -5199,29 +5215,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_1074);
+ stringBuffer.append(TEXT_1078);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1075);
+ stringBuffer.append(TEXT_1079);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1076);
+ stringBuffer.append(TEXT_1080);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1077);
+ stringBuffer.append(TEXT_1081);
} else {
- stringBuffer.append(TEXT_1078);
+ stringBuffer.append(TEXT_1082);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1079);
+ stringBuffer.append(TEXT_1083);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1080);
+ stringBuffer.append(TEXT_1084);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1081);
+ stringBuffer.append(TEXT_1085);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1082);
+ stringBuffer.append(TEXT_1086);
}
}
@@ -5232,24 +5248,24 @@ if (upperBound > 0) {
String _source = "newSource.getElement()";
String _target = "edge.getTarget().getElement()";
- stringBuffer.append(TEXT_1083);
+ stringBuffer.append(TEXT_1087);
if (linkConstraints != null) {
- stringBuffer.append(TEXT_1084);
+ stringBuffer.append(TEXT_1088);
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName());
- stringBuffer.append(TEXT_1085);
+ stringBuffer.append(TEXT_1089);
stringBuffer.append(_source);
- stringBuffer.append(TEXT_1086);
+ stringBuffer.append(TEXT_1090);
stringBuffer.append(_target);
- stringBuffer.append(TEXT_1087);
+ stringBuffer.append(TEXT_1091);
}
} //local declarations for linkConstraints.jetinc
- stringBuffer.append(TEXT_1088);
+ stringBuffer.append(TEXT_1092);
} else if (genLink.getModelFacet() instanceof FeatureLinkModelFacet) {
GenFeature metaFeature = ((FeatureLinkModelFacet) genLink.getModelFacet()).getMetaFeature();
@@ -5259,29 +5275,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_1089);
+ stringBuffer.append(TEXT_1093);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1090);
+ stringBuffer.append(TEXT_1094);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1091);
+ stringBuffer.append(TEXT_1095);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1092);
+ stringBuffer.append(TEXT_1096);
} else {
- stringBuffer.append(TEXT_1093);
+ stringBuffer.append(TEXT_1097);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1094);
+ stringBuffer.append(TEXT_1098);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1095);
+ stringBuffer.append(TEXT_1099);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1096);
+ stringBuffer.append(TEXT_1100);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1097);
+ stringBuffer.append(TEXT_1101);
}
}
@@ -5292,44 +5308,44 @@ if (upperBound > 0) {
String _source = "newSource.getElement()";
String _target = "edge.getTarget().getElement()";
- stringBuffer.append(TEXT_1098);
+ stringBuffer.append(TEXT_1102);
if (linkConstraints != null) {
- stringBuffer.append(TEXT_1099);
+ stringBuffer.append(TEXT_1103);
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName());
- stringBuffer.append(TEXT_1100);
+ stringBuffer.append(TEXT_1104);
stringBuffer.append(_source);
- stringBuffer.append(TEXT_1101);
+ stringBuffer.append(TEXT_1105);
stringBuffer.append(_target);
- stringBuffer.append(TEXT_1102);
+ stringBuffer.append(TEXT_1106);
}
} //local declarations for linkConstraints.jetinc
- stringBuffer.append(TEXT_1103);
+ stringBuffer.append(TEXT_1107);
} else {
- stringBuffer.append(TEXT_1104);
+ stringBuffer.append(TEXT_1108);
}
- stringBuffer.append(TEXT_1105);
+ stringBuffer.append(TEXT_1109);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1106);
+ stringBuffer.append(TEXT_1110);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1107);
+ stringBuffer.append(TEXT_1111);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_1108);
+ stringBuffer.append(TEXT_1112);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1109);
+ stringBuffer.append(TEXT_1113);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1110);
+ stringBuffer.append(TEXT_1114);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.ReconnectNotationalEdgeSourceCommand"));
- stringBuffer.append(TEXT_1111);
+ stringBuffer.append(TEXT_1115);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet();
@@ -5348,118 +5364,118 @@ if (upperBound > 0) {
}
if (containmentFeature != null || setChild) {
- stringBuffer.append(TEXT_1112);
+ stringBuffer.append(TEXT_1116);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1113);
+ stringBuffer.append(TEXT_1117);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1114);
+ stringBuffer.append(TEXT_1118);
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName());
- stringBuffer.append(TEXT_1115);
+ stringBuffer.append(TEXT_1119);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand"));
- stringBuffer.append(TEXT_1116);
+ stringBuffer.append(TEXT_1120);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1117);
+ stringBuffer.append(TEXT_1121);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand"));
- stringBuffer.append(TEXT_1118);
+ stringBuffer.append(TEXT_1122);
}
if (containmentFeature != null) {
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1119);
+ stringBuffer.append(TEXT_1123);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1120);
+ stringBuffer.append(TEXT_1124);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1121);
+ stringBuffer.append(TEXT_1125);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1122);
+ stringBuffer.append(TEXT_1126);
} else {
- stringBuffer.append(TEXT_1123);
+ stringBuffer.append(TEXT_1127);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1124);
+ stringBuffer.append(TEXT_1128);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1125);
+ stringBuffer.append(TEXT_1129);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1126);
+ stringBuffer.append(TEXT_1130);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1127);
+ stringBuffer.append(TEXT_1131);
}
- stringBuffer.append(TEXT_1128);
+ stringBuffer.append(TEXT_1132);
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1129);
+ stringBuffer.append(TEXT_1133);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1130);
+ stringBuffer.append(TEXT_1134);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1131);
+ stringBuffer.append(TEXT_1135);
}
if (setChild) {
if (childFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1132);
+ stringBuffer.append(TEXT_1136);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1133);
+ stringBuffer.append(TEXT_1137);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1134);
+ stringBuffer.append(TEXT_1138);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1135);
+ stringBuffer.append(TEXT_1139);
} else {
- stringBuffer.append(TEXT_1136);
+ stringBuffer.append(TEXT_1140);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1137);
+ stringBuffer.append(TEXT_1141);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1138);
+ stringBuffer.append(TEXT_1142);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1139);
+ stringBuffer.append(TEXT_1143);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1140);
+ stringBuffer.append(TEXT_1144);
}
- stringBuffer.append(TEXT_1141);
+ stringBuffer.append(TEXT_1145);
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1142);
+ stringBuffer.append(TEXT_1146);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1143);
+ stringBuffer.append(TEXT_1147);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1144);
+ stringBuffer.append(TEXT_1148);
}
- stringBuffer.append(TEXT_1145);
+ stringBuffer.append(TEXT_1149);
if (setSource) {
if (sourceFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1146);
+ stringBuffer.append(TEXT_1150);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1147);
+ stringBuffer.append(TEXT_1151);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1148);
+ stringBuffer.append(TEXT_1152);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1149);
+ stringBuffer.append(TEXT_1153);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand"));
- stringBuffer.append(TEXT_1150);
+ stringBuffer.append(TEXT_1154);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1151);
+ stringBuffer.append(TEXT_1155);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1152);
+ stringBuffer.append(TEXT_1156);
} else {
- stringBuffer.append(TEXT_1153);
+ stringBuffer.append(TEXT_1157);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1154);
+ stringBuffer.append(TEXT_1158);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1155);
+ stringBuffer.append(TEXT_1159);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1156);
+ stringBuffer.append(TEXT_1160);
}
}
@@ -5467,30 +5483,22 @@ if (upperBound > 0) {
GenFeature metaFeature = ((FeatureLinkModelFacet) genLink.getModelFacet()).getMetaFeature();
if (metaFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1157);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1158);
- stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1159);
- stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1160);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand"));
stringBuffer.append(TEXT_1161);
- stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
stringBuffer.append(TEXT_1162);
- stringBuffer.append(metaFeature.getFeatureAccessorName());
+ stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
stringBuffer.append(TEXT_1163);
-
- } else {
-
+ stringBuffer.append(metaFeature.getFeatureAccessorName());
stringBuffer.append(TEXT_1164);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand"));
stringBuffer.append(TEXT_1165);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
stringBuffer.append(TEXT_1166);
stringBuffer.append(metaFeature.getFeatureAccessorName());
stringBuffer.append(TEXT_1167);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
+
+ } else {
+
stringBuffer.append(TEXT_1168);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
stringBuffer.append(TEXT_1169);
@@ -5498,22 +5506,30 @@ if (upperBound > 0) {
stringBuffer.append(TEXT_1170);
stringBuffer.append(metaFeature.getFeatureAccessorName());
stringBuffer.append(TEXT_1171);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
+ stringBuffer.append(TEXT_1172);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
+ stringBuffer.append(TEXT_1173);
+ stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
+ stringBuffer.append(TEXT_1174);
+ stringBuffer.append(metaFeature.getFeatureAccessorName());
+ stringBuffer.append(TEXT_1175);
}
}
- stringBuffer.append(TEXT_1172);
- stringBuffer.append(TEXT_1173);
+ stringBuffer.append(TEXT_1176);
+ stringBuffer.append(TEXT_1177);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
- stringBuffer.append(TEXT_1174);
+ stringBuffer.append(TEXT_1178);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1175);
+ stringBuffer.append(TEXT_1179);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1176);
+ stringBuffer.append(TEXT_1180);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass"));
- stringBuffer.append(TEXT_1177);
+ stringBuffer.append(TEXT_1181);
}
@@ -5521,16 +5537,16 @@ if (upperBound > 0) {
if (linkConstraints != null) {
String _edge = "edge";
- stringBuffer.append(TEXT_1178);
- stringBuffer.append(TEXT_1179);
+ stringBuffer.append(TEXT_1182);
+ stringBuffer.append(TEXT_1183);
//input: _edge : String
- stringBuffer.append(TEXT_1180);
+ stringBuffer.append(TEXT_1184);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1181);
+ stringBuffer.append(TEXT_1185);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1182);
+ stringBuffer.append(TEXT_1186);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet();
@@ -5557,221 +5573,221 @@ if (upperBound > 0) {
}
}
- stringBuffer.append(TEXT_1183);
+ stringBuffer.append(TEXT_1187);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1184);
+ stringBuffer.append(TEXT_1188);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1185);
+ stringBuffer.append(TEXT_1189);
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1186);
+ stringBuffer.append(TEXT_1190);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1187);
+ stringBuffer.append(TEXT_1191);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1188);
+ stringBuffer.append(TEXT_1192);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1189);
+ stringBuffer.append(TEXT_1193);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1190);
+ stringBuffer.append(TEXT_1194);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1191);
+ stringBuffer.append(TEXT_1195);
} else {
- stringBuffer.append(TEXT_1192);
+ stringBuffer.append(TEXT_1196);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1193);
+ stringBuffer.append(TEXT_1197);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1194);
+ stringBuffer.append(TEXT_1198);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1195);
+ stringBuffer.append(TEXT_1199);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1196);
+ stringBuffer.append(TEXT_1200);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1197);
+ stringBuffer.append(TEXT_1201);
}
} else {
- stringBuffer.append(TEXT_1198);
+ stringBuffer.append(TEXT_1202);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand"));
- stringBuffer.append(TEXT_1199);
+ stringBuffer.append(TEXT_1203);
}
if (removeChild) {
if (childFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1200);
+ stringBuffer.append(TEXT_1204);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1201);
+ stringBuffer.append(TEXT_1205);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1202);
+ stringBuffer.append(TEXT_1206);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1203);
+ stringBuffer.append(TEXT_1207);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1204);
+ stringBuffer.append(TEXT_1208);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1205);
+ stringBuffer.append(TEXT_1209);
} else {
- stringBuffer.append(TEXT_1206);
+ stringBuffer.append(TEXT_1210);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1207);
+ stringBuffer.append(TEXT_1211);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1208);
+ stringBuffer.append(TEXT_1212);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1209);
+ stringBuffer.append(TEXT_1213);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1210);
+ stringBuffer.append(TEXT_1214);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1211);
+ stringBuffer.append(TEXT_1215);
}
}
if (removeSource) {
if (sourceFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1212);
+ stringBuffer.append(TEXT_1216);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1213);
+ stringBuffer.append(TEXT_1217);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1214);
+ stringBuffer.append(TEXT_1218);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1215);
+ stringBuffer.append(TEXT_1219);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1216);
+ stringBuffer.append(TEXT_1220);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1217);
+ stringBuffer.append(TEXT_1221);
} else {
- stringBuffer.append(TEXT_1218);
+ stringBuffer.append(TEXT_1222);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1219);
+ stringBuffer.append(TEXT_1223);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1220);
+ stringBuffer.append(TEXT_1224);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1221);
+ stringBuffer.append(TEXT_1225);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1222);
+ stringBuffer.append(TEXT_1226);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1223);
+ stringBuffer.append(TEXT_1227);
}
}
if (removeTarget) {
if (targetFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1224);
+ stringBuffer.append(TEXT_1228);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1225);
+ stringBuffer.append(TEXT_1229);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1226);
+ stringBuffer.append(TEXT_1230);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1227);
+ stringBuffer.append(TEXT_1231);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1228);
+ stringBuffer.append(TEXT_1232);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1229);
+ stringBuffer.append(TEXT_1233);
} else {
- stringBuffer.append(TEXT_1230);
+ stringBuffer.append(TEXT_1234);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1231);
+ stringBuffer.append(TEXT_1235);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1232);
+ stringBuffer.append(TEXT_1236);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1233);
+ stringBuffer.append(TEXT_1237);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1234);
+ stringBuffer.append(TEXT_1238);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1235);
+ stringBuffer.append(TEXT_1239);
}
}
- stringBuffer.append(TEXT_1236);
+ stringBuffer.append(TEXT_1240);
} else if (genLink.getModelFacet() instanceof FeatureLinkModelFacet) {
GenFeature metaFeature = ((FeatureLinkModelFacet) genLink.getModelFacet()).getMetaFeature();
if (metaFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1237);
+ stringBuffer.append(TEXT_1241);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1238);
+ stringBuffer.append(TEXT_1242);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1239);
+ stringBuffer.append(TEXT_1243);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1240);
+ stringBuffer.append(TEXT_1244);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1241);
+ stringBuffer.append(TEXT_1245);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1242);
+ stringBuffer.append(TEXT_1246);
} else {
- stringBuffer.append(TEXT_1243);
+ stringBuffer.append(TEXT_1247);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1244);
+ stringBuffer.append(TEXT_1248);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1245);
+ stringBuffer.append(TEXT_1249);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1246);
+ stringBuffer.append(TEXT_1250);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1247);
+ stringBuffer.append(TEXT_1251);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1248);
+ stringBuffer.append(TEXT_1252);
}
}
- stringBuffer.append(TEXT_1249);
+ stringBuffer.append(TEXT_1253);
}
- stringBuffer.append(TEXT_1250);
+ stringBuffer.append(TEXT_1254);
if (palette != null) {
- stringBuffer.append(TEXT_1251);
+ stringBuffer.append(TEXT_1255);
stringBuffer.append(createCommandNameInfix);
stringBuffer.append(genLink.getVisualID());
- stringBuffer.append(TEXT_1252);
+ stringBuffer.append(TEXT_1256);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand"));
- stringBuffer.append(TEXT_1253);
+ stringBuffer.append(TEXT_1257);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1254);
+ stringBuffer.append(TEXT_1258);
stringBuffer.append(createCommandNameInfix);
stringBuffer.append(genLink.getVisualID());
- stringBuffer.append(TEXT_1255);
+ stringBuffer.append(TEXT_1259);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
- stringBuffer.append(TEXT_1256);
+ stringBuffer.append(TEXT_1260);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1257);
+ stringBuffer.append(TEXT_1261);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet();
GenFeature containmentFeature = modelFacet.getContainmentMetaFeature();
if (containmentFeature == null) {
- stringBuffer.append(TEXT_1258);
+ stringBuffer.append(TEXT_1262);
} else {
- stringBuffer.append(TEXT_1259);
+ stringBuffer.append(TEXT_1263);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_1260);
+ stringBuffer.append(TEXT_1264);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_1261);
+ stringBuffer.append(TEXT_1265);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1262);
+ stringBuffer.append(TEXT_1266);
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName());
- stringBuffer.append(TEXT_1263);
+ stringBuffer.append(TEXT_1267);
{
GenFeature _feature = containmentFeature;
@@ -5779,29 +5795,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = containmentFeature.getGenClass();
- stringBuffer.append(TEXT_1264);
+ stringBuffer.append(TEXT_1268);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1265);
+ stringBuffer.append(TEXT_1269);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1266);
+ stringBuffer.append(TEXT_1270);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1267);
+ stringBuffer.append(TEXT_1271);
} else {
- stringBuffer.append(TEXT_1268);
+ stringBuffer.append(TEXT_1272);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1269);
+ stringBuffer.append(TEXT_1273);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1270);
+ stringBuffer.append(TEXT_1274);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1271);
+ stringBuffer.append(TEXT_1275);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1272);
+ stringBuffer.append(TEXT_1276);
}
}
@@ -5816,29 +5832,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = containmentFeature.getGenClass();
- stringBuffer.append(TEXT_1273);
+ stringBuffer.append(TEXT_1277);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1274);
+ stringBuffer.append(TEXT_1278);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1275);
+ stringBuffer.append(TEXT_1279);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1276);
+ stringBuffer.append(TEXT_1280);
} else {
- stringBuffer.append(TEXT_1277);
+ stringBuffer.append(TEXT_1281);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1278);
+ stringBuffer.append(TEXT_1282);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1279);
+ stringBuffer.append(TEXT_1283);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1280);
+ stringBuffer.append(TEXT_1284);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1281);
+ stringBuffer.append(TEXT_1285);
}
}
@@ -5855,29 +5871,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_1282);
+ stringBuffer.append(TEXT_1286);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1283);
+ stringBuffer.append(TEXT_1287);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1284);
+ stringBuffer.append(TEXT_1288);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1285);
+ stringBuffer.append(TEXT_1289);
} else {
- stringBuffer.append(TEXT_1286);
+ stringBuffer.append(TEXT_1290);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1287);
+ stringBuffer.append(TEXT_1291);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1288);
+ stringBuffer.append(TEXT_1292);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1289);
+ stringBuffer.append(TEXT_1293);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1290);
+ stringBuffer.append(TEXT_1294);
}
}
@@ -5888,24 +5904,24 @@ if (upperBound > 0) {
String _source = "source.getElement()";
String _target = "null";
- stringBuffer.append(TEXT_1291);
+ stringBuffer.append(TEXT_1295);
if (linkConstraints != null) {
- stringBuffer.append(TEXT_1292);
+ stringBuffer.append(TEXT_1296);
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName());
- stringBuffer.append(TEXT_1293);
+ stringBuffer.append(TEXT_1297);
stringBuffer.append(_source);
- stringBuffer.append(TEXT_1294);
+ stringBuffer.append(TEXT_1298);
stringBuffer.append(_target);
- stringBuffer.append(TEXT_1295);
+ stringBuffer.append(TEXT_1299);
}
} //local declarations for linkConstraints.jetinc
- stringBuffer.append(TEXT_1296);
+ stringBuffer.append(TEXT_1300);
}
} else if (genLink.getModelFacet() instanceof FeatureLinkModelFacet) {
@@ -5916,29 +5932,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_1297);
+ stringBuffer.append(TEXT_1301);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1298);
+ stringBuffer.append(TEXT_1302);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1299);
+ stringBuffer.append(TEXT_1303);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1300);
+ stringBuffer.append(TEXT_1304);
} else {
- stringBuffer.append(TEXT_1301);
+ stringBuffer.append(TEXT_1305);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1302);
+ stringBuffer.append(TEXT_1306);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1303);
+ stringBuffer.append(TEXT_1307);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1304);
+ stringBuffer.append(TEXT_1308);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1305);
+ stringBuffer.append(TEXT_1309);
}
}
@@ -5949,47 +5965,47 @@ if (upperBound > 0) {
String _source = "source.getElement()";
String _target = "null";
- stringBuffer.append(TEXT_1306);
+ stringBuffer.append(TEXT_1310);
if (linkConstraints != null) {
- stringBuffer.append(TEXT_1307);
+ stringBuffer.append(TEXT_1311);
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName());
- stringBuffer.append(TEXT_1308);
+ stringBuffer.append(TEXT_1312);
stringBuffer.append(_source);
- stringBuffer.append(TEXT_1309);
+ stringBuffer.append(TEXT_1313);
stringBuffer.append(_target);
- stringBuffer.append(TEXT_1310);
+ stringBuffer.append(TEXT_1314);
}
} //local declarations for linkConstraints.jetinc
- stringBuffer.append(TEXT_1311);
+ stringBuffer.append(TEXT_1315);
} else {
- stringBuffer.append(TEXT_1312);
+ stringBuffer.append(TEXT_1316);
}
- stringBuffer.append(TEXT_1313);
- stringBuffer.append(TEXT_1314);
+ stringBuffer.append(TEXT_1317);
+ stringBuffer.append(TEXT_1318);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
- stringBuffer.append(TEXT_1315);
+ stringBuffer.append(TEXT_1319);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1316);
+ stringBuffer.append(TEXT_1320);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1317);
+ stringBuffer.append(TEXT_1321);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass"));
- stringBuffer.append(TEXT_1318);
+ stringBuffer.append(TEXT_1322);
}
- stringBuffer.append(TEXT_1319);
+ stringBuffer.append(TEXT_1323);
} //if there's palette
} //outgoing links
@@ -6019,60 +6035,60 @@ for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) {
}
GenLinkConstraints linkConstraints = genLink.getCreationConstraints();
- stringBuffer.append(TEXT_1320);
+ stringBuffer.append(TEXT_1324);
stringBuffer.append(reconnectCommandNameInfix);
stringBuffer.append(genLink.getVisualID());
- stringBuffer.append(TEXT_1321);
+ stringBuffer.append(TEXT_1325);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand"));
- stringBuffer.append(TEXT_1322);
+ stringBuffer.append(TEXT_1326);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
- stringBuffer.append(TEXT_1323);
+ stringBuffer.append(TEXT_1327);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1324);
+ stringBuffer.append(TEXT_1328);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1325);
+ stringBuffer.append(TEXT_1329);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1326);
+ stringBuffer.append(TEXT_1330);
stringBuffer.append(reconnectCommandNameInfix);
stringBuffer.append(genLink.getVisualID());
- stringBuffer.append(TEXT_1327);
+ stringBuffer.append(TEXT_1331);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest"));
- stringBuffer.append(TEXT_1328);
+ stringBuffer.append(TEXT_1332);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
- stringBuffer.append(TEXT_1329);
+ stringBuffer.append(TEXT_1333);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1330);
+ stringBuffer.append(TEXT_1334);
stringBuffer.append(reconnectCommandNameInfix);
stringBuffer.append(genLink.getVisualID());
- stringBuffer.append(TEXT_1331);
+ stringBuffer.append(TEXT_1335);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
- stringBuffer.append(TEXT_1332);
+ stringBuffer.append(TEXT_1336);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1333);
+ stringBuffer.append(TEXT_1337);
if (linkConstraints != null) {
- stringBuffer.append(TEXT_1334);
+ stringBuffer.append(TEXT_1338);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1335);
+ stringBuffer.append(TEXT_1339);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_1336);
+ stringBuffer.append(TEXT_1340);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1337);
+ stringBuffer.append(TEXT_1341);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand"));
- stringBuffer.append(TEXT_1338);
+ stringBuffer.append(TEXT_1342);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1339);
+ stringBuffer.append(TEXT_1343);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_1340);
+ stringBuffer.append(TEXT_1344);
} else {
- stringBuffer.append(TEXT_1341);
+ stringBuffer.append(TEXT_1345);
}
- stringBuffer.append(TEXT_1342);
+ stringBuffer.append(TEXT_1346);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet();
@@ -6085,29 +6101,29 @@ for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_1343);
+ stringBuffer.append(TEXT_1347);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1344);
+ stringBuffer.append(TEXT_1348);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1345);
+ stringBuffer.append(TEXT_1349);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1346);
+ stringBuffer.append(TEXT_1350);
} else {
- stringBuffer.append(TEXT_1347);
+ stringBuffer.append(TEXT_1351);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1348);
+ stringBuffer.append(TEXT_1352);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1349);
+ stringBuffer.append(TEXT_1353);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1350);
+ stringBuffer.append(TEXT_1354);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1351);
+ stringBuffer.append(TEXT_1355);
}
}
@@ -6118,24 +6134,24 @@ if (upperBound > 0) {
String _source = "edge.getSource().getElement()";
String _target = "newTarget.getElement()";
- stringBuffer.append(TEXT_1352);
+ stringBuffer.append(TEXT_1356);
if (linkConstraints != null) {
- stringBuffer.append(TEXT_1353);
+ stringBuffer.append(TEXT_1357);
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName());
- stringBuffer.append(TEXT_1354);
+ stringBuffer.append(TEXT_1358);
stringBuffer.append(_source);
- stringBuffer.append(TEXT_1355);
+ stringBuffer.append(TEXT_1359);
stringBuffer.append(_target);
- stringBuffer.append(TEXT_1356);
+ stringBuffer.append(TEXT_1360);
}
} //local declarations for linkConstraints.jetinc
- stringBuffer.append(TEXT_1357);
+ stringBuffer.append(TEXT_1361);
} else if (genLink.getModelFacet() instanceof FeatureLinkModelFacet) {
//Need to check eOpposite() of the metaFeature
@@ -6147,29 +6163,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_1358);
+ stringBuffer.append(TEXT_1362);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1359);
+ stringBuffer.append(TEXT_1363);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1360);
+ stringBuffer.append(TEXT_1364);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1361);
+ stringBuffer.append(TEXT_1365);
} else {
- stringBuffer.append(TEXT_1362);
+ stringBuffer.append(TEXT_1366);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1363);
+ stringBuffer.append(TEXT_1367);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1364);
+ stringBuffer.append(TEXT_1368);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1365);
+ stringBuffer.append(TEXT_1369);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1366);
+ stringBuffer.append(TEXT_1370);
}
}
@@ -6180,121 +6196,121 @@ if (upperBound > 0) {
String _source = "edge.getSource().getElement()";
String _target = "newTarget.getElement()";
- stringBuffer.append(TEXT_1367);
+ stringBuffer.append(TEXT_1371);
if (linkConstraints != null) {
- stringBuffer.append(TEXT_1368);
+ stringBuffer.append(TEXT_1372);
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName());
- stringBuffer.append(TEXT_1369);
+ stringBuffer.append(TEXT_1373);
stringBuffer.append(_source);
- stringBuffer.append(TEXT_1370);
+ stringBuffer.append(TEXT_1374);
stringBuffer.append(_target);
- stringBuffer.append(TEXT_1371);
+ stringBuffer.append(TEXT_1375);
}
} //local declarations for linkConstraints.jetinc
- stringBuffer.append(TEXT_1372);
+ stringBuffer.append(TEXT_1376);
} else {
- stringBuffer.append(TEXT_1373);
+ stringBuffer.append(TEXT_1377);
}
- stringBuffer.append(TEXT_1374);
+ stringBuffer.append(TEXT_1378);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1375);
+ stringBuffer.append(TEXT_1379);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1376);
+ stringBuffer.append(TEXT_1380);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_1377);
+ stringBuffer.append(TEXT_1381);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1378);
+ stringBuffer.append(TEXT_1382);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1379);
+ stringBuffer.append(TEXT_1383);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.ReconnectNotationalEdgeTargetCommand"));
- stringBuffer.append(TEXT_1380);
+ stringBuffer.append(TEXT_1384);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet();
GenFeature targetFeature = modelFacet.getTargetMetaFeature();
if (targetFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1381);
+ stringBuffer.append(TEXT_1385);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1382);
+ stringBuffer.append(TEXT_1386);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1383);
+ stringBuffer.append(TEXT_1387);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1384);
+ stringBuffer.append(TEXT_1388);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand"));
- stringBuffer.append(TEXT_1385);
+ stringBuffer.append(TEXT_1389);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1386);
+ stringBuffer.append(TEXT_1390);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1387);
+ stringBuffer.append(TEXT_1391);
} else {
- stringBuffer.append(TEXT_1388);
+ stringBuffer.append(TEXT_1392);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1389);
+ stringBuffer.append(TEXT_1393);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1390);
+ stringBuffer.append(TEXT_1394);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1391);
+ stringBuffer.append(TEXT_1395);
}
} else if (genLink.getModelFacet() instanceof FeatureLinkModelFacet) {
GenFeature metaFeature = ((FeatureLinkModelFacet) genLink.getModelFacet()).getMetaFeature();
if (metaFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1392);
+ stringBuffer.append(TEXT_1396);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1393);
+ stringBuffer.append(TEXT_1397);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1394);
+ stringBuffer.append(TEXT_1398);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1395);
+ stringBuffer.append(TEXT_1399);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand"));
- stringBuffer.append(TEXT_1396);
+ stringBuffer.append(TEXT_1400);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1397);
+ stringBuffer.append(TEXT_1401);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1398);
+ stringBuffer.append(TEXT_1402);
} else {
- stringBuffer.append(TEXT_1399);
+ stringBuffer.append(TEXT_1403);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1400);
+ stringBuffer.append(TEXT_1404);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1401);
+ stringBuffer.append(TEXT_1405);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1402);
+ stringBuffer.append(TEXT_1406);
}
}
- stringBuffer.append(TEXT_1403);
+ stringBuffer.append(TEXT_1407);
if (linkConstraints != null) {
String _edge = "edge";
- stringBuffer.append(TEXT_1404);
- stringBuffer.append(TEXT_1405);
+ stringBuffer.append(TEXT_1408);
+ stringBuffer.append(TEXT_1409);
//input: _edge : String
- stringBuffer.append(TEXT_1406);
+ stringBuffer.append(TEXT_1410);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1407);
+ stringBuffer.append(TEXT_1411);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1408);
+ stringBuffer.append(TEXT_1412);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet();
@@ -6321,264 +6337,264 @@ if (upperBound > 0) {
}
}
- stringBuffer.append(TEXT_1409);
+ stringBuffer.append(TEXT_1413);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1410);
+ stringBuffer.append(TEXT_1414);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1411);
+ stringBuffer.append(TEXT_1415);
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1412);
+ stringBuffer.append(TEXT_1416);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1413);
+ stringBuffer.append(TEXT_1417);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1414);
+ stringBuffer.append(TEXT_1418);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1415);
+ stringBuffer.append(TEXT_1419);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1416);
+ stringBuffer.append(TEXT_1420);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1417);
+ stringBuffer.append(TEXT_1421);
} else {
- stringBuffer.append(TEXT_1418);
+ stringBuffer.append(TEXT_1422);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1419);
+ stringBuffer.append(TEXT_1423);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1420);
+ stringBuffer.append(TEXT_1424);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1421);
+ stringBuffer.append(TEXT_1425);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1422);
+ stringBuffer.append(TEXT_1426);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1423);
+ stringBuffer.append(TEXT_1427);
}
} else {
- stringBuffer.append(TEXT_1424);
+ stringBuffer.append(TEXT_1428);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand"));
- stringBuffer.append(TEXT_1425);
+ stringBuffer.append(TEXT_1429);
}
if (removeChild) {
if (childFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1426);
+ stringBuffer.append(TEXT_1430);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1427);
+ stringBuffer.append(TEXT_1431);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1428);
+ stringBuffer.append(TEXT_1432);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1429);
+ stringBuffer.append(TEXT_1433);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1430);
+ stringBuffer.append(TEXT_1434);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1431);
+ stringBuffer.append(TEXT_1435);
} else {
- stringBuffer.append(TEXT_1432);
+ stringBuffer.append(TEXT_1436);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1433);
+ stringBuffer.append(TEXT_1437);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1434);
+ stringBuffer.append(TEXT_1438);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1435);
+ stringBuffer.append(TEXT_1439);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1436);
+ stringBuffer.append(TEXT_1440);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1437);
+ stringBuffer.append(TEXT_1441);
}
}
if (removeSource) {
if (sourceFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1438);
+ stringBuffer.append(TEXT_1442);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1439);
+ stringBuffer.append(TEXT_1443);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1440);
+ stringBuffer.append(TEXT_1444);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1441);
+ stringBuffer.append(TEXT_1445);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1442);
+ stringBuffer.append(TEXT_1446);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1443);
+ stringBuffer.append(TEXT_1447);
} else {
- stringBuffer.append(TEXT_1444);
+ stringBuffer.append(TEXT_1448);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1445);
+ stringBuffer.append(TEXT_1449);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1446);
+ stringBuffer.append(TEXT_1450);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1447);
+ stringBuffer.append(TEXT_1451);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1448);
+ stringBuffer.append(TEXT_1452);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1449);
+ stringBuffer.append(TEXT_1453);
}
}
if (removeTarget) {
if (targetFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1450);
+ stringBuffer.append(TEXT_1454);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1451);
+ stringBuffer.append(TEXT_1455);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1452);
+ stringBuffer.append(TEXT_1456);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1453);
+ stringBuffer.append(TEXT_1457);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1454);
+ stringBuffer.append(TEXT_1458);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1455);
+ stringBuffer.append(TEXT_1459);
} else {
- stringBuffer.append(TEXT_1456);
+ stringBuffer.append(TEXT_1460);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1457);
+ stringBuffer.append(TEXT_1461);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1458);
+ stringBuffer.append(TEXT_1462);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1459);
+ stringBuffer.append(TEXT_1463);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1460);
+ stringBuffer.append(TEXT_1464);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1461);
+ stringBuffer.append(TEXT_1465);
}
}
- stringBuffer.append(TEXT_1462);
+ stringBuffer.append(TEXT_1466);
} else if (genLink.getModelFacet() instanceof FeatureLinkModelFacet) {
GenFeature metaFeature = ((FeatureLinkModelFacet) genLink.getModelFacet()).getMetaFeature();
if (metaFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1463);
+ stringBuffer.append(TEXT_1467);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1464);
+ stringBuffer.append(TEXT_1468);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1465);
+ stringBuffer.append(TEXT_1469);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1466);
+ stringBuffer.append(TEXT_1470);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1467);
+ stringBuffer.append(TEXT_1471);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1468);
+ stringBuffer.append(TEXT_1472);
} else {
- stringBuffer.append(TEXT_1469);
+ stringBuffer.append(TEXT_1473);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1470);
+ stringBuffer.append(TEXT_1474);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_1471);
+ stringBuffer.append(TEXT_1475);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1472);
+ stringBuffer.append(TEXT_1476);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1473);
+ stringBuffer.append(TEXT_1477);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1474);
+ stringBuffer.append(TEXT_1478);
}
}
- stringBuffer.append(TEXT_1475);
+ stringBuffer.append(TEXT_1479);
}
- stringBuffer.append(TEXT_1476);
+ stringBuffer.append(TEXT_1480);
if (palette != null) {
- stringBuffer.append(TEXT_1477);
+ stringBuffer.append(TEXT_1481);
stringBuffer.append(createCommandNameInfix);
stringBuffer.append(genLink.getVisualID());
- stringBuffer.append(TEXT_1478);
+ stringBuffer.append(TEXT_1482);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand"));
- stringBuffer.append(TEXT_1479);
+ stringBuffer.append(TEXT_1483);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1480);
+ stringBuffer.append(TEXT_1484);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1481);
+ stringBuffer.append(TEXT_1485);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
- stringBuffer.append(TEXT_1482);
+ stringBuffer.append(TEXT_1486);
stringBuffer.append(createCommandNameInfix);
stringBuffer.append(genLink.getVisualID());
- stringBuffer.append(TEXT_1483);
+ stringBuffer.append(TEXT_1487);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
- stringBuffer.append(TEXT_1484);
+ stringBuffer.append(TEXT_1488);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1485);
+ stringBuffer.append(TEXT_1489);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1486);
+ stringBuffer.append(TEXT_1490);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1487);
+ stringBuffer.append(TEXT_1491);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1488);
+ stringBuffer.append(TEXT_1492);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand"));
- stringBuffer.append(TEXT_1489);
+ stringBuffer.append(TEXT_1493);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory"));
- stringBuffer.append(TEXT_1490);
+ stringBuffer.append(TEXT_1494);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet();
GenClass linkClass = modelFacet.getMetaClass();
- stringBuffer.append(TEXT_1491);
+ stringBuffer.append(TEXT_1495);
stringBuffer.append(importManager.getImportedName(importManager.getImportedName(linkClass.getQualifiedInterfaceName())));
- stringBuffer.append(TEXT_1492);
+ stringBuffer.append(TEXT_1496);
stringBuffer.append(importManager.getImportedName(linkClass.getGenPackage().getQualifiedFactoryInterfaceName()));
- stringBuffer.append(TEXT_1493);
+ stringBuffer.append(TEXT_1497);
stringBuffer.append(linkClass.getClassifierAccessorName());
- stringBuffer.append(TEXT_1494);
+ stringBuffer.append(TEXT_1498);
if (linkClass.isExternalInterface()) {
- stringBuffer.append(TEXT_1495);
+ stringBuffer.append(TEXT_1499);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1496);
+ stringBuffer.append(TEXT_1500);
}
- stringBuffer.append(TEXT_1497);
+ stringBuffer.append(TEXT_1501);
/*XXX: Class name DomainElementInitializer should be user-customizable*/
- stringBuffer.append(TEXT_1498);
+ stringBuffer.append(TEXT_1502);
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer"));
- stringBuffer.append(TEXT_1499);
+ stringBuffer.append(TEXT_1503);
stringBuffer.append(genLink.getUniqueIdentifier());
- stringBuffer.append(TEXT_1500);
+ stringBuffer.append(TEXT_1504);
if (linkClass.isExternalInterface()) {
- stringBuffer.append(TEXT_1501);
+ stringBuffer.append(TEXT_1505);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1502);
+ stringBuffer.append(TEXT_1506);
}
- stringBuffer.append(TEXT_1503);
+ stringBuffer.append(TEXT_1507);
} else if (genLink.getModelFacet() instanceof FeatureLinkModelFacet) {
- stringBuffer.append(TEXT_1504);
+ stringBuffer.append(TEXT_1508);
}
- stringBuffer.append(TEXT_1505);
+ stringBuffer.append(TEXT_1509);
stringBuffer.append(importManager.getImportedName(genLink.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_1506);
+ stringBuffer.append(TEXT_1510);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1507);
+ stringBuffer.append(TEXT_1511);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_1508);
+ stringBuffer.append(TEXT_1512);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
- stringBuffer.append(TEXT_1509);
+ stringBuffer.append(TEXT_1513);
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet();
GenFeature sourceFeature = modelFacet.getSourceMetaFeature();
@@ -6605,30 +6621,30 @@ if (upperBound > 0) {
}
}
- stringBuffer.append(TEXT_1510);
+ stringBuffer.append(TEXT_1514);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1511);
+ stringBuffer.append(TEXT_1515);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1512);
+ stringBuffer.append(TEXT_1516);
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName());
- stringBuffer.append(TEXT_1513);
+ stringBuffer.append(TEXT_1517);
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1514);
+ stringBuffer.append(TEXT_1518);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1515);
+ stringBuffer.append(TEXT_1519);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1516);
+ stringBuffer.append(TEXT_1520);
}
if (addChild) {
- stringBuffer.append(TEXT_1517);
+ stringBuffer.append(TEXT_1521);
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1518);
+ stringBuffer.append(TEXT_1522);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1519);
+ stringBuffer.append(TEXT_1523);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1520);
+ stringBuffer.append(TEXT_1524);
}
if (addSource) {
@@ -6638,29 +6654,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;";
GenClass _ownerGenClass = modelFacet.getMetaClass();
- stringBuffer.append(TEXT_1521);
+ stringBuffer.append(TEXT_1525);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1522);
+ stringBuffer.append(TEXT_1526);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1523);
+ stringBuffer.append(TEXT_1527);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1524);
+ stringBuffer.append(TEXT_1528);
} else {
- stringBuffer.append(TEXT_1525);
+ stringBuffer.append(TEXT_1529);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1526);
+ stringBuffer.append(TEXT_1530);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1527);
+ stringBuffer.append(TEXT_1531);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1528);
+ stringBuffer.append(TEXT_1532);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1529);
+ stringBuffer.append(TEXT_1533);
}
}
@@ -6668,13 +6684,13 @@ if (upperBound > 0) {
}
- stringBuffer.append(TEXT_1530);
+ stringBuffer.append(TEXT_1534);
stringBuffer.append(importManager.getImportedName(sourceFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1531);
+ stringBuffer.append(TEXT_1535);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1532);
+ stringBuffer.append(TEXT_1536);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1533);
+ stringBuffer.append(TEXT_1537);
}
if (addTarget) {
@@ -6684,29 +6700,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;";
GenClass _ownerGenClass = modelFacet.getMetaClass();
- stringBuffer.append(TEXT_1534);
+ stringBuffer.append(TEXT_1538);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1535);
+ stringBuffer.append(TEXT_1539);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1536);
+ stringBuffer.append(TEXT_1540);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1537);
+ stringBuffer.append(TEXT_1541);
} else {
- stringBuffer.append(TEXT_1538);
+ stringBuffer.append(TEXT_1542);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1539);
+ stringBuffer.append(TEXT_1543);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1540);
+ stringBuffer.append(TEXT_1544);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1541);
+ stringBuffer.append(TEXT_1545);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1542);
+ stringBuffer.append(TEXT_1546);
}
}
@@ -6721,29 +6737,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_1543);
+ stringBuffer.append(TEXT_1547);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1544);
+ stringBuffer.append(TEXT_1548);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1545);
+ stringBuffer.append(TEXT_1549);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1546);
+ stringBuffer.append(TEXT_1550);
} else {
- stringBuffer.append(TEXT_1547);
+ stringBuffer.append(TEXT_1551);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1548);
+ stringBuffer.append(TEXT_1552);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1549);
+ stringBuffer.append(TEXT_1553);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1550);
+ stringBuffer.append(TEXT_1554);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1551);
+ stringBuffer.append(TEXT_1555);
}
}
@@ -6751,17 +6767,17 @@ if (upperBound > 0) {
}
- stringBuffer.append(TEXT_1552);
+ stringBuffer.append(TEXT_1556);
stringBuffer.append(importManager.getImportedName(targetFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1553);
+ stringBuffer.append(TEXT_1557);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1554);
+ stringBuffer.append(TEXT_1558);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1555);
+ stringBuffer.append(TEXT_1559);
}
- stringBuffer.append(TEXT_1556);
+ stringBuffer.append(TEXT_1560);
} else if (genLink.getModelFacet() instanceof FeatureLinkModelFacet) {
GenFeature metaFeature = ((FeatureLinkModelFacet) genLink.getModelFacet()).getMetaFeature();
@@ -6773,29 +6789,29 @@ if (upperBound > 0) {
String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_1557);
+ stringBuffer.append(TEXT_1561);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound > 0) {
if (upperBound == 1) {
- stringBuffer.append(TEXT_1558);
+ stringBuffer.append(TEXT_1562);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_1559);
+ stringBuffer.append(TEXT_1563);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1560);
+ stringBuffer.append(TEXT_1564);
} else {
- stringBuffer.append(TEXT_1561);
+ stringBuffer.append(TEXT_1565);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_1562);
+ stringBuffer.append(TEXT_1566);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1563);
+ stringBuffer.append(TEXT_1567);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1564);
+ stringBuffer.append(TEXT_1568);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_1565);
+ stringBuffer.append(TEXT_1569);
}
}
@@ -6803,55 +6819,55 @@ if (upperBound > 0) {
}
- stringBuffer.append(TEXT_1566);
+ stringBuffer.append(TEXT_1570);
stringBuffer.append(importManager.getImportedName(metaFeature.getEcoreFeature().isMany()? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1567);
+ stringBuffer.append(TEXT_1571);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1568);
+ stringBuffer.append(TEXT_1572);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1569);
+ stringBuffer.append(TEXT_1573);
}
- stringBuffer.append(TEXT_1570);
- stringBuffer.append(TEXT_1571);
+ stringBuffer.append(TEXT_1574);
+ stringBuffer.append(TEXT_1575);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
- stringBuffer.append(TEXT_1572);
+ stringBuffer.append(TEXT_1576);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1573);
+ stringBuffer.append(TEXT_1577);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_1574);
+ stringBuffer.append(TEXT_1578);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass"));
- stringBuffer.append(TEXT_1575);
+ stringBuffer.append(TEXT_1579);
}
- stringBuffer.append(TEXT_1576);
+ stringBuffer.append(TEXT_1580);
{
String _source = "source.getElement()";
String _target = "target.getElement()";
- stringBuffer.append(TEXT_1577);
+ stringBuffer.append(TEXT_1581);
if (linkConstraints != null) {
- stringBuffer.append(TEXT_1578);
+ stringBuffer.append(TEXT_1582);
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName());
- stringBuffer.append(TEXT_1579);
+ stringBuffer.append(TEXT_1583);
stringBuffer.append(_source);
- stringBuffer.append(TEXT_1580);
+ stringBuffer.append(TEXT_1584);
stringBuffer.append(_target);
- stringBuffer.append(TEXT_1581);
+ stringBuffer.append(TEXT_1585);
}
} //local declarations for linkConstraints.jetinc
- stringBuffer.append(TEXT_1582);
+ stringBuffer.append(TEXT_1586);
}
@@ -6860,48 +6876,48 @@ if (upperBound > 0) {
if (genNode.getViewmap() instanceof InnerClassViewmap) {
String classBody = ((InnerClassViewmap) genNode.getViewmap()).getClassBody();
- stringBuffer.append(TEXT_1583);
+ stringBuffer.append(TEXT_1587);
stringBuffer.append(classBody);
- stringBuffer.append(TEXT_1584);
+ stringBuffer.append(TEXT_1588);
if (classBody.indexOf("DPtoLP") != -1) {
- stringBuffer.append(TEXT_1585);
+ stringBuffer.append(TEXT_1589);
}
}
- stringBuffer.append(TEXT_1586);
+ stringBuffer.append(TEXT_1590);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.tree.BaseTreeEditPart"));
- stringBuffer.append(TEXT_1587);
+ stringBuffer.append(TEXT_1591);
stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName()));
- stringBuffer.append(TEXT_1588);
- stringBuffer.append(TEXT_1589);
- stringBuffer.append(TEXT_1590);
+ stringBuffer.append(TEXT_1592);
+ stringBuffer.append(TEXT_1593);
+ stringBuffer.append(TEXT_1594);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_1591);
+ stringBuffer.append(TEXT_1595);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy"));
- stringBuffer.append(TEXT_1592);
+ stringBuffer.append(TEXT_1596);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_1593);
+ stringBuffer.append(TEXT_1597);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest"));
- stringBuffer.append(TEXT_1594);
+ stringBuffer.append(TEXT_1598);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1595);
+ stringBuffer.append(TEXT_1599);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_1596);
+ stringBuffer.append(TEXT_1600);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1597);
+ stringBuffer.append(TEXT_1601);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1598);
+ stringBuffer.append(TEXT_1602);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1599);
+ stringBuffer.append(TEXT_1603);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_1600);
+ stringBuffer.append(TEXT_1604);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1601);
+ stringBuffer.append(TEXT_1605);
{
TypeModelFacet facet = genNode.getModelFacet();
@@ -6909,90 +6925,90 @@ GenFeature childFeature = facet.getChildMetaFeature();
GenFeature containmentFeature = facet.getContainmentMetaFeature();
if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) {
- stringBuffer.append(TEXT_1602);
+ stringBuffer.append(TEXT_1606);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1603);
+ stringBuffer.append(TEXT_1607);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1604);
+ stringBuffer.append(TEXT_1608);
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1605);
+ stringBuffer.append(TEXT_1609);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1606);
+ stringBuffer.append(TEXT_1610);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1607);
+ stringBuffer.append(TEXT_1611);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1608);
+ stringBuffer.append(TEXT_1612);
} else {
- stringBuffer.append(TEXT_1609);
+ stringBuffer.append(TEXT_1613);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1610);
+ stringBuffer.append(TEXT_1614);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1611);
+ stringBuffer.append(TEXT_1615);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1612);
+ stringBuffer.append(TEXT_1616);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1613);
+ stringBuffer.append(TEXT_1617);
}
if (childFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1614);
+ stringBuffer.append(TEXT_1618);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1615);
+ stringBuffer.append(TEXT_1619);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1616);
+ stringBuffer.append(TEXT_1620);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1617);
+ stringBuffer.append(TEXT_1621);
} else {
- stringBuffer.append(TEXT_1618);
+ stringBuffer.append(TEXT_1622);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1619);
+ stringBuffer.append(TEXT_1623);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1620);
+ stringBuffer.append(TEXT_1624);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1621);
+ stringBuffer.append(TEXT_1625);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1622);
+ stringBuffer.append(TEXT_1626);
}
- stringBuffer.append(TEXT_1623);
+ stringBuffer.append(TEXT_1627);
} else {
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1624);
+ stringBuffer.append(TEXT_1628);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1625);
+ stringBuffer.append(TEXT_1629);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1626);
+ stringBuffer.append(TEXT_1630);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1627);
+ stringBuffer.append(TEXT_1631);
} else {
- stringBuffer.append(TEXT_1628);
+ stringBuffer.append(TEXT_1632);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1629);
+ stringBuffer.append(TEXT_1633);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1630);
+ stringBuffer.append(TEXT_1634);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1631);
+ stringBuffer.append(TEXT_1635);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1632);
+ stringBuffer.append(TEXT_1636);
}
}
- stringBuffer.append(TEXT_1633);
+ stringBuffer.append(TEXT_1637);
} /*restrict local vars used in component edit policy*/
@@ -7003,189 +7019,189 @@ if (myHelper.getPrimaryLabel() != null) {
LabelModelFacet labelModelFacet = myHelper.getPrimaryLabel().getModelFacet();
GenClass underlyingMetaClass = genNode.getDomainMetaClass();
- stringBuffer.append(TEXT_1634);
- stringBuffer.append(TEXT_1635);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_1636);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy"));
- stringBuffer.append(TEXT_1637);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
stringBuffer.append(TEXT_1638);
stringBuffer.append(TEXT_1639);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
stringBuffer.append(TEXT_1640);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy"));
stringBuffer.append(TEXT_1641);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
stringBuffer.append(TEXT_1642);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
stringBuffer.append(TEXT_1643);
- stringBuffer.append(importManager.getImportedName("java.text.MessageFormat"));
stringBuffer.append(TEXT_1644);
- stringBuffer.append(editPatternCode);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_1645);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
stringBuffer.append(TEXT_1646);
- stringBuffer.append(importManager.getImportedName("java.text.ParseException"));
- stringBuffer.append(TEXT_1647);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
+ stringBuffer.append(TEXT_1647);
+ stringBuffer.append(importManager.getImportedName("java.text.MessageFormat"));
stringBuffer.append(TEXT_1648);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
+ stringBuffer.append(editPatternCode);
stringBuffer.append(TEXT_1649);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
stringBuffer.append(TEXT_1650);
- stringBuffer.append(primaryView);
+ stringBuffer.append(importManager.getImportedName("java.text.ParseException"));
stringBuffer.append(TEXT_1651);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
+ stringBuffer.append(TEXT_1652);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
+ stringBuffer.append(TEXT_1653);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
+ stringBuffer.append(TEXT_1654);
+ stringBuffer.append(primaryView);
+ stringBuffer.append(TEXT_1655);
if (labelModelFacet instanceof FeatureLabelModelFacet) {
FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet;
List metaFeatures = featureLabelModelFacet.getMetaFeatures();
- stringBuffer.append(TEXT_1652);
+ stringBuffer.append(TEXT_1656);
stringBuffer.append(metaFeatures.size());
- stringBuffer.append(TEXT_1653);
+ stringBuffer.append(TEXT_1657);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_1654);
+ stringBuffer.append(TEXT_1658);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1655);
+ stringBuffer.append(TEXT_1659);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_1656);
+ stringBuffer.append(TEXT_1660);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1657);
+ stringBuffer.append(TEXT_1661);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1658);
+ stringBuffer.append(TEXT_1662);
stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_1659);
+ stringBuffer.append(TEXT_1663);
stringBuffer.append(resolvedSemanticElement);
- stringBuffer.append(TEXT_1660);
+ stringBuffer.append(TEXT_1664);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1661);
+ stringBuffer.append(TEXT_1665);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1662);
+ stringBuffer.append(TEXT_1666);
boolean haveDeclaredValues = false;
for(int i = 0; i < metaFeatures.size(); i++) {
GenFeature nextFeatureToSet = (GenFeature) metaFeatures.get(i);
EStructuralFeature nextEcoreFeature = nextFeatureToSet.getEcoreFeature();
- stringBuffer.append(TEXT_1663);
+ stringBuffer.append(TEXT_1667);
if (i == 0) {
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute"));
- stringBuffer.append(TEXT_1664);
+ stringBuffer.append(TEXT_1668);
}
- stringBuffer.append(TEXT_1665);
+ stringBuffer.append(TEXT_1669);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute"));
- stringBuffer.append(TEXT_1666);
+ stringBuffer.append(TEXT_1670);
stringBuffer.append(importManager.getImportedName(nextFeatureToSet.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1667);
+ stringBuffer.append(TEXT_1671);
stringBuffer.append(nextFeatureToSet.getFeatureAccessorName());
- stringBuffer.append(TEXT_1668);
+ stringBuffer.append(TEXT_1672);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil"));
- stringBuffer.append(TEXT_1669);
+ stringBuffer.append(TEXT_1673);
stringBuffer.append(i);
- stringBuffer.append(TEXT_1670);
+ stringBuffer.append(TEXT_1674);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand"));
- stringBuffer.append(TEXT_1671);
+ stringBuffer.append(TEXT_1675);
if (nextEcoreFeature.isMany()) {
- stringBuffer.append(TEXT_1672);
+ stringBuffer.append(TEXT_1676);
if (!haveDeclaredValues) { haveDeclaredValues = true;
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList"));
- stringBuffer.append(TEXT_1673);
+ stringBuffer.append(TEXT_1677);
}
- stringBuffer.append(TEXT_1674);
+ stringBuffer.append(TEXT_1678);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList"));
- stringBuffer.append(TEXT_1675);
+ stringBuffer.append(TEXT_1679);
stringBuffer.append(nextFeatureToSet.getAccessorName());
- stringBuffer.append(TEXT_1676);
+ stringBuffer.append(TEXT_1680);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1677);
+ stringBuffer.append(TEXT_1681);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand"));
- stringBuffer.append(TEXT_1678);
+ stringBuffer.append(TEXT_1682);
} else {
- stringBuffer.append(TEXT_1679);
+ stringBuffer.append(TEXT_1683);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1680);
+ stringBuffer.append(TEXT_1684);
}
}
- stringBuffer.append(TEXT_1681);
+ stringBuffer.append(TEXT_1685);
}
- stringBuffer.append(TEXT_1682);
+ stringBuffer.append(TEXT_1686);
}
- stringBuffer.append(TEXT_1683);
+ stringBuffer.append(TEXT_1687);
if (myHelper.getPrimaryLabel() != null) {
- stringBuffer.append(TEXT_1684);
- stringBuffer.append(TEXT_1685);
+ stringBuffer.append(TEXT_1688);
+ stringBuffer.append(TEXT_1689);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager"));
- stringBuffer.append(TEXT_1686);
+ stringBuffer.append(TEXT_1690);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request"));
- stringBuffer.append(TEXT_1687);
+ stringBuffer.append(TEXT_1691);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants"));
- stringBuffer.append(TEXT_1688);
+ stringBuffer.append(TEXT_1692);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager"));
- stringBuffer.append(TEXT_1689);
+ stringBuffer.append(TEXT_1693);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager"));
- stringBuffer.append(TEXT_1690);
+ stringBuffer.append(TEXT_1694);
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TextCellEditor"));
- stringBuffer.append(TEXT_1691);
+ stringBuffer.append(TEXT_1695);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.CellEditorLocator"));
- stringBuffer.append(TEXT_1692);
+ stringBuffer.append(TEXT_1696);
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.CellEditor"));
- stringBuffer.append(TEXT_1693);
+ stringBuffer.append(TEXT_1697);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem"));
- stringBuffer.append(TEXT_1694);
+ stringBuffer.append(TEXT_1698);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem"));
- stringBuffer.append(TEXT_1695);
+ stringBuffer.append(TEXT_1699);
stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1696);
+ stringBuffer.append(TEXT_1700);
}
- stringBuffer.append(TEXT_1697);
- stringBuffer.append(TEXT_1698);
- stringBuffer.append(TEXT_1699);
+ stringBuffer.append(TEXT_1701);
+ stringBuffer.append(TEXT_1702);
+ stringBuffer.append(TEXT_1703);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
- stringBuffer.append(TEXT_1700);
+ stringBuffer.append(TEXT_1704);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
- stringBuffer.append(TEXT_1701);
+ stringBuffer.append(TEXT_1705);
if (myHelper.getPrimaryLabel() != null) {
- stringBuffer.append(TEXT_1702);
+ stringBuffer.append(TEXT_1706);
stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1703);
+ stringBuffer.append(TEXT_1707);
stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1704);
+ stringBuffer.append(TEXT_1708);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_1705);
+ stringBuffer.append(TEXT_1709);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1706);
+ stringBuffer.append(TEXT_1710);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1707);
+ stringBuffer.append(TEXT_1711);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_1708);
+ stringBuffer.append(TEXT_1712);
stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1709);
+ stringBuffer.append(TEXT_1713);
stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1710);
+ stringBuffer.append(TEXT_1714);
stringBuffer.append(genNode.getEditPartClassName());
- stringBuffer.append(TEXT_1711);
+ stringBuffer.append(TEXT_1715);
}
- stringBuffer.append(TEXT_1712);
+ stringBuffer.append(TEXT_1716);
if (myHelper.getPrimaryLabel() != null) {
LabelModelFacet labelModelFacet = myHelper.getPrimaryLabel().getModelFacet();
@@ -7194,11 +7210,11 @@ if (myHelper.getPrimaryLabel() != null) {
for(Iterator it = featureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) {
GenFeature next = (GenFeature) it.next();
- stringBuffer.append(TEXT_1713);
+ stringBuffer.append(TEXT_1717);
stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1714);
+ stringBuffer.append(TEXT_1718);
stringBuffer.append(next.getFeatureAccessorName());
- stringBuffer.append(TEXT_1715);
+ stringBuffer.append(TEXT_1719);
}
}
@@ -7209,11 +7225,11 @@ if (myHelper.getPrimaryLabel() != null) {
for(Iterator it = labelNotifyFeatures.iterator(); it.hasNext(); ) {
GenFeature next = (GenFeature) it.next();
- stringBuffer.append(TEXT_1716);
+ stringBuffer.append(TEXT_1720);
stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1717);
+ stringBuffer.append(TEXT_1721);
stringBuffer.append(next.getFeatureAccessorName());
- stringBuffer.append(TEXT_1718);
+ stringBuffer.append(TEXT_1722);
}
}
@@ -7221,28 +7237,28 @@ if (myHelper.getPrimaryLabel() != null) {
}
- stringBuffer.append(TEXT_1719);
+ stringBuffer.append(TEXT_1723);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_1720);
+ stringBuffer.append(TEXT_1724);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_1721);
+ stringBuffer.append(TEXT_1725);
stringBuffer.append(importManager.getImportedName("java.util.ArrayList"));
- stringBuffer.append(TEXT_1722);
+ stringBuffer.append(TEXT_1726);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_1723);
+ stringBuffer.append(TEXT_1727);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1724);
+ stringBuffer.append(TEXT_1728);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1725);
+ stringBuffer.append(TEXT_1729);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_1726);
+ stringBuffer.append(TEXT_1730);
for(Iterator it = genNode.getChildNodes().iterator(); it.hasNext(); ) {
GenChildNode next = (GenChildNode)it.next();
- stringBuffer.append(TEXT_1727);
+ stringBuffer.append(TEXT_1731);
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1728);
+ stringBuffer.append(TEXT_1732);
}
@@ -7250,15 +7266,15 @@ if (myHelper.getPrimaryLabel() != null) {
for (Iterator compartments = genNode.getCompartments().iterator(); compartments.hasNext();){
GenCompartment next = (GenCompartment) compartments.next();
- stringBuffer.append(TEXT_1729);
+ stringBuffer.append(TEXT_1733);
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1730);
+ stringBuffer.append(TEXT_1734);
}
- stringBuffer.append(TEXT_1731);
+ stringBuffer.append(TEXT_1735);
importManager.emitSortedImports();
- stringBuffer.append(TEXT_1732);
+ stringBuffer.append(TEXT_1736);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.gmf.codegen.lite/templates/parts/CompartmentEditPart.javajet b/plugins/org.eclipse.gmf.codegen.lite/templates/parts/CompartmentEditPart.javajet
index 1b8d8c00a..c50a64979 100644
--- a/plugins/org.eclipse.gmf.codegen.lite/templates/parts/CompartmentEditPart.javajet
+++ b/plugins/org.eclipse.gmf.codegen.lite/templates/parts/CompartmentEditPart.javajet
@@ -150,6 +150,22 @@ for(Iterator it = genCompartment.getChildNodes().iterator(); it.hasNext(); ) {
return result;
}
+<%
+if (!genCompartment.isListLayout()) {
+%>
+ /**
+ * @generated
+ */
+ public Object getAdapter(Class key) {
+ if (<%=importManager.getImportedName("org.eclipse.gef.SnapToHelper")%>.class == key) {
+ return new <%=importManager.getImportedName("org.eclipse.gef.SnapToGrid")%>(this);
+ }
+ return super.getAdapter(key);
+ }
+<%
+}
+%>
+
/**
* @generated
*/
diff --git a/plugins/org.eclipse.gmf.codegen.lite/templates/parts/NodeEditPart.javajet b/plugins/org.eclipse.gmf.codegen.lite/templates/parts/NodeEditPart.javajet
index dd4570c5b..943e8afec 100644
--- a/plugins/org.eclipse.gmf.codegen.lite/templates/parts/NodeEditPart.javajet
+++ b/plugins/org.eclipse.gmf.codegen.lite/templates/parts/NodeEditPart.javajet
@@ -1105,6 +1105,15 @@ if (myHelper.hasExternalLabels()) {
* @generated
*/
public Object getAdapter(Class key) {
+<%
+if (!genNode.getChildNodes().isEmpty() && isXYLayout) {
+%>
+ if (<%=importManager.getImportedName("org.eclipse.gef.SnapToHelper")%>.class == key) {
+ return new <%=importManager.getImportedName("org.eclipse.gef.SnapToGrid")%>(this);
+ }
+<%
+}
+%>
if (<%=importManager.getImportedName("org.eclipse.gef.TreeEditPart")%>.class == key) {
return getTreeEditPartAdapter();
}

Back to the top