Lines 35-909
Link Here
|
35 |
protected final String TEXT_14 = " primaryShape;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
35 |
protected final String TEXT_14 = " primaryShape;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
36 |
protected final String TEXT_15 = "("; |
36 |
protected final String TEXT_15 = "("; |
37 |
protected final String TEXT_16 = " model) {" + NL + "\t\tassert model instanceof "; |
37 |
protected final String TEXT_16 = " model) {" + NL + "\t\tassert model instanceof "; |
38 |
protected final String TEXT_17 = ";" + NL + "\t\tsetModel(model);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void createEditPolicies() {"; |
38 |
protected final String TEXT_17 = ";" + NL + "\t\tsetModel(model);" + NL + "\t}" + NL; |
39 |
protected final String TEXT_18 = NL; |
39 |
protected final String TEXT_18 = NL; |
40 |
protected final String TEXT_19 = "\t\tinstallEditPolicy("; |
40 |
protected final String TEXT_19 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void registerModel() {" + NL + "\t\tsuper.registerModel();" + NL + "\t\t"; |
41 |
protected final String TEXT_20 = ".COMPONENT_ROLE, new "; |
41 |
protected final String TEXT_20 = " view = ("; |
42 |
protected final String TEXT_21 = "() {" + NL + "\t\t\tprotected "; |
42 |
protected final String TEXT_21 = ") getModel();" + NL + "\t\tif (view != null && view.isSetElement() && view.getElement() != null) {" + NL + "\t\t\tgetViewer().getEditPartRegistry().put(view.getElement(), this);\t" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void unregisterModel() {" + NL + "\t\tsuper.unregisterModel();" + NL + "\t\t"; |
43 |
protected final String TEXT_22 = " createDeleteCommand("; |
43 |
protected final String TEXT_22 = " view = ("; |
44 |
protected final String TEXT_23 = " deleteRequest) {" + NL + "\t\t\t\t"; |
44 |
protected final String TEXT_23 = ") getModel();" + NL + "\t\tif (view != null && view.isSetElement() && view.getElement() != null && getViewer().getEditPartRegistry().get(view.getElement()) == this) {" + NL + "\t\t\tgetViewer().getEditPartRegistry().remove(view.getElement());" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void createEditPolicies() {"; |
45 |
protected final String TEXT_24 = " editingDomain = "; |
45 |
protected final String TEXT_24 = NL; |
46 |
protected final String TEXT_25 = ".getEditingDomain(getDiagramNode().getDiagram().getElement());" + NL + "\t\t\t\t"; |
46 |
protected final String TEXT_25 = "\t\tinstallEditPolicy("; |
47 |
protected final String TEXT_26 = " cc = new "; |
47 |
protected final String TEXT_26 = ".COMPONENT_ROLE, new "; |
48 |
protected final String TEXT_27 = "();" + NL + "\t\t\t\tcc.append(getDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append("; |
48 |
protected final String TEXT_27 = "() {" + NL + "\t\t\tprotected "; |
49 |
protected final String TEXT_28 = ".create(editingDomain, getDiagramNode()));" + NL + "\t\t\t\treturn new WrappingCommand(editingDomain, cc);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprivate org.eclipse.emf.common.command.Command getDomainModelRemoveCommand("; |
49 |
protected final String TEXT_28 = " createDeleteCommand("; |
50 |
protected final String TEXT_29 = " editingDomain) {"; |
50 |
protected final String TEXT_29 = " deleteRequest) {" + NL + "\t\t\t\t"; |
51 |
protected final String TEXT_30 = NL + "\t\t\t\t"; |
51 |
protected final String TEXT_30 = " editingDomain = "; |
52 |
protected final String TEXT_31 = " result = new "; |
52 |
protected final String TEXT_31 = ".getEditingDomain(getDiagramNode().getDiagram().getElement());" + NL + "\t\t\t\t"; |
53 |
protected final String TEXT_32 = "();"; |
53 |
protected final String TEXT_32 = " cc = new "; |
54 |
protected final String TEXT_33 = NL + "\t\t\t\tresult.append("; |
54 |
protected final String TEXT_33 = "();" + NL + "\t\t\t\tcc.append(getDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append("; |
55 |
protected final String TEXT_34 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
55 |
protected final String TEXT_34 = ".create(editingDomain, getDiagramNode()));" + NL + "\t\t\t\treturn new WrappingCommand(editingDomain, cc);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprivate org.eclipse.emf.common.command.Command getDomainModelRemoveCommand("; |
56 |
protected final String TEXT_35 = ".eINSTANCE.get"; |
56 |
protected final String TEXT_35 = " editingDomain) {"; |
57 |
protected final String TEXT_36 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));"; |
57 |
protected final String TEXT_36 = NL + "\t\t\t\t"; |
58 |
protected final String TEXT_37 = NL + "\t\t\t\tresult.append("; |
58 |
protected final String TEXT_37 = " result = new "; |
59 |
protected final String TEXT_38 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
59 |
protected final String TEXT_38 = "();"; |
60 |
protected final String TEXT_39 = ".eINSTANCE.get"; |
60 |
protected final String TEXT_39 = NL + "\t\t\t\tresult.append("; |
61 |
protected final String TEXT_40 = "()," + NL + "\t\t\t\t\t"; |
61 |
protected final String TEXT_40 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
62 |
protected final String TEXT_41 = ".UNSET_VALUE));"; |
62 |
protected final String TEXT_41 = ".eINSTANCE.get"; |
63 |
protected final String TEXT_42 = NL + "\t\t\t\tresult.append("; |
63 |
protected final String TEXT_42 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));"; |
64 |
protected final String TEXT_43 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
64 |
protected final String TEXT_43 = NL + "\t\t\t\tresult.append("; |
65 |
protected final String TEXT_44 = ".eINSTANCE.get"; |
65 |
protected final String TEXT_44 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
66 |
protected final String TEXT_45 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));"; |
66 |
protected final String TEXT_45 = ".eINSTANCE.get"; |
67 |
protected final String TEXT_46 = NL + "\t\t\t\tresult.append("; |
67 |
protected final String TEXT_46 = "()," + NL + "\t\t\t\t\t"; |
68 |
protected final String TEXT_47 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
68 |
protected final String TEXT_47 = ".UNSET_VALUE));"; |
69 |
protected final String TEXT_48 = ".eINSTANCE.get"; |
69 |
protected final String TEXT_48 = NL + "\t\t\t\tresult.append("; |
70 |
protected final String TEXT_49 = "()," + NL + "\t\t\t\t\t"; |
70 |
protected final String TEXT_49 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
71 |
protected final String TEXT_50 = ".UNSET_VALUE));"; |
71 |
protected final String TEXT_50 = ".eINSTANCE.get"; |
72 |
protected final String TEXT_51 = NL + "\t\t\t\treturn result;"; |
72 |
protected final String TEXT_51 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));"; |
73 |
protected final String TEXT_52 = NL + "\t\t\t\treturn "; |
73 |
protected final String TEXT_52 = NL + "\t\t\t\tresult.append("; |
74 |
protected final String TEXT_53 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
74 |
protected final String TEXT_53 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
75 |
protected final String TEXT_54 = ".eINSTANCE.get"; |
75 |
protected final String TEXT_54 = ".eINSTANCE.get"; |
76 |
protected final String TEXT_55 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement());"; |
76 |
protected final String TEXT_55 = "()," + NL + "\t\t\t\t\t"; |
77 |
protected final String TEXT_56 = NL + "\t\t\t\treturn "; |
77 |
protected final String TEXT_56 = ".UNSET_VALUE));"; |
78 |
protected final String TEXT_57 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
78 |
protected final String TEXT_57 = NL + "\t\t\t\treturn result;"; |
79 |
protected final String TEXT_58 = ".eINSTANCE.get"; |
79 |
protected final String TEXT_58 = NL + "\t\t\t\treturn "; |
80 |
protected final String TEXT_59 = "()," + NL + "\t\t\t\t\t"; |
80 |
protected final String TEXT_59 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
81 |
protected final String TEXT_60 = ".UNSET_VALUE);"; |
81 |
protected final String TEXT_60 = ".eINSTANCE.get"; |
82 |
protected final String TEXT_61 = NL + "\t\t\t}" + NL + "\t\t});"; |
82 |
protected final String TEXT_61 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement());"; |
83 |
protected final String TEXT_62 = NL + "\t\tinstallEditPolicy("; |
83 |
protected final String TEXT_62 = NL + "\t\t\t\treturn "; |
84 |
protected final String TEXT_63 = ".LAYOUT_ROLE, new "; |
84 |
protected final String TEXT_63 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
85 |
protected final String TEXT_64 = "() {" + NL + "\t\t\tprotected "; |
85 |
protected final String TEXT_64 = ".eINSTANCE.get"; |
86 |
protected final String TEXT_65 = " getCreateCommand("; |
86 |
protected final String TEXT_65 = "()," + NL + "\t\t\t\t\t"; |
87 |
protected final String TEXT_66 = " request) {" + NL + "\t\t\t\treturn "; |
87 |
protected final String TEXT_66 = ".UNSET_VALUE);"; |
88 |
protected final String TEXT_67 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor("; |
88 |
protected final String TEXT_67 = NL + "\t\t\t}" + NL + "\t\t});"; |
89 |
protected final String TEXT_68 = " rect) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor("; |
89 |
protected final String TEXT_68 = NL + "\t\tinstallEditPolicy("; |
90 |
protected final String TEXT_69 = " point) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
90 |
protected final String TEXT_69 = ".LAYOUT_ROLE, new "; |
91 |
protected final String TEXT_70 = " createChangeConstraintCommand("; |
91 |
protected final String TEXT_70 = "() {" + NL + "\t\t\tprotected "; |
92 |
protected final String TEXT_71 = " child, Object constraint) {" + NL + "\t\t\t\treturn "; |
92 |
protected final String TEXT_71 = " getCreateCommand("; |
93 |
protected final String TEXT_72 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
93 |
protected final String TEXT_72 = " request) {" + NL + "\t\t\t\treturn "; |
94 |
protected final String TEXT_73 = " createChildEditPolicy("; |
94 |
protected final String TEXT_73 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor("; |
95 |
protected final String TEXT_74 = " child) {" + NL + "\t\t\t\treturn new "; |
95 |
protected final String TEXT_74 = " rect) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor("; |
96 |
protected final String TEXT_75 = "() {" + NL + "\t\t\t\t\tpublic "; |
96 |
protected final String TEXT_75 = " point) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
97 |
protected final String TEXT_76 = " getTargetEditPart("; |
97 |
protected final String TEXT_76 = " createChangeConstraintCommand("; |
98 |
protected final String TEXT_77 = " request) {" + NL + "\t\t\t\t\t\tif ("; |
98 |
protected final String TEXT_77 = " child, Object constraint) {" + NL + "\t\t\t\treturn "; |
99 |
protected final String TEXT_78 = ".REQ_SELECTION.equals(request.getType())) {" + NL + "\t\t\t\t\t\t\treturn "; |
99 |
protected final String TEXT_78 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
100 |
protected final String TEXT_79 = ".this;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\treturn super.getTargetEditPart(request);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t\tinstallEditPolicy("; |
100 |
protected final String TEXT_79 = " createChildEditPolicy("; |
101 |
protected final String TEXT_80 = ".GRAPHICAL_NODE_ROLE, new "; |
101 |
protected final String TEXT_80 = " child) {" + NL + "\t\t\t\treturn new "; |
102 |
protected final String TEXT_81 = "() {" + NL + "\t\t\tprotected "; |
102 |
protected final String TEXT_81 = "() {" + NL + "\t\t\t\t\tpublic "; |
103 |
protected final String TEXT_82 = " getReconnectTargetCommand("; |
103 |
protected final String TEXT_82 = " getTargetEditPart("; |
104 |
protected final String TEXT_83 = " request) {"; |
104 |
protected final String TEXT_83 = " request) {" + NL + "\t\t\t\t\t\tif ("; |
105 |
protected final String TEXT_84 = " " + NL + "\t\t\t\treturn "; |
105 |
protected final String TEXT_84 = ".REQ_SELECTION.equals(request.getType())) {" + NL + "\t\t\t\t\t\t\treturn "; |
106 |
protected final String TEXT_85 = ".INSTANCE;"; |
106 |
protected final String TEXT_85 = ".this;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\treturn super.getTargetEditPart(request);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t\tinstallEditPolicy("; |
107 |
protected final String TEXT_86 = NL + "\t\t\t\t"; |
107 |
protected final String TEXT_86 = ".GRAPHICAL_NODE_ROLE, new "; |
108 |
protected final String TEXT_87 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof "; |
108 |
protected final String TEXT_87 = "() {" + NL + "\t\t\tprotected "; |
109 |
protected final String TEXT_88 = " == false) {" + NL + "\t\t\t\t\treturn "; |
109 |
protected final String TEXT_88 = " getReconnectTargetCommand("; |
110 |
protected final String TEXT_89 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; |
110 |
protected final String TEXT_89 = " request) {"; |
111 |
protected final String TEXT_90 = " edge = ("; |
111 |
protected final String TEXT_90 = " " + NL + "\t\t\t\treturn "; |
112 |
protected final String TEXT_91 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = "; |
112 |
protected final String TEXT_91 = ".INSTANCE;"; |
113 |
protected final String TEXT_92 = ".getModelID(edge);" + NL + "\t\t\t\tif (!"; |
113 |
protected final String TEXT_92 = NL + "\t\t\t\t"; |
114 |
protected final String TEXT_93 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn "; |
114 |
protected final String TEXT_93 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof "; |
115 |
protected final String TEXT_94 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; |
115 |
protected final String TEXT_94 = " == false) {" + NL + "\t\t\t\t\treturn "; |
116 |
protected final String TEXT_95 = " result = null;" + NL + "\t\t\t\tint visualID = "; |
116 |
protected final String TEXT_95 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; |
117 |
protected final String TEXT_96 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {"; |
117 |
protected final String TEXT_96 = " edge = ("; |
118 |
protected final String TEXT_97 = NL + "\t\t\t\tcase "; |
118 |
protected final String TEXT_97 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = "; |
119 |
protected final String TEXT_98 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new Reconnect"; |
119 |
protected final String TEXT_98 = ".getModelID(edge);" + NL + "\t\t\t\tif (!"; |
120 |
protected final String TEXT_99 = "TargetCommand(request);" + NL + "\t\t\t\t\tbreak;"; |
120 |
protected final String TEXT_99 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn "; |
121 |
protected final String TEXT_100 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn "; |
121 |
protected final String TEXT_100 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; |
122 |
protected final String TEXT_101 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new WrappingCommand("; |
122 |
protected final String TEXT_101 = " result = null;" + NL + "\t\t\t\tint visualID = "; |
123 |
protected final String TEXT_102 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);"; |
123 |
protected final String TEXT_102 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {"; |
124 |
protected final String TEXT_103 = NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
124 |
protected final String TEXT_103 = NL + "\t\t\t\tcase "; |
125 |
protected final String TEXT_104 = " getReconnectSourceCommand("; |
125 |
protected final String TEXT_104 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new Reconnect"; |
126 |
protected final String TEXT_105 = " request) {"; |
126 |
protected final String TEXT_105 = "TargetCommand(request);" + NL + "\t\t\t\t\tbreak;"; |
127 |
protected final String TEXT_106 = " " + NL + "\t\t\t\treturn "; |
127 |
protected final String TEXT_106 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn "; |
128 |
protected final String TEXT_107 = ".INSTANCE;"; |
128 |
protected final String TEXT_107 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new WrappingCommand("; |
129 |
protected final String TEXT_108 = NL + "\t\t\t\t"; |
129 |
protected final String TEXT_108 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);"; |
130 |
protected final String TEXT_109 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof "; |
130 |
protected final String TEXT_109 = NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
131 |
protected final String TEXT_110 = " == false) {" + NL + "\t\t\t\t\treturn "; |
131 |
protected final String TEXT_110 = " getReconnectSourceCommand("; |
132 |
protected final String TEXT_111 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; |
132 |
protected final String TEXT_111 = " request) {"; |
133 |
protected final String TEXT_112 = " edge = ("; |
133 |
protected final String TEXT_112 = " " + NL + "\t\t\t\treturn "; |
134 |
protected final String TEXT_113 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = "; |
134 |
protected final String TEXT_113 = ".INSTANCE;"; |
135 |
protected final String TEXT_114 = ".getModelID(edge);" + NL + "\t\t\t\tif (!"; |
135 |
protected final String TEXT_114 = NL + "\t\t\t\t"; |
136 |
protected final String TEXT_115 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn "; |
136 |
protected final String TEXT_115 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof "; |
137 |
protected final String TEXT_116 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; |
137 |
protected final String TEXT_116 = " == false) {" + NL + "\t\t\t\t\treturn "; |
138 |
protected final String TEXT_117 = " result = null;" + NL + "\t\t\t\tint visualID = "; |
138 |
protected final String TEXT_117 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; |
139 |
protected final String TEXT_118 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {"; |
139 |
protected final String TEXT_118 = " edge = ("; |
140 |
protected final String TEXT_119 = NL + "\t\t\t\tcase "; |
140 |
protected final String TEXT_119 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = "; |
141 |
protected final String TEXT_120 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new Reconnect"; |
141 |
protected final String TEXT_120 = ".getModelID(edge);" + NL + "\t\t\t\tif (!"; |
142 |
protected final String TEXT_121 = "SourceCommand(request);" + NL + "\t\t\t\t\tbreak;"; |
142 |
protected final String TEXT_121 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn "; |
143 |
protected final String TEXT_122 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn "; |
143 |
protected final String TEXT_122 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; |
144 |
protected final String TEXT_123 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new WrappingCommand("; |
144 |
protected final String TEXT_123 = " result = null;" + NL + "\t\t\t\tint visualID = "; |
145 |
protected final String TEXT_124 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);"; |
145 |
protected final String TEXT_124 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {"; |
146 |
protected final String TEXT_125 = NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
146 |
protected final String TEXT_125 = NL + "\t\t\t\tcase "; |
147 |
protected final String TEXT_126 = " getConnectionCreateCommand("; |
147 |
protected final String TEXT_126 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new Reconnect"; |
148 |
protected final String TEXT_127 = " request) {"; |
148 |
protected final String TEXT_127 = "SourceCommand(request);" + NL + "\t\t\t\t\tbreak;"; |
149 |
protected final String TEXT_128 = NL + "\t\t\t\tif (request instanceof "; |
149 |
protected final String TEXT_128 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn "; |
150 |
protected final String TEXT_129 = ".CreateConnectionRequestEx) {" + NL + "\t\t\t\t\t"; |
150 |
protected final String TEXT_129 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new WrappingCommand("; |
151 |
protected final String TEXT_130 = ".CreateConnectionRequestEx requestEx = ("; |
151 |
protected final String TEXT_130 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);"; |
152 |
protected final String TEXT_131 = ".CreateConnectionRequestEx) request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; |
152 |
protected final String TEXT_131 = NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
153 |
protected final String TEXT_132 = " result = new "; |
153 |
protected final String TEXT_132 = " getConnectionCreateCommand("; |
154 |
protected final String TEXT_133 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; |
154 |
protected final String TEXT_133 = " request) {"; |
155 |
protected final String TEXT_134 = NL + "\t\t\t\t\t\tcase "; |
155 |
protected final String TEXT_134 = NL + "\t\t\t\tif (request instanceof "; |
156 |
protected final String TEXT_135 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new Create"; |
156 |
protected final String TEXT_135 = ".CreateConnectionRequestEx) {" + NL + "\t\t\t\t\t"; |
157 |
protected final String TEXT_136 = "StartCommand(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;"; |
157 |
protected final String TEXT_136 = ".CreateConnectionRequestEx requestEx = ("; |
158 |
protected final String TEXT_137 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (result.getCommandList().size() != 1 || !result.canExecute()) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\t//returning an unexecutable command does not change cursor to \"No\"." + NL + "\t\t\t\t\t\treturn null;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t"; |
158 |
protected final String TEXT_137 = ".CreateConnectionRequestEx) request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; |
159 |
protected final String TEXT_138 = " wrappedResult = new WrappingCommand("; |
159 |
protected final String TEXT_138 = " result = new "; |
160 |
protected final String TEXT_139 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t\trequest.setStartCommand(wrappedResult);" + NL + "\t\t\t\t\treturn wrappedResult;" + NL + "\t\t\t\t}"; |
160 |
protected final String TEXT_139 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; |
161 |
protected final String TEXT_140 = NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
161 |
protected final String TEXT_140 = NL + "\t\t\t\t\t\tcase "; |
162 |
protected final String TEXT_141 = " getConnectionCompleteCommand("; |
162 |
protected final String TEXT_141 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new Create"; |
163 |
protected final String TEXT_142 = " request) {"; |
163 |
protected final String TEXT_142 = "StartCommand(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;"; |
164 |
protected final String TEXT_143 = NL + "\t\t\t\tif (request.getStartCommand() == null || !request.getStartCommand().canExecute()) {" + NL + "\t\t\t\t\treturn "; |
164 |
protected final String TEXT_143 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (result.getCommandList().size() != 1 || !result.canExecute()) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\t//returning an unexecutable command does not change cursor to \"No\"." + NL + "\t\t\t\t\t\treturn null;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t"; |
165 |
protected final String TEXT_144 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tif (request instanceof "; |
165 |
protected final String TEXT_144 = " wrappedResult = new WrappingCommand("; |
166 |
protected final String TEXT_145 = ".CreateConnectionRequestEx) {" + NL + "\t\t\t\t\t"; |
166 |
protected final String TEXT_145 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t\trequest.setStartCommand(wrappedResult);" + NL + "\t\t\t\t\treturn wrappedResult;" + NL + "\t\t\t\t}"; |
167 |
protected final String TEXT_146 = ".CreateConnectionRequestEx requestEx = ("; |
167 |
protected final String TEXT_146 = NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
168 |
protected final String TEXT_147 = ".CreateConnectionRequestEx) request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; |
168 |
protected final String TEXT_147 = " getConnectionCompleteCommand("; |
169 |
protected final String TEXT_148 = " result = new "; |
169 |
protected final String TEXT_148 = " request) {"; |
170 |
protected final String TEXT_149 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; |
170 |
protected final String TEXT_149 = NL + "\t\t\t\tif (request.getStartCommand() == null || !request.getStartCommand().canExecute()) {" + NL + "\t\t\t\t\treturn "; |
171 |
protected final String TEXT_150 = NL + "\t\t\t\t\t\tcase "; |
171 |
protected final String TEXT_150 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tif (request instanceof "; |
172 |
protected final String TEXT_151 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new Create"; |
172 |
protected final String TEXT_151 = ".CreateConnectionRequestEx) {" + NL + "\t\t\t\t\t"; |
173 |
protected final String TEXT_152 = "Command(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;"; |
173 |
protected final String TEXT_152 = ".CreateConnectionRequestEx requestEx = ("; |
174 |
protected final String TEXT_153 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (result.getCommandList().size() != 1) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\treturn "; |
174 |
protected final String TEXT_153 = ".CreateConnectionRequestEx) request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; |
175 |
protected final String TEXT_154 = ".INSTANCE;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new WrappingCommand("; |
175 |
protected final String TEXT_154 = " result = new "; |
176 |
protected final String TEXT_155 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t}"; |
176 |
protected final String TEXT_155 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; |
177 |
protected final String TEXT_156 = NL + "\t\t\t\treturn "; |
177 |
protected final String TEXT_156 = NL + "\t\t\t\t\t\tcase "; |
178 |
protected final String TEXT_157 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
178 |
protected final String TEXT_157 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new Create"; |
179 |
protected final String TEXT_158 = " createFigure() {" + NL + "\t\t"; |
179 |
protected final String TEXT_158 = "Command(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;"; |
180 |
protected final String TEXT_159 = " invisibleRectangle = new "; |
180 |
protected final String TEXT_159 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (result.getCommandList().size() != 1) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\treturn "; |
181 |
protected final String TEXT_160 = "();" + NL + "\t\tinvisibleRectangle.setLayoutManager(new "; |
181 |
protected final String TEXT_160 = ".INSTANCE;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new WrappingCommand("; |
182 |
protected final String TEXT_161 = "());" + NL + "\t\t"; |
182 |
protected final String TEXT_161 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t}"; |
183 |
protected final String TEXT_162 = " shape = createNodeShape();" + NL + "\t\tinvisibleRectangle.add(shape);" + NL + "\t\tcontentPane = setupContentPane(shape);" + NL + "\t\t" + NL + "\t\t"; |
183 |
protected final String TEXT_162 = NL + "\t\t\t\treturn "; |
184 |
protected final String TEXT_163 = " decorationShape = createDecorationPane();" + NL + "\t\tif (decorationShape != null) {" + NL + "\t\t\tinvisibleRectangle.add(decorationShape);" + NL + "\t\t}" + NL + "" + NL + "\t\treturn invisibleRectangle;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
184 |
protected final String TEXT_163 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t});"; |
185 |
protected final String TEXT_164 = " createNodeShape() {"; |
185 |
protected final String TEXT_164 = NL + "\t\tinstallLinkNotationModelRefresher();"; |
186 |
protected final String TEXT_165 = NL + "\t\tprimaryShape = new "; |
186 |
protected final String TEXT_165 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
187 |
protected final String TEXT_166 = "()"; |
187 |
protected final String TEXT_166 = " createFigure() {" + NL + "\t\t"; |
188 |
protected final String TEXT_167 = " {" + NL + "\t\t\tprotected boolean useLocalCoordinates() {" + NL + "\t\t\t\treturn true;" + NL + "\t\t\t}" + NL + "\t\t}"; |
188 |
protected final String TEXT_167 = " invisibleRectangle = new "; |
189 |
protected final String TEXT_168 = ";"; |
189 |
protected final String TEXT_168 = "();" + NL + "\t\tinvisibleRectangle.setLayoutManager(new "; |
190 |
protected final String TEXT_169 = NL + "\t\tprimaryShape = "; |
190 |
protected final String TEXT_169 = "());" + NL + "\t\t"; |
191 |
protected final String TEXT_170 = ";"; |
191 |
protected final String TEXT_170 = " shape = createNodeShape();" + NL + "\t\tinvisibleRectangle.add(shape);" + NL + "\t\tcontentPane = setupContentPane(shape);" + NL + "\t\t" + NL + "\t\t"; |
192 |
protected final String TEXT_171 = NL + "\t\t"; |
192 |
protected final String TEXT_171 = " decorationShape = createDecorationPane();" + NL + "\t\tif (decorationShape != null) {" + NL + "\t\t\tinvisibleRectangle.add(decorationShape);" + NL + "\t\t}" + NL + "" + NL + "\t\treturn invisibleRectangle;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
193 |
protected final String TEXT_172 = " figure = new "; |
193 |
protected final String TEXT_172 = " createNodeShape() {"; |
194 |
protected final String TEXT_173 = "();"; |
194 |
protected final String TEXT_173 = NL + "\t\tprimaryShape = new "; |
195 |
protected final String TEXT_174 = NL + " \t\tfigure.setUseLocalCoordinates(true);"; |
195 |
protected final String TEXT_174 = "()"; |
196 |
protected final String TEXT_175 = NL + " \t\tprimaryShape = figure;"; |
196 |
protected final String TEXT_175 = " {" + NL + "\t\t\tprotected boolean useLocalCoordinates() {" + NL + "\t\t\t\treturn true;" + NL + "\t\t\t}" + NL + "\t\t}"; |
197 |
protected final String TEXT_176 = NL + "\t\treturn primaryShape;" + NL + "\t}"; |
197 |
protected final String TEXT_176 = ";"; |
198 |
protected final String TEXT_177 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
198 |
protected final String TEXT_177 = NL + "\t\tprimaryShape = "; |
199 |
protected final String TEXT_178 = " getPrimaryShape() {" + NL + "\t\treturn ("; |
199 |
protected final String TEXT_178 = ";"; |
200 |
protected final String TEXT_179 = ") primaryShape;" + NL + "\t}"; |
200 |
protected final String TEXT_179 = NL + "\t\t"; |
201 |
protected final String TEXT_180 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
201 |
protected final String TEXT_180 = " figure = new "; |
202 |
protected final String TEXT_181 = " createDecorationPane() {" + NL + "\t\t"; |
202 |
protected final String TEXT_181 = "();"; |
203 |
protected final String TEXT_182 = " view = ("; |
203 |
protected final String TEXT_182 = NL + " \t\tfigure.setUseLocalCoordinates(true);"; |
204 |
protected final String TEXT_183 = ") getModel();" + NL + "\t\t"; |
204 |
protected final String TEXT_183 = NL + " \t\tprimaryShape = figure;"; |
205 |
protected final String TEXT_184 = " annotation = view.getEAnnotation(\"Shortcut\"); //$NON-NLS-1$" + NL + "\t\tif (annotation == null) {" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t"; |
205 |
protected final String TEXT_184 = NL + "\t\treturn primaryShape;" + NL + "\t}"; |
206 |
protected final String TEXT_185 = " decorationPane = new "; |
206 |
protected final String TEXT_185 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
207 |
protected final String TEXT_186 = "();" + NL + "\t\tdecorationPane.setLayoutManager(new "; |
207 |
protected final String TEXT_186 = " getPrimaryShape() {" + NL + "\t\treturn ("; |
208 |
protected final String TEXT_187 = "());" + NL + "" + NL + "\t\t"; |
208 |
protected final String TEXT_187 = ") primaryShape;" + NL + "\t}"; |
209 |
protected final String TEXT_188 = " imageFigure = new "; |
209 |
protected final String TEXT_188 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
210 |
protected final String TEXT_189 = "("; |
210 |
protected final String TEXT_189 = " createDecorationPane() {" + NL + "\t\t"; |
211 |
protected final String TEXT_190 = ".getInstance().getBundledImage(\"icons/shortcut.gif\"), "; |
211 |
protected final String TEXT_190 = " view = ("; |
212 |
protected final String TEXT_191 = ".EAST);" + NL + "\t\tdecorationPane.add(imageFigure, "; |
212 |
protected final String TEXT_191 = ") getModel();" + NL + "\t\t"; |
213 |
protected final String TEXT_192 = ".BOTTOM);" + NL + " \t\treturn decorationPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Default implementation treats passed figure as content pane." + NL + "\t * Respects layout one may have set for generated figure." + NL + "\t * @param nodeShape instance of generated figure class" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
213 |
protected final String TEXT_192 = " annotation = view.getEAnnotation(\"Shortcut\"); //$NON-NLS-1$" + NL + "\t\tif (annotation == null) {" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t"; |
214 |
protected final String TEXT_193 = " setupContentPane("; |
214 |
protected final String TEXT_193 = " decorationPane = new "; |
215 |
protected final String TEXT_194 = " nodeShape) {" + NL + "\t\tif (nodeShape.getLayoutManager() == null) {"; |
215 |
protected final String TEXT_194 = "();" + NL + "\t\tdecorationPane.setLayoutManager(new "; |
216 |
protected final String TEXT_195 = NL + "\t\t\t"; |
216 |
protected final String TEXT_195 = "());" + NL + "" + NL + "\t\t"; |
217 |
protected final String TEXT_196 = " layout = new "; |
217 |
protected final String TEXT_196 = " imageFigure = new "; |
218 |
protected final String TEXT_197 = "();" + NL + "\t\t\tlayout.setSpacing(5);" + NL + "\t\t\tnodeShape.setLayoutManager(layout);"; |
218 |
protected final String TEXT_197 = "("; |
219 |
protected final String TEXT_198 = NL + "\t\tnodeShape.setLayoutManager(new "; |
219 |
protected final String TEXT_198 = ".getInstance().getBundledImage(\"icons/shortcut.gif\"), "; |
220 |
protected final String TEXT_199 = "() {" + NL + "" + NL + "\t\t\tpublic Object getConstraint("; |
220 |
protected final String TEXT_199 = ".EAST);" + NL + "\t\tdecorationPane.add(imageFigure, "; |
221 |
protected final String TEXT_200 = " figure) {" + NL + "\t\t\t\tObject result = constraints.get(figure);" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\tresult = new "; |
221 |
protected final String TEXT_200 = ".BOTTOM);" + NL + " \t\treturn decorationPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Default implementation treats passed figure as content pane." + NL + "\t * Respects layout one may have set for generated figure." + NL + "\t * @param nodeShape instance of generated figure class" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
222 |
protected final String TEXT_201 = "(0, 0, -1, -1);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn result;" + NL + "\t\t\t}" + NL + "\t\t});"; |
222 |
protected final String TEXT_201 = " setupContentPane("; |
223 |
protected final String TEXT_202 = NL + "\t\t}" + NL + "\t\treturn nodeShape; // use nodeShape itself as contentPane" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
223 |
protected final String TEXT_202 = " nodeShape) {" + NL + "\t\tif (nodeShape.getLayoutManager() == null) {"; |
224 |
protected final String TEXT_203 = " getContentPane() {" + NL + "\t\tif (contentPane == null) {" + NL + "\t\t\treturn super.getContentPane();" + NL + "\t\t}" + NL + "\t\treturn contentPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
224 |
protected final String TEXT_203 = NL + "\t\t\t"; |
225 |
protected final String TEXT_204 = " getDiagramNode() {" + NL + "\t\treturn ("; |
225 |
protected final String TEXT_204 = " layout = new "; |
226 |
protected final String TEXT_205 = ") getModel();" + NL + "\t}" + NL; |
226 |
protected final String TEXT_205 = "();" + NL + "\t\t\tlayout.setSpacing(5);" + NL + "\t\t\tnodeShape.setLayoutManager(layout);"; |
227 |
protected final String TEXT_206 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean addFixedChild("; |
227 |
protected final String TEXT_206 = NL + "\t\tnodeShape.setLayoutManager(new "; |
228 |
protected final String TEXT_207 = " childEditPart) {"; |
228 |
protected final String TEXT_207 = "() {" + NL + "" + NL + "\t\t\tpublic Object getConstraint("; |
229 |
protected final String TEXT_208 = NL + "\t\tif (childEditPart instanceof "; |
229 |
protected final String TEXT_208 = " figure) {" + NL + "\t\t\t\tObject result = constraints.get(figure);" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\tresult = new "; |
230 |
protected final String TEXT_209 = ") {" + NL + "\t\t\t(("; |
230 |
protected final String TEXT_209 = "(0, 0, -1, -1);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn result;" + NL + "\t\t\t}" + NL + "\t\t});"; |
231 |
protected final String TEXT_210 = ") childEditPart)."; |
231 |
protected final String TEXT_210 = NL + "\t\t}" + NL + "\t\treturn nodeShape; // use nodeShape itself as contentPane" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
232 |
protected final String TEXT_211 = "(getPrimaryShape()."; |
232 |
protected final String TEXT_211 = " getContentPane() {" + NL + "\t\tif (contentPane == null) {" + NL + "\t\t\treturn super.getContentPane();" + NL + "\t\t}" + NL + "\t\treturn contentPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
233 |
protected final String TEXT_212 = "());" + NL + "\t\t\treturn true;" + NL + "\t\t}"; |
233 |
protected final String TEXT_212 = " getDiagramNode() {" + NL + "\t\treturn ("; |
234 |
protected final String TEXT_213 = NL + "\t\tif (childEditPart instanceof "; |
234 |
protected final String TEXT_213 = ") getModel();" + NL + "\t}" + NL; |
235 |
protected final String TEXT_214 = ") {" + NL + "\t\t\t"; |
235 |
protected final String TEXT_214 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean addFixedChild("; |
236 |
protected final String TEXT_215 = " pane = getPrimaryShape()."; |
236 |
protected final String TEXT_215 = " childEditPart) {"; |
237 |
protected final String TEXT_216 = "();" + NL + "\t\t\tsetupContentPane(pane); // FIXME each comparment should handle his content pane in his own way " + NL + "\t\t\tpane.add((("; |
237 |
protected final String TEXT_216 = NL + "\t\tif (childEditPart instanceof "; |
238 |
protected final String TEXT_217 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t"; |
238 |
protected final String TEXT_217 = ") {" + NL + "\t\t\t(("; |
239 |
protected final String TEXT_218 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean removeFixedChild(EditPart childEditPart) {"; |
239 |
protected final String TEXT_218 = ") childEditPart)."; |
240 |
protected final String TEXT_219 = "\t\t" + NL + "\t\tif (childEditPart instanceof "; |
240 |
protected final String TEXT_219 = "(getPrimaryShape()."; |
241 |
protected final String TEXT_220 = ") {" + NL + "\t\t\t"; |
241 |
protected final String TEXT_220 = "());" + NL + "\t\t\treturn true;" + NL + "\t\t}"; |
242 |
protected final String TEXT_221 = " pane = getPrimaryShape()."; |
242 |
protected final String TEXT_221 = NL + "\t\tif (childEditPart instanceof "; |
243 |
protected final String TEXT_222 = "();" + NL + "\t\t\tpane.remove((("; |
243 |
protected final String TEXT_222 = ") {" + NL + "\t\t\t"; |
244 |
protected final String TEXT_223 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t"; |
244 |
protected final String TEXT_223 = " pane = getPrimaryShape()."; |
245 |
protected final String TEXT_224 = NL + "\t\treturn false;" + NL + "\t}"; |
245 |
protected final String TEXT_224 = "();" + NL + "\t\t\tsetupContentPane(pane); // FIXME each comparment should handle his content pane in his own way " + NL + "\t\t\tpane.add((("; |
246 |
protected final String TEXT_225 = NL + NL + "\t/**" + NL + "\t * Returns the label which should be direct-edited by default." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
246 |
protected final String TEXT_225 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t"; |
247 |
protected final String TEXT_226 = " getPrimaryLabelEditPart() {"; |
247 |
protected final String TEXT_226 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean removeFixedChild(EditPart childEditPart) {"; |
248 |
protected final String TEXT_227 = NL + "\t\tfor("; |
248 |
protected final String TEXT_227 = "\t\t" + NL + "\t\tif (childEditPart instanceof "; |
249 |
protected final String TEXT_228 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; |
249 |
protected final String TEXT_228 = ") {" + NL + "\t\t\t"; |
250 |
protected final String TEXT_229 = " nextChild = ("; |
250 |
protected final String TEXT_229 = " pane = getPrimaryShape()."; |
251 |
protected final String TEXT_230 = ")it.next();" + NL + "\t\t\tif ("; |
251 |
protected final String TEXT_230 = "();" + NL + "\t\t\tpane.remove((("; |
252 |
protected final String TEXT_231 = ".getVisualID(nextChild) == "; |
252 |
protected final String TEXT_231 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t"; |
253 |
protected final String TEXT_232 = ".VISUAL_ID) {" + NL + "\t\t\t\treturn ("; |
253 |
protected final String TEXT_232 = NL + "\t\treturn false;" + NL + "\t}"; |
254 |
protected final String TEXT_233 = ") getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t}" + NL + "\t\t}"; |
254 |
protected final String TEXT_233 = NL + NL + "\t/**" + NL + "\t * Returns the label which should be direct-edited by default." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
255 |
protected final String TEXT_234 = NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest("; |
255 |
protected final String TEXT_234 = " getPrimaryLabelEditPart() {"; |
256 |
protected final String TEXT_235 = " req) {" + NL + "\t\tif ("; |
256 |
protected final String TEXT_235 = NL + "\t\tfor("; |
257 |
protected final String TEXT_236 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\t"; |
257 |
protected final String TEXT_236 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; |
258 |
protected final String TEXT_237 = " labelToEdit;" + NL + "\t\t\tif (req instanceof "; |
258 |
protected final String TEXT_237 = " nextChild = ("; |
259 |
protected final String TEXT_238 = ") {" + NL + "\t\t\t\tlabelToEdit = getLabelEditPart(("; |
259 |
protected final String TEXT_238 = ")it.next();" + NL + "\t\t\tif ("; |
260 |
protected final String TEXT_239 = ")req);" + NL + "\t\t\t} else {" + NL + "\t\t\t\tlabelToEdit = getPrimaryLabelEditPart();" + NL + "\t\t\t}" + NL + "\t\t\tif (labelToEdit != null) {" + NL + "\t\t\t\tlabelToEdit.performRequest(req);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
260 |
protected final String TEXT_239 = ".getVisualID(nextChild) == "; |
261 |
protected final String TEXT_240 = " getLabelEditPart("; |
261 |
protected final String TEXT_240 = ".VISUAL_ID) {" + NL + "\t\t\t\treturn ("; |
262 |
protected final String TEXT_241 = " req) {" + NL + "\t\t"; |
262 |
protected final String TEXT_241 = ") getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t}" + NL + "\t\t}"; |
263 |
protected final String TEXT_242 = " result = getViewer().findObjectAt(req.getLocation());" + NL + "\t\tif (result != null) {" + NL + "\t\t\t"; |
263 |
protected final String TEXT_242 = NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest("; |
264 |
protected final String TEXT_243 = " view = ("; |
264 |
protected final String TEXT_243 = " req) {" + NL + "\t\tif ("; |
265 |
protected final String TEXT_244 = ") result.getModel();" + NL + "\t\t\tif (getDiagramNode().getChildren().contains(view)) {" + NL + "\t\t\t\tint visualId = "; |
265 |
protected final String TEXT_244 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\t"; |
266 |
protected final String TEXT_245 = ".getVisualID(view);" + NL + "\t\t\t\tswitch (visualId) {"; |
266 |
protected final String TEXT_245 = " labelToEdit;" + NL + "\t\t\tif (req instanceof "; |
267 |
protected final String TEXT_246 = NL + "\t\t\t\tcase "; |
267 |
protected final String TEXT_246 = ") {" + NL + "\t\t\t\tlabelToEdit = getLabelEditPart(("; |
268 |
protected final String TEXT_247 = ".VISUAL_ID:" + NL + "\t\t\t\t\treturn result;"; |
268 |
protected final String TEXT_247 = ")req);" + NL + "\t\t\t} else {" + NL + "\t\t\t\tlabelToEdit = getPrimaryLabelEditPart();" + NL + "\t\t\t}" + NL + "\t\t\tif (labelToEdit != null) {" + NL + "\t\t\t\tlabelToEdit.performRequest(req);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
269 |
protected final String TEXT_248 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn getPrimaryLabelEditPart();" + NL + "\t}" + NL; |
269 |
protected final String TEXT_248 = " getLabelEditPart("; |
270 |
protected final String TEXT_249 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isExternalLabel("; |
270 |
protected final String TEXT_249 = " req) {" + NL + "\t\t"; |
271 |
protected final String TEXT_250 = " childEditPart) {"; |
271 |
protected final String TEXT_250 = " result = getViewer().findObjectAt(req.getLocation());" + NL + "\t\tif (result != null) {" + NL + "\t\t\t"; |
272 |
protected final String TEXT_251 = NL + "\t\tif (childEditPart instanceof "; |
272 |
protected final String TEXT_251 = " view = ("; |
273 |
protected final String TEXT_252 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}"; |
273 |
protected final String TEXT_252 = ") result.getModel();" + NL + "\t\t\tif (getDiagramNode().getChildren().contains(view)) {" + NL + "\t\t\t\tint visualId = "; |
274 |
protected final String TEXT_253 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
274 |
protected final String TEXT_253 = ".getVisualID(view);" + NL + "\t\t\t\tswitch (visualId) {"; |
275 |
protected final String TEXT_254 = " getExternalLabelsContainer() {" + NL + "\t\t"; |
275 |
protected final String TEXT_254 = NL + "\t\t\t\tcase "; |
276 |
protected final String TEXT_255 = " root = ("; |
276 |
protected final String TEXT_255 = ".VISUAL_ID:" + NL + "\t\t\t\t\treturn result;"; |
277 |
protected final String TEXT_256 = ") getRoot();" + NL + "\t\treturn root.getLayer("; |
277 |
protected final String TEXT_256 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn getPrimaryLabelEditPart();" + NL + "\t}" + NL; |
278 |
protected final String TEXT_257 = ".EXTERNAL_NODE_LABELS_LAYER);" + NL + "\t}" + NL; |
278 |
protected final String TEXT_257 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isExternalLabel("; |
279 |
protected final String TEXT_258 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void addChildVisual("; |
279 |
protected final String TEXT_258 = " childEditPart) {"; |
280 |
protected final String TEXT_259 = " childEditPart, int index) {"; |
280 |
protected final String TEXT_259 = NL + "\t\tif (childEditPart instanceof "; |
281 |
protected final String TEXT_260 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; |
281 |
protected final String TEXT_260 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}"; |
282 |
protected final String TEXT_261 = " labelFigure = (("; |
282 |
protected final String TEXT_261 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
283 |
protected final String TEXT_262 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().add(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; |
283 |
protected final String TEXT_262 = " getExternalLabelsContainer() {" + NL + "\t\t"; |
284 |
protected final String TEXT_263 = NL + "\t\tif (addFixedChild(childEditPart)) {" + NL + "\t\t\treturn;" + NL + "\t\t}"; |
284 |
protected final String TEXT_263 = " root = ("; |
285 |
protected final String TEXT_264 = NL + "\t\tsuper.addChildVisual(childEditPart, -1);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void removeChildVisual("; |
285 |
protected final String TEXT_264 = ") getRoot();" + NL + "\t\treturn root.getLayer("; |
286 |
protected final String TEXT_265 = " childEditPart) {"; |
286 |
protected final String TEXT_265 = ".EXTERNAL_NODE_LABELS_LAYER);" + NL + "\t}" + NL; |
287 |
protected final String TEXT_266 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; |
287 |
protected final String TEXT_266 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void addChildVisual("; |
288 |
protected final String TEXT_267 = " labelFigure = (("; |
288 |
protected final String TEXT_267 = " childEditPart, int index) {"; |
289 |
protected final String TEXT_268 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; |
289 |
protected final String TEXT_268 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; |
290 |
protected final String TEXT_269 = NL + "\t\tif (removeFixedChild(childEditPart)){" + NL + "\t\t\treturn;" + NL + "\t\t}"; |
290 |
protected final String TEXT_269 = " labelFigure = (("; |
291 |
protected final String TEXT_270 = NL + "\t\tsuper.removeChildVisual(childEditPart);" + NL + "\t}"; |
291 |
protected final String TEXT_270 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().add(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; |
292 |
protected final String TEXT_271 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeNotify() {" + NL + "\t\tfor ("; |
292 |
protected final String TEXT_271 = NL + "\t\tif (addFixedChild(childEditPart)) {" + NL + "\t\t\treturn;" + NL + "\t\t}"; |
293 |
protected final String TEXT_272 = " it = getChildren().iterator(); it.hasNext();) {" + NL + "\t\t\t"; |
293 |
protected final String TEXT_272 = NL + "\t\tsuper.addChildVisual(childEditPart, -1);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void removeChildVisual("; |
294 |
protected final String TEXT_273 = " childEditPart = ("; |
294 |
protected final String TEXT_273 = " childEditPart) {"; |
295 |
protected final String TEXT_274 = ") it.next();" + NL + "\t\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t\tIFigure labelFigure = (("; |
295 |
protected final String TEXT_274 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; |
296 |
protected final String TEXT_275 = ") childEditPart).getFigure();" + NL + "\t\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tsuper.removeNotify();" + NL + "\t}"; |
296 |
protected final String TEXT_275 = " labelFigure = (("; |
297 |
protected final String TEXT_276 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "\t\trefreshBounds();" + NL + "\t\trefreshBackgroundColor();" + NL + "\t\trefreshForegroundColor();" + NL + "\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = getDiagramNode().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 + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBounds() {" + NL + "\t\t"; |
297 |
protected final String TEXT_276 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; |
298 |
protected final String TEXT_277 = " node = getDiagramNode();" + NL + "\t\tassert node.getLayoutConstraint() instanceof "; |
298 |
protected final String TEXT_277 = NL + "\t\tif (removeFixedChild(childEditPart)){" + NL + "\t\t\treturn;" + NL + "\t\t}"; |
299 |
protected final String TEXT_278 = ";" + NL + "\t\t"; |
299 |
protected final String TEXT_278 = NL + "\t\tsuper.removeChildVisual(childEditPart);" + NL + "\t}"; |
300 |
protected final String TEXT_279 = " bounds = ("; |
300 |
protected final String TEXT_279 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeNotify() {" + NL + "\t\tfor ("; |
301 |
protected final String TEXT_280 = ") node.getLayoutConstraint();" + NL + "\t\t(("; |
301 |
protected final String TEXT_280 = " it = getChildren().iterator(); it.hasNext();) {" + NL + "\t\t\t"; |
302 |
protected final String TEXT_281 = ") getParent()).setLayoutConstraint(this, getFigure(), " + NL + "\t\t\tnew "; |
302 |
protected final String TEXT_281 = " childEditPart = ("; |
303 |
protected final String TEXT_282 = "(bounds.getX(), bounds.getY(), bounds.getWidth(), bounds.getHeight()));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
303 |
protected final String TEXT_282 = ") it.next();" + NL + "\t\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t\tIFigure labelFigure = (("; |
304 |
protected final String TEXT_283 = " getModelChildren() {" + NL + "\t\treturn getDiagramNode().getVisibleChildren();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
304 |
protected final String TEXT_283 = ") childEditPart).getFigure();" + NL + "\t\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tsuper.removeNotify();" + NL + "\t}"; |
305 |
protected final String TEXT_284 = " getModelSourceConnections() {" + NL + "\t\treturn getDiagramNode().getSourceEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
305 |
protected final String TEXT_284 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "\t\trefreshBounds();" + NL + "\t\trefreshBackgroundColor();" + NL + "\t\trefreshForegroundColor();" + NL + "\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = getDiagramNode().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 + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBounds() {" + NL + "\t\t"; |
306 |
protected final String TEXT_285 = " getModelTargetConnections() {" + NL + "\t\treturn getDiagramNode().getTargetEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
306 |
protected final String TEXT_285 = " node = getDiagramNode();" + NL + "\t\tassert node.getLayoutConstraint() instanceof "; |
307 |
protected final String TEXT_286 = " getSourceConnectionAnchor("; |
307 |
protected final String TEXT_286 = ";" + NL + "\t\t"; |
308 |
protected final String TEXT_287 = " connection) {" + NL + "\t\treturn new "; |
308 |
protected final String TEXT_287 = " bounds = ("; |
309 |
protected final String TEXT_288 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
309 |
protected final String TEXT_288 = ") node.getLayoutConstraint();" + NL + "\t\t(("; |
310 |
protected final String TEXT_289 = " getSourceConnectionAnchor("; |
310 |
protected final String TEXT_289 = ") getParent()).setLayoutConstraint(this, getFigure(), " + NL + "\t\t\tnew "; |
311 |
protected final String TEXT_290 = " request) {" + NL + "\t\treturn new "; |
311 |
protected final String TEXT_290 = "(bounds.getX(), bounds.getY(), bounds.getWidth(), bounds.getHeight()));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
312 |
protected final String TEXT_291 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
312 |
protected final String TEXT_291 = " getModelChildren() {" + NL + "\t\treturn getDiagramNode().getVisibleChildren();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
313 |
protected final String TEXT_292 = " getTargetConnectionAnchor("; |
313 |
protected final String TEXT_292 = " getModelSourceConnections() {" + NL + "\t\treturn getDiagramNode().getSourceEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
314 |
protected final String TEXT_293 = " connection) {" + NL + "\t\treturn new "; |
314 |
protected final String TEXT_293 = " getModelTargetConnections() {" + NL + "\t\treturn getDiagramNode().getTargetEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
315 |
protected final String TEXT_294 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
315 |
protected final String TEXT_294 = " getSourceConnectionAnchor("; |
316 |
protected final String TEXT_295 = " getTargetConnectionAnchor("; |
316 |
protected final String TEXT_295 = " connection) {" + NL + "\t\treturn new "; |
317 |
protected final String TEXT_296 = " request) {" + NL + "\t\treturn new "; |
317 |
protected final String TEXT_296 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
318 |
protected final String TEXT_297 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {"; |
318 |
protected final String TEXT_297 = " getSourceConnectionAnchor("; |
319 |
protected final String TEXT_298 = NL + "\t\treturn super.getAdapter(key);" + 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);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {" + NL + "\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}" + NL; |
319 |
protected final String TEXT_298 = " request) {" + NL + "\t\treturn new "; |
320 |
protected final String TEXT_299 = NL; |
320 |
protected final String TEXT_299 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
321 |
protected final String TEXT_300 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate DomainModelRefresher domainModelRefresher = new DomainModelRefresher();" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class DomainModelRefresher extends "; |
321 |
protected final String TEXT_300 = " getTargetConnectionAnchor("; |
322 |
protected final String TEXT_301 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void notifyChanged("; |
322 |
protected final String TEXT_301 = " connection) {" + NL + "\t\treturn new "; |
323 |
protected final String TEXT_302 = " msg) {" + NL + "\t\t\tsuper.notifyChanged(msg);" + NL + "\t\t\tif (msg.isTouch()) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tRefresher refresher = getRefresher(("; |
323 |
protected final String TEXT_302 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
324 |
protected final String TEXT_303 = ") msg.getFeature(), msg);" + NL + "\t\t\tif (refresher != null) {" + NL + "\t\t\t\trefresher.refresh();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL; |
324 |
protected final String TEXT_303 = " getTargetConnectionAnchor("; |
325 |
protected final String TEXT_304 = NL; |
325 |
protected final String TEXT_304 = " request) {" + NL + "\t\treturn new "; |
326 |
protected final String TEXT_305 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher("; |
326 |
protected final String TEXT_305 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {"; |
327 |
protected final String TEXT_306 = " 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("; |
327 |
protected final String TEXT_306 = NL + "\t\treturn super.getAdapter(key);" + 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);"; |
328 |
protected final String TEXT_307 = " 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("; |
328 |
protected final String TEXT_307 = NL + "\t\tinstallLinkNotationModelRefresher();"; |
329 |
protected final String TEXT_308 = " 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; |
329 |
protected final String TEXT_308 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {"; |
330 |
protected final String TEXT_309 = NL; |
330 |
protected final String TEXT_309 = NL + "\t\tuninstallLinkNotationModelRefresher();"; |
331 |
protected final String TEXT_310 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshFont() {"; |
331 |
protected final String TEXT_310 = NL + "\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}"; |
332 |
protected final String TEXT_311 = NL + "\t\t"; |
332 |
protected final String TEXT_311 = NL; |
333 |
protected final String TEXT_312 = " style =" + NL + "\t\t\t("; |
333 |
protected final String TEXT_312 = 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"; |
334 |
protected final String TEXT_313 = ") "; |
334 |
protected final String TEXT_313 = " domainModelEditDomain = "; |
335 |
protected final String TEXT_314 = ".getStyle(" + NL + "\t\t\t\t"; |
335 |
protected final String TEXT_314 = ".getEditingDomain("; |
336 |
protected final String TEXT_315 = ".eINSTANCE.getFontStyle());" + NL + "\t\t"; |
336 |
protected final String TEXT_315 = ".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 * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher getLinkNotationModelRefresher() {" + NL + "\t\tif (linkNotationModelRefresher == null) {" + NL + "\t\t\tlinkNotationModelRefresher = new LinkNotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn linkNotationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class LinkNotationModelRefresher extends "; |
337 |
protected final String TEXT_316 = " 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 = "; |
337 |
protected final String TEXT_316 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
338 |
protected final String TEXT_317 = ".NORMAL;" + NL + "\t\t\tif (style.isBold()) {" + NL + "\t\t\t\tfontStyle |= "; |
338 |
protected final String TEXT_317 = " filter;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
339 |
protected final String TEXT_318 = ".BOLD;" + NL + "\t\t\t}" + NL + "\t\t\tif (style.isItalic()) {" + NL + "\t\t\t\tfontStyle |= "; |
339 |
protected final String TEXT_318 = " editingDomain;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic LinkNotationModelRefresher() {" + NL + "\t\t\tcreateFilter();" + NL + "\t\t}"; |
340 |
protected final String TEXT_319 = ".ITALIC;" + NL + "\t\t\t}" + NL + "\t\t\t"; |
340 |
protected final String TEXT_319 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Child links of this element are selected based on constraint declared in "; |
341 |
protected final String TEXT_320 = " currentFont = getFigure().getFont();" + NL + "\t\t\tif (currentFont != null) {" + NL + "\t\t\t\t"; |
341 |
protected final String TEXT_320 = ". " + 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 "; |
342 |
protected final String TEXT_321 = " 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 "; |
342 |
protected final String TEXT_321 = " getConstrainedChildLinksFilter() {" + NL + "\t\t\treturn "; |
343 |
protected final String TEXT_322 = "(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}"; |
343 |
protected final String TEXT_322 = ".NOT_TOUCH;" + NL + "\t\t}"; |
344 |
protected final String TEXT_323 = "\t" + NL + "\t}"; |
344 |
protected final String TEXT_323 = 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 "; |
345 |
protected final String TEXT_324 = 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 "; |
345 |
protected final String TEXT_324 = " createUncontainedLinksFilter() {" + NL + "\t\t\treturn "; |
346 |
protected final String TEXT_325 = " createdFont;"; |
346 |
protected final String TEXT_325 = ".createEventTypeFilter("; |
347 |
protected final String TEXT_326 = "\t" + NL; |
347 |
protected final String TEXT_326 = ".SET).or(" + NL + "\t\t\t\t"; |
348 |
protected final String TEXT_327 = NL; |
348 |
protected final String TEXT_327 = ".createEventTypeFilter("; |
349 |
protected final String TEXT_328 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshForegroundColor() {" + NL + "\t\t"; |
349 |
protected final String TEXT_328 = ".UNSET).or(" + NL + "\t\t\t\t"; |
350 |
protected final String TEXT_329 = " style = ("; |
350 |
protected final String TEXT_329 = ".createEventTypeFilter("; |
351 |
protected final String TEXT_330 = ") "; |
351 |
protected final String TEXT_330 = ".REMOVE).or(" + NL + "\t\t\t\t"; |
352 |
protected final String TEXT_331 = ".getStyle("; |
352 |
protected final String TEXT_331 = ".createEventTypeFilter("; |
353 |
protected final String TEXT_332 = ".eINSTANCE.getLineStyle());" + NL + "\t\t"; |
353 |
protected final String TEXT_332 = ".REMOVE_MANY)" + NL + "\t\t\t)));" + NL + "\t\t}"; |
354 |
protected final String TEXT_333 = " 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"; |
354 |
protected final String TEXT_333 = 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\tprivate void createFilter() {"; |
355 |
protected final String TEXT_334 = " 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 "; |
355 |
protected final String TEXT_334 = NL; |
356 |
protected final String TEXT_335 = "(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 "; |
356 |
protected final String TEXT_335 = NL + "\t\t\tfilter = "; |
357 |
protected final String TEXT_336 = " createdForegroundColor;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBackgroundColor() {" + NL + "\t\t"; |
357 |
protected final String TEXT_336 = ".createFeatureFilter("; |
358 |
protected final String TEXT_337 = " style = ("; |
358 |
protected final String TEXT_337 = ".eINSTANCE.get"; |
359 |
protected final String TEXT_338 = ") "; |
359 |
protected final String TEXT_338 = "());"; |
360 |
protected final String TEXT_339 = ".getStyle("; |
360 |
protected final String TEXT_339 = NL + "\t\t\tfilter = filter.or("; |
361 |
protected final String TEXT_340 = ".eINSTANCE.getFillStyle());" + NL + "\t\t"; |
361 |
protected final String TEXT_340 = ".createFeatureFilter("; |
362 |
protected final String TEXT_341 = " 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"; |
362 |
protected final String TEXT_341 = ".eINSTANCE.get"; |
363 |
protected final String TEXT_342 = " 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 "; |
363 |
protected final String TEXT_342 = "()));"; |
364 |
protected final String TEXT_343 = "(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 "; |
364 |
protected final String TEXT_343 = NL; |
365 |
protected final String TEXT_344 = " createdBackgroundColor;" + NL; |
365 |
protected final String TEXT_344 = NL + "\t\t\tfilter = "; |
366 |
protected final String TEXT_345 = NL; |
366 |
protected final String TEXT_345 = ".createFeatureFilter("; |
367 |
protected final String TEXT_346 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
367 |
protected final String TEXT_346 = ".eINSTANCE.get"; |
368 |
protected final String TEXT_347 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; |
368 |
protected final String TEXT_347 = "());"; |
369 |
protected final String TEXT_348 = " feature, "; |
369 |
protected final String TEXT_348 = NL + "\t\t\tfilter = filter.or("; |
370 |
protected final String TEXT_349 = " 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 "; |
370 |
protected final String TEXT_349 = ".createFeatureFilter("; |
371 |
protected final String TEXT_350 = "();"; |
371 |
protected final String TEXT_350 = ".eINSTANCE.get"; |
372 |
protected final String TEXT_351 = NL; |
372 |
protected final String TEXT_351 = "()));"; |
373 |
protected final String TEXT_352 = "\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("; |
373 |
protected final String TEXT_352 = NL; |
374 |
protected final String TEXT_353 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
374 |
protected final String TEXT_353 = NL + "\t\t\tfilter = "; |
375 |
protected final String TEXT_354 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);"; |
375 |
protected final String TEXT_354 = ".createFeatureFilter("; |
376 |
protected final String TEXT_355 = NL; |
376 |
protected final String TEXT_355 = ".eINSTANCE.get"; |
377 |
protected final String TEXT_356 = "\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("; |
377 |
protected final String TEXT_356 = "());"; |
378 |
protected final String TEXT_357 = ".eINSTANCE.getNode_LayoutConstraint(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
378 |
protected final String TEXT_357 = NL + "\t\t\tfilter = filter.or("; |
379 |
protected final String TEXT_358 = ".eINSTANCE.getSize_Width(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
379 |
protected final String TEXT_358 = ".createFeatureFilter("; |
380 |
protected final String TEXT_359 = ".eINSTANCE.getSize_Height(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
380 |
protected final String TEXT_359 = ".eINSTANCE.get"; |
381 |
protected final String TEXT_360 = ".eINSTANCE.getLocation_X(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
381 |
protected final String TEXT_360 = "()));"; |
382 |
protected final String TEXT_361 = ".eINSTANCE.getLocation_Y(), boundsRefresher);"; |
382 |
protected final String TEXT_361 = NL; |
383 |
protected final String TEXT_362 = NL; |
383 |
protected final String TEXT_362 = NL + "\t\t\tfilter = "; |
384 |
protected final String TEXT_363 = "\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("; |
384 |
protected final String TEXT_363 = ".createFeatureFilter("; |
385 |
protected final String TEXT_364 = ".eINSTANCE.getView_Visible(), visibilityRefresher);"; |
385 |
protected final String TEXT_364 = ".eINSTANCE.get"; |
386 |
protected final String TEXT_365 = NL; |
386 |
protected final String TEXT_365 = "());"; |
387 |
protected final String TEXT_366 = "\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("; |
387 |
protected final String TEXT_366 = NL + "\t\t\tfilter = filter.or("; |
388 |
protected final String TEXT_367 = ".eINSTANCE.getView_SourceEdges(), sourceEdgesRefresher);"; |
388 |
protected final String TEXT_367 = ".createFeatureFilter("; |
389 |
protected final String TEXT_368 = NL; |
389 |
protected final String TEXT_368 = ".eINSTANCE.get"; |
390 |
protected final String TEXT_369 = "\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("; |
390 |
protected final String TEXT_369 = "()));"; |
391 |
protected final String TEXT_370 = ".eINSTANCE.getView_TargetEdges(), targetEdgesRefresher);"; |
391 |
protected final String TEXT_370 = NL + "\t\t\tfilter = getConstrainedChildLinksFilter().or(filter);"; |
392 |
protected final String TEXT_371 = NL; |
392 |
protected final String TEXT_371 = NL + "\t\t\tfilter = getConstrainedChildLinksFilter();"; |
393 |
protected final String TEXT_372 = "\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("; |
393 |
protected final String TEXT_372 = NL + "\t\t\tfilter = filter.or(createUncontainedLinksFilter());"; |
394 |
protected final String TEXT_373 = ".eINSTANCE.getFontStyle_FontHeight(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
394 |
protected final String TEXT_373 = NL + "\t\t\tfilter = createUncontainedLinksFilter();"; |
395 |
protected final String TEXT_374 = ".eINSTANCE.getFontStyle_FontName(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
395 |
protected final String TEXT_374 = NL + "\t\t\tfilter = "; |
396 |
protected final String TEXT_375 = ".eINSTANCE.getFontStyle_Bold(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
396 |
protected final String TEXT_375 = ".ANY.negated();"; |
397 |
protected final String TEXT_376 = ".eINSTANCE.getFontStyle_Italic(), fontRefresher);" + NL + "\t\t"; |
397 |
protected final String TEXT_376 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void install("; |
398 |
protected final String TEXT_377 = NL; |
398 |
protected final String TEXT_377 = " editingDomain) {" + NL + "\t\t\tif (this.editingDomain != null && !this.editingDomain.equals(editingDomain)) {" + NL + "\t\t\t\tthrow new IllegalStateException(\"Already listening to another editing domain\");" + NL + "\t\t\t}" + NL + "\t\t\tthis.editingDomain = editingDomain;" + NL + "\t\t\tthis.editingDomain.addResourceSetListener(this);" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean isInstalled() {" + NL + "\t\t\treturn editingDomain != null;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void uninstall() {" + NL + "\t\t\tif (isInstalled()) {" + NL + "\t\t\t\teditingDomain.removeResourceSetListener(this);" + NL + "\t\t\t\teditingDomain = null;" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean isPrecommitOnly() {" + NL + "\t\t\treturn true;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic "; |
399 |
protected final String TEXT_378 = "\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("; |
399 |
protected final String TEXT_378 = " transactionAboutToCommit("; |
400 |
protected final String TEXT_379 = ".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("; |
400 |
protected final String TEXT_379 = " event) {" + NL + "\t\t\treturn getRefreshLinkNotationModelCommand();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic "; |
401 |
protected final String TEXT_380 = ".eINSTANCE.getLineStyle_LineColor(), foregroundColorRefresher);" + NL + "\t}" + NL; |
401 |
protected final String TEXT_380 = " getFilter() {" + NL + "\t\t\treturn filter;" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshLinkNotationModel() {" + NL + "\t\t"; |
402 |
protected final String TEXT_381 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect"; |
402 |
protected final String TEXT_381 = " command = getRefreshLinkNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; |
403 |
protected final String TEXT_382 = "SourceCommand extends "; |
403 |
protected final String TEXT_382 = " domainModelEditDomain = "; |
404 |
protected final String TEXT_383 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
404 |
protected final String TEXT_383 = ".getEditingDomain("; |
405 |
protected final String TEXT_384 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
405 |
protected final String TEXT_384 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new WrappingCommand(domainModelEditDomain, command));" + NL + "\t}" + NL; |
406 |
protected final String TEXT_385 = " newSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
406 |
protected final String TEXT_385 = NL; |
407 |
protected final String TEXT_386 = " oldSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
407 |
protected final String TEXT_386 = NL + "/**" + NL + " * @generated" + NL + " */" + NL + "private static class LinkDescriptor {" + NL + "" + NL + "\t/**" + NL + " \t * @generated" + NL + " */" + NL + "\tprivate "; |
408 |
protected final String TEXT_387 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; |
408 |
protected final String TEXT_387 = " mySource;" + NL + "" + NL + "\t/**" + NL + " \t * @generated" + NL + " */" + NL + "\tprivate "; |
409 |
protected final String TEXT_388 = "SourceCommand("; |
409 |
protected final String TEXT_388 = " myDestination;" + NL + "" + NL + "\t/**" + NL + " \t * @generated" + NL + " */" + NL + "\tprivate "; |
410 |
protected final String TEXT_389 = " request) {" + NL + "\t\t\tthis(("; |
410 |
protected final String TEXT_389 = " myLinkElement;" + NL + "" + NL + "\t/**" + NL + " \t * @generated" + NL + " */" + NL + "\tprivate int myVisualID;" + NL + "" + NL + "\t/**" + NL + " \t * @generated" + NL + " */" + NL + "\tprotected LinkDescriptor("; |
411 |
protected final String TEXT_390 = ")request.getConnectionEditPart().getModel(), ("; |
411 |
protected final String TEXT_390 = " source, "; |
412 |
protected final String TEXT_391 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; |
412 |
protected final String TEXT_391 = " destination, "; |
413 |
protected final String TEXT_392 = "SourceCommand("; |
413 |
protected final String TEXT_392 = " linkElement, int linkVID) {" + NL + "\t\tthis(source, destination, linkVID);" + NL + "\t\tmyLinkElement = linkElement;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + " \t * @generated" + NL + " */" + NL + "\tprivate LinkDescriptor("; |
414 |
protected final String TEXT_393 = " edge, "; |
414 |
protected final String TEXT_393 = " source, "; |
415 |
protected final String TEXT_394 = " 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() {"; |
415 |
protected final String TEXT_394 = " destination, int linkVID) {" + NL + "\t\tmySource = source;" + NL + "\t\tmyDestination = destination;" + NL + "\t\tmyVisualID = linkVID;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + " \t * @generated" + NL + " */" + NL + "\tprotected "; |
416 |
protected final String TEXT_395 = 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 "; |
416 |
protected final String TEXT_395 = " getSource() {" + NL + "\t\treturn mySource;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + " \t * @generated" + NL + " */" + NL + "\tprotected "; |
417 |
protected final String TEXT_396 = " domainModelEditDomain = "; |
417 |
protected final String TEXT_396 = " getDestination() {" + NL + "\t\treturn myDestination;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + " \t * @generated" + NL + " */" + NL + "\tprotected "; |
418 |
protected final String TEXT_397 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t"; |
418 |
protected final String TEXT_397 = " getLinkElement() {" + NL + "\t\treturn myLinkElement;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + " \t * @generated" + NL + " */" + NL + "\tprotected int getVisualID() {" + NL + "\t\treturn myVisualID;" + NL + "\t}" + NL + "}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
419 |
protected final String TEXT_398 = " command = new "; |
419 |
protected final String TEXT_398 = " getRefreshLinkNotationModelCommand() {" + NL + "\t\t"; |
420 |
protected final String TEXT_399 = "() {" + NL + "\t\t\t\tprivate "; |
420 |
protected final String TEXT_399 = "/*<LinkDescriptor>*/ semanticChildLinks = getSemanticChildLinks();" + NL + "\t\t"; |
421 |
protected final String TEXT_400 = " 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 WrappingCommand(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();"; |
421 |
protected final String TEXT_400 = "/*<Edge>*/ notationalChildLinks = getNotationalChildLinks();" + NL + "\t\tfinal "; |
422 |
protected final String TEXT_401 = 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;"; |
422 |
protected final String TEXT_401 = " semanticToNotationalTypeBasedLinks = new "; |
423 |
protected final String TEXT_402 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {"; |
423 |
protected final String TEXT_402 = "();" + NL + "\t\tfinal "; |
424 |
protected final String TEXT_403 = NL + "\t\t\treturn false;"; |
424 |
protected final String TEXT_403 = "/*<EObject, List<Edge>>*/ semanticToNotationalFeatureBasedLinks = new "; |
425 |
protected final String TEXT_404 = NL + "\t\t\t"; |
425 |
protected final String TEXT_404 = "();" + NL + "\t\tfor("; |
426 |
protected final String TEXT_405 = " container = ("; |
426 |
protected final String TEXT_405 = " it = notationalChildLinks.iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; |
427 |
protected final String TEXT_406 = ")getRelationshipContainer(newSource.getElement(), "; |
427 |
protected final String TEXT_406 = " next = ("; |
428 |
protected final String TEXT_407 = ".eINSTANCE.get"; |
428 |
protected final String TEXT_407 = ") it.next();" + NL + "\t\t\t"; |
429 |
protected final String TEXT_408 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
429 |
protected final String TEXT_408 = " nextSemantic = next.getElement();" + NL + "\t\t\tif (nextSemantic != null) {" + NL + "\t\t\t\tsemanticToNotationalTypeBasedLinks.put(nextSemantic, next);" + NL + "\t\t\t} else {" + NL + "\t\t\t\t"; |
430 |
protected final String TEXT_409 = NL; |
430 |
protected final String TEXT_409 = " featureBasedLinksForSource = ("; |
431 |
protected final String TEXT_410 = NL + "\t\tif ("; |
431 |
protected final String TEXT_410 = ") semanticToNotationalFeatureBasedLinks.get(next.getSource().getElement());" + NL + "\t\t\t\tif (featureBasedLinksForSource == null) {" + NL + "\t\t\t\t\tfeatureBasedLinksForSource = new "; |
432 |
protected final String TEXT_411 = "."; |
432 |
protected final String TEXT_411 = "();" + NL + "\t\t\t\t\tsemanticToNotationalFeatureBasedLinks.put(next.getSource().getElement(), featureBasedLinksForSource);" + NL + "\t\t\t\t}" + NL + "\t\t\t\tfeatureBasedLinksForSource.add(next);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\t"; |
433 |
protected final String TEXT_412 = "() != null) {" + NL + "\t\t\t"; |
433 |
protected final String TEXT_412 = " parentView = "; |
434 |
protected final String TEXT_413 = NL + "\t\t}"; |
434 |
protected final String TEXT_413 = ";" + NL + "\t\t"; |
435 |
protected final String TEXT_414 = NL + "\t\tif ("; |
435 |
protected final String TEXT_414 = " command = new "; |
436 |
protected final String TEXT_415 = "."; |
436 |
protected final String TEXT_415 = "();" + NL + "\t\tfor("; |
437 |
protected final String TEXT_416 = "().size() >= "; |
437 |
protected final String TEXT_416 = " it = semanticChildLinks.iterator(); it.hasNext(); ) {" + NL + "\t\t\tLinkDescriptor next = (LinkDescriptor) it.next();" + NL + "\t\t\t"; |
438 |
protected final String TEXT_417 = ".eINSTANCE.get"; |
438 |
protected final String TEXT_417 = " nextLinkElement = next.getLinkElement();" + NL + "\t\t\t"; |
439 |
protected final String TEXT_418 = ".getUpperBound()) {" + NL + "\t\t\t"; |
439 |
protected final String TEXT_418 = " currentEdge;" + NL + "\t\t\tif (nextLinkElement != null) {" + NL + "\t\t\t\tcurrentEdge = ("; |
440 |
protected final String TEXT_419 = NL + "\t\t}"; |
440 |
protected final String TEXT_419 = ") semanticToNotationalTypeBasedLinks.remove(nextLinkElement);" + NL + "\t\t\t} else {" + NL + "\t\t\t\t"; |
441 |
protected final String TEXT_420 = NL; |
441 |
protected final String TEXT_420 = " featureBasedLinksForSource = ("; |
442 |
protected final String TEXT_421 = NL + "\t\tif ("; |
442 |
protected final String TEXT_421 = ") semanticToNotationalFeatureBasedLinks.get(next.getSource());" + NL + "\t\t\t\tif (featureBasedLinksForSource == null || featureBasedLinksForSource.isEmpty()) {" + NL + "\t\t\t\t\tcurrentEdge = null;" + NL + "\t\t\t\t} else {" + NL + "\t\t\t\t\tcurrentEdge = ("; |
443 |
protected final String TEXT_422 = "."; |
443 |
protected final String TEXT_422 = ") featureBasedLinksForSource.remove(0);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tint linkVisualID = next.getVisualID();" + NL + "\t\t\tif (currentEdge == null) {" + NL + "\t\t\t\tif (nextLinkElement == null || shouldCreateEdge(nextLinkElement)) {" + NL + "\t\t\t\t\tcommand.appendIfCanExecute(getCreateNotationalEdgeCommand(parentView, next));" + NL + "\t\t\t\t}" + NL + "\t\t\t} else {" + NL + "\t\t\t\tboolean changedSource = currentEdge.getSource().getElement() != next.getSource();" + NL + "\t\t\t\tboolean changedTarget = currentEdge.getTarget().getElement() != next.getDestination();" + NL + "\t\t\t\tboolean changedVID = linkVisualID != "; |
444 |
protected final String TEXT_423 = "() != null) {" + NL + "\t\t\t"; |
444 |
protected final String TEXT_423 = ".getVisualID(currentEdge);" + NL + "\t\t\t\tif (!changedSource && !changedTarget) {" + NL + "\t\t\t\t\tif (changedVID) {" + NL + "\t\t\t\t\t\t"; |
445 |
protected final String TEXT_424 = NL + "\t\t}"; |
445 |
protected final String TEXT_424 = " notationalCommand = getCreateNotationalEdgeCommand(parentView, next);" + NL + "\t\t\t\t\t\tif (notationalCommand != null) {" + NL + "\t\t\t\t\t\t\tcommand.appendIfCanExecute(new "; |
446 |
protected final String TEXT_425 = NL + "\t\tif ("; |
446 |
protected final String TEXT_425 = "(parentView, notationalCommand, currentEdge));" + NL + "\t\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t\tcommand.appendIfCanExecute(new "; |
447 |
protected final String TEXT_426 = "."; |
447 |
protected final String TEXT_426 = "(parentView, currentEdge));" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t} else {" + NL + "\t\t\t\t\tif (changedVID) {" + NL + "\t\t\t\t\t\tcommand.appendIfCanExecute(new "; |
448 |
protected final String TEXT_427 = "().size() >= "; |
448 |
protected final String TEXT_427 = "(parentView, currentEdge));" + NL + "\t\t\t\t\t\tcommand.appendIfCanExecute(getCreateNotationalEdgeCommand(parentView, next));" + NL + "\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t"; |
449 |
protected final String TEXT_428 = ".eINSTANCE.get"; |
449 |
protected final String TEXT_428 = " newSourceView = findView(next.getSource());" + NL + "\t\t\t\t\t\tif (changedSource && newSourceView != null) {" + NL + "\t\t\t\t\t\t\tcommand.appendIfCanExecute(new "; |
450 |
protected final String TEXT_429 = ".getUpperBound()) {" + NL + "\t\t\t"; |
450 |
protected final String TEXT_429 = "(currentEdge, newSourceView));" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t"; |
451 |
protected final String TEXT_430 = NL + "\t\t}"; |
451 |
protected final String TEXT_430 = " newTargetView = findView(next.getDestination());" + NL + "\t\t\t\t\t\tif (changedTarget && newTargetView != null) {" + NL + "\t\t\t\t\t\t\tcommand.appendIfCanExecute(new "; |
452 |
protected final String TEXT_431 = NL; |
452 |
protected final String TEXT_431 = "(currentEdge, newTargetView));" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tfor("; |
453 |
protected final String TEXT_432 = NL + "\t\t\tif(!"; |
453 |
protected final String TEXT_432 = " it = semanticToNotationalTypeBasedLinks.values().iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; |
454 |
protected final String TEXT_433 = ".canCreateLink("; |
454 |
protected final String TEXT_433 = " obsoleteView = ("; |
455 |
protected final String TEXT_434 = ", "; |
455 |
protected final String TEXT_434 = ") it.next();" + NL + "\t\t\tcommand.appendIfCanExecute(new "; |
456 |
protected final String TEXT_435 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
456 |
protected final String TEXT_435 = "(parentView, obsoleteView));" + NL + "\t\t}" + NL + "\t\tfor("; |
457 |
protected final String TEXT_436 = NL + "\t\t\treturn true;"; |
457 |
protected final String TEXT_436 = " it = semanticToNotationalFeatureBasedLinks.values().iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; |
458 |
protected final String TEXT_437 = NL; |
458 |
protected final String TEXT_437 = " obsoleteViews = ("; |
459 |
protected final String TEXT_438 = NL + "\t\tif ("; |
459 |
protected final String TEXT_438 = ") it.next();" + NL + "\t\t\tfor("; |
460 |
protected final String TEXT_439 = "."; |
460 |
protected final String TEXT_439 = " obsoleteViewsIt = obsoleteViews.iterator(); obsoleteViewsIt.hasNext(); ) {" + NL + "\t\t\t\t"; |
461 |
protected final String TEXT_440 = "() != null) {" + NL + "\t\t\t"; |
461 |
protected final String TEXT_440 = " obsoleteView = ("; |
462 |
protected final String TEXT_441 = NL + "\t\t}"; |
462 |
protected final String TEXT_441 = ") obsoleteViewsIt.next();" + NL + "\t\t\t\tcommand.appendIfCanExecute(new "; |
463 |
protected final String TEXT_442 = NL + "\t\tif ("; |
463 |
protected final String TEXT_442 = "(parentView, obsoleteView));" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn command.getCommandList().isEmpty() ? null : command;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Finds a notational element that corresponds to the given underlying domain element. " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
464 |
protected final String TEXT_443 = "."; |
464 |
protected final String TEXT_443 = " findView("; |
465 |
protected final String TEXT_444 = "().size() >= "; |
465 |
protected final String TEXT_444 = " modelElement) {" + NL + "\t\tif (modelElement == null) {" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t\t"; |
466 |
protected final String TEXT_445 = ".eINSTANCE.get"; |
466 |
protected final String TEXT_445 = " editPart = ("; |
467 |
protected final String TEXT_446 = ".getUpperBound()) {" + NL + "\t\t\t"; |
467 |
protected final String TEXT_446 = ") getViewer().getEditPartRegistry().get(modelElement);" + NL + "\t\tif (editPart != null && editPart.getModel() instanceof "; |
468 |
protected final String TEXT_447 = NL + "\t\t}"; |
468 |
protected final String TEXT_447 = ") {" + NL + "\t\t\treturn ("; |
469 |
protected final String TEXT_448 = NL; |
469 |
protected final String TEXT_448 = ") editPart.getModel();" + NL + "\t\t}" + NL + "\t\t"; |
470 |
protected final String TEXT_449 = NL + "\t\t\tif(!"; |
470 |
protected final String TEXT_449 = " parentView = findView(modelElement.eContainer());" + NL + "\t\tif (parentView != null) {" + NL + "\t\t\t"; |
471 |
protected final String TEXT_450 = ".canCreateLink("; |
471 |
protected final String TEXT_450 = " result = findNode(parentView, modelElement);" + NL + "\t\t\tif (result != null) {" + NL + "\t\t\t\treturn result;" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn findEdge(modelElement);" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * Finds a notational node that corresponds to the given underlying domain element in a subtree starting from the given parent element. " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
472 |
protected final String TEXT_451 = ", "; |
472 |
protected final String TEXT_451 = " findNode("; |
473 |
protected final String TEXT_452 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
473 |
protected final String TEXT_452 = " parentView, "; |
474 |
protected final String TEXT_453 = NL + "\t\t\treturn true;"; |
474 |
protected final String TEXT_453 = " modelElement) {" + NL + "\t\tfor("; |
475 |
protected final String TEXT_454 = NL + "\t\t\treturn false;"; |
475 |
protected final String TEXT_454 = " it = parentView.getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; |
476 |
protected final String TEXT_455 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
476 |
protected final String TEXT_455 = " next = ("; |
477 |
protected final String TEXT_456 = " createReconnectCommand() {" + NL + "\t\t\t"; |
477 |
protected final String TEXT_456 = ") it.next();" + NL + "\t\t\tif (!next.isSetElement() || next.getElement() == parentView) {" + NL + "\t\t\t\t"; |
478 |
protected final String TEXT_457 = " editingDomain = "; |
478 |
protected final String TEXT_457 = " result = findNode(next, modelElement);" + NL + "\t\t\t\tif (result != null) {" + NL + "\t\t\t\t\treturn result;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tif (next.isSetElement() && next.getElement() == modelElement) {" + NL + "\t\t\t\treturn next;" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Finds a notational edge that corresponds to the given underlying domain element. " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
479 |
protected final String TEXT_458 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t"; |
479 |
protected final String TEXT_458 = " findEdge("; |
480 |
protected final String TEXT_459 = " result = new "; |
480 |
protected final String TEXT_459 = " modelElement) {" + NL + "\t\tfor("; |
481 |
protected final String TEXT_460 = "();" + NL + "\t\t\tresult.append(new "; |
481 |
protected final String TEXT_460 = " it = "; |
482 |
protected final String TEXT_461 = "(edge, newSource));"; |
482 |
protected final String TEXT_461 = ".getEdges().iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; |
483 |
protected final String TEXT_462 = NL + "\t\t\t"; |
483 |
protected final String TEXT_462 = " next = ("; |
484 |
protected final String TEXT_463 = " container = getRelationshipContainer(newSource.getElement(), "; |
484 |
protected final String TEXT_463 = ") it.next();" + NL + "\t\t\tif (next.isSetElement() && next.getElement() == modelElement) {" + NL + "\t\t\t\treturn next;" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
485 |
protected final String TEXT_464 = ".eINSTANCE.get"; |
485 |
protected final String TEXT_464 = " getCreateNotationalEdgeCommand("; |
486 |
protected final String TEXT_465 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn "; |
486 |
protected final String TEXT_465 = " parentView, LinkDescriptor linkDescriptor) {" + NL + "\t\t"; |
487 |
protected final String TEXT_466 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\t"; |
487 |
protected final String TEXT_466 = " sourceView = findView(linkDescriptor.getSource());" + NL + "\t\t"; |
488 |
protected final String TEXT_467 = " oldContainer = edge.getElement().eContainer();" + NL + "\t\t\tif (oldContainer == null) {" + NL + "\t\t\t\treturn "; |
488 |
protected final String TEXT_467 = " targetView = findView(linkDescriptor.getDestination());" + NL + "\t\tif (sourceView == null || targetView == null) {" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t\t"; |
489 |
protected final String TEXT_468 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tif (oldContainer != container) {"; |
489 |
protected final String TEXT_468 = " createdEdge = "; |
490 |
protected final String TEXT_469 = NL + "\t\t\t\tresult.append("; |
490 |
protected final String TEXT_469 = ".eINSTANCE.createEdge();" + NL + "\t\tswitch (linkDescriptor.getVisualID()) {"; |
491 |
protected final String TEXT_470 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), edge.getElement().eContainmentFeature(), edge.getElement()));"; |
491 |
protected final String TEXT_470 = NL + "\t\tcase "; |
492 |
protected final String TEXT_471 = NL + "\t\t\t\tresult.append("; |
492 |
protected final String TEXT_471 = ".VISUAL_ID:" + NL + "\t\t\tif (linkDescriptor.getLinkElement() instanceof "; |
493 |
protected final String TEXT_472 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), edge.getElement().eContainmentFeature(), "; |
493 |
protected final String TEXT_472 = ") {" + NL + "\t\t\t\tcreatedEdge.setElement(linkDescriptor.getLinkElement());" + NL + "\t\t\t\t"; |
494 |
protected final String TEXT_473 = ".UNSET_VALUE));"; |
494 |
protected final String TEXT_473 = ".decorateView(createdEdge);" + NL + "\t\t\t}" + NL + "\t\t\tbreak;"; |
495 |
protected final String TEXT_474 = NL + "\t\t\t\tresult.append("; |
495 |
protected final String TEXT_474 = NL + "\t\tcase "; |
496 |
protected final String TEXT_475 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, "; |
496 |
protected final String TEXT_475 = ".VISUAL_ID:" + NL + "\t\t\tif (linkDescriptor.getLinkElement() == null) {" + NL + "\t\t\t\tcreatedEdge.setElement(null);" + NL + "\t\t\t\t"; |
497 |
protected final String TEXT_476 = ".eINSTANCE.get"; |
497 |
protected final String TEXT_476 = ".decorateView(createdEdge);" + NL + "\t\t\t}" + NL + "\t\t\tbreak;"; |
498 |
protected final String TEXT_477 = "(), edge.getElement()));"; |
498 |
protected final String TEXT_477 = NL + "\t\t}" + NL + "\t\tif (createdEdge.getType() == null) {" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t\treturn new "; |
499 |
protected final String TEXT_478 = NL + "\t\t\t\tresult.append("; |
499 |
protected final String TEXT_478 = "(parentView, createdEdge, sourceView, targetView);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
500 |
protected final String TEXT_479 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; |
500 |
protected final String TEXT_479 = " getSemanticChildLinks() {"; |
501 |
protected final String TEXT_480 = ".eINSTANCE.get"; |
501 |
protected final String TEXT_480 = NL; |
502 |
protected final String TEXT_481 = "()," + NL + "\t\t\t\t\tedge.getElement()));"; |
502 |
protected final String TEXT_481 = "\t"; |
503 |
protected final String TEXT_482 = NL + "\t\t\t\tresult.append("; |
503 |
protected final String TEXT_482 = " result = new "; |
504 |
protected final String TEXT_483 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; |
504 |
protected final String TEXT_483 = "();"; |
505 |
protected final String TEXT_484 = ".eINSTANCE.get"; |
505 |
protected final String TEXT_484 = NL + "\t"; |
506 |
protected final String TEXT_485 = "()," + NL + "\t\t\t\t\t"; |
506 |
protected final String TEXT_485 = " modelObject = "; |
507 |
protected final String TEXT_486 = ".UNSET_VALUE));"; |
507 |
protected final String TEXT_486 = ";" + NL + "\t"; |
508 |
protected final String TEXT_487 = NL + "\t\t\t\tresult.append("; |
508 |
protected final String TEXT_487 = " nextValue;"; |
509 |
protected final String TEXT_488 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, "; |
509 |
protected final String TEXT_488 = NL + "\tint linkVID;"; |
510 |
protected final String TEXT_489 = ".eINSTANCE.get"; |
510 |
protected final String TEXT_489 = NL + "\tfor("; |
511 |
protected final String TEXT_490 = "(), edge.getElement()));"; |
511 |
protected final String TEXT_490 = " it = (("; |
512 |
protected final String TEXT_491 = NL + "\t\t\t}"; |
512 |
protected final String TEXT_491 = ")modelObject)."; |
513 |
protected final String TEXT_492 = NL + "\t\t\tresult.append("; |
513 |
protected final String TEXT_492 = "().iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; |
514 |
protected final String TEXT_493 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
514 |
protected final String TEXT_493 = ") it.next();"; |
515 |
protected final String TEXT_494 = ".eINSTANCE.get"; |
515 |
protected final String TEXT_494 = NL + "\tnextValue = (("; |
516 |
protected final String TEXT_495 = "()," + NL + "\t\t\t\toldSource.getElement()));" + NL + "\t\t\tresult.append("; |
516 |
protected final String TEXT_495 = ")modelObject)."; |
517 |
protected final String TEXT_496 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
517 |
protected final String TEXT_496 = "();"; |
518 |
protected final String TEXT_497 = ".eINSTANCE.get"; |
518 |
protected final String TEXT_497 = NL + "\tlinkVID = "; |
519 |
protected final String TEXT_498 = "()," + NL + "\t\t\t\tnewSource.getElement()));"; |
519 |
protected final String TEXT_498 = ".INSTANCE.getLinkWithClassVisualID(nextValue);"; |
520 |
protected final String TEXT_499 = NL + "\t\t\tresult.append("; |
520 |
protected final String TEXT_499 = NL + "\tswitch (linkVID) {"; |
521 |
protected final String TEXT_500 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
521 |
protected final String TEXT_500 = NL + "\tcase "; |
522 |
protected final String TEXT_501 = ".eINSTANCE.get"; |
522 |
protected final String TEXT_501 = ".VISUAL_ID: {"; |
523 |
protected final String TEXT_502 = "()," + NL + "\t\t\t\tnewSource.getElement()));"; |
523 |
protected final String TEXT_502 = NL + "\tif ("; |
524 |
protected final String TEXT_503 = NL + "\t\t\tresult.append("; |
524 |
protected final String TEXT_503 = ".VISUAL_ID == linkVID) {"; |
525 |
protected final String TEXT_504 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), "; |
525 |
protected final String TEXT_504 = NL + "\t\t"; |
526 |
protected final String TEXT_505 = ".eINSTANCE.get"; |
526 |
protected final String TEXT_505 = " source = (("; |
527 |
protected final String TEXT_506 = "(), edge.getTarget().getElement()));" + NL + "\t\t\tresult.append("; |
527 |
protected final String TEXT_506 = ")nextValue)."; |
528 |
protected final String TEXT_507 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), "; |
528 |
protected final String TEXT_507 = "();"; |
529 |
protected final String TEXT_508 = ".eINSTANCE.get"; |
529 |
protected final String TEXT_508 = NL + "\t\t"; |
530 |
protected final String TEXT_509 = "(), edge.getTarget().getElement()));"; |
530 |
protected final String TEXT_509 = " source = "; |
531 |
protected final String TEXT_510 = NL + "\t\t\tresult.append("; |
531 |
protected final String TEXT_510 = ";"; |
532 |
protected final String TEXT_511 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), "; |
532 |
protected final String TEXT_511 = NL + "\t\t"; |
533 |
protected final String TEXT_512 = ".eINSTANCE.get"; |
533 |
protected final String TEXT_512 = " target = (("; |
534 |
protected final String TEXT_513 = "(), "; |
534 |
protected final String TEXT_513 = ")nextValue)."; |
535 |
protected final String TEXT_514 = ".UNSET_VALUE));" + NL + "\t\t\tresult.append("; |
535 |
protected final String TEXT_514 = "();"; |
536 |
protected final String TEXT_515 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), "; |
536 |
protected final String TEXT_515 = NL + "\t\t"; |
537 |
protected final String TEXT_516 = ".eINSTANCE.get"; |
537 |
protected final String TEXT_516 = " target = "; |
538 |
protected final String TEXT_517 = "(), edge.getTarget().getElement()));"; |
538 |
protected final String TEXT_517 = ";"; |
539 |
protected final String TEXT_518 = NL + "\t\t\treturn result;" + NL + "\t\t}" + NL; |
539 |
protected final String TEXT_518 = NL + "\t\tif (source != null && target != null) {" + NL + "\t\t\tresult.add(new LinkDescriptor(source, target, nextValue, linkVID));" + NL + "\t\t}"; |
540 |
protected final String TEXT_519 = NL; |
540 |
protected final String TEXT_519 = NL + "\t\tbreak;" + NL + "\t}"; |
541 |
protected final String TEXT_520 = 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 "; |
541 |
protected final String TEXT_520 = NL + "\t}"; |
542 |
protected final String TEXT_521 = " getRelationshipContainer("; |
542 |
protected final String TEXT_521 = NL + "\t}"; |
543 |
protected final String TEXT_522 = " element, "; |
543 |
protected final String TEXT_522 = NL + "\t}"; |
544 |
protected final String TEXT_523 = " 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}"; |
544 |
protected final String TEXT_523 = NL + "\tfor("; |
545 |
protected final String TEXT_524 = NL; |
545 |
protected final String TEXT_524 = " it = (("; |
546 |
protected final String TEXT_525 = NL + "\t\t\tprivate "; |
546 |
protected final String TEXT_525 = ")modelObject)."; |
547 |
protected final String TEXT_526 = " createDomainModelRemoveCommand("; |
547 |
protected final String TEXT_526 = "().iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; |
548 |
protected final String TEXT_527 = " editingDomain) {"; |
548 |
protected final String TEXT_527 = ") it.next();"; |
549 |
protected final String TEXT_528 = NL + "\t\t\t\t"; |
549 |
protected final String TEXT_528 = NL + "\tnextValue = (("; |
550 |
protected final String TEXT_529 = " result = new "; |
550 |
protected final String TEXT_529 = ")modelObject)."; |
551 |
protected final String TEXT_530 = "();"; |
551 |
protected final String TEXT_530 = "();"; |
552 |
protected final String TEXT_531 = NL + "\t\t\t\tresult.append("; |
552 |
protected final String TEXT_531 = NL + "\tif (nextValue != null) {"; |
553 |
protected final String TEXT_532 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
553 |
protected final String TEXT_532 = NL + "\t\tresult.add(new LinkDescriptor(modelObject, nextValue, null, "; |
554 |
protected final String TEXT_533 = ".getElement().eContainer(), "; |
554 |
protected final String TEXT_533 = ".VISUAL_ID));"; |
555 |
protected final String TEXT_534 = ".getElement().eContainmentFeature(), "; |
555 |
protected final String TEXT_534 = NL + "\t}"; |
556 |
protected final String TEXT_535 = ".getElement()));"; |
556 |
protected final String TEXT_535 = NL + "\t}"; |
557 |
protected final String TEXT_536 = NL + "\t\t\t\tresult.append("; |
557 |
protected final String TEXT_536 = NL + "\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
558 |
protected final String TEXT_537 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
558 |
protected final String TEXT_537 = " getNotationalChildLinks() {" + NL + "\t\t"; |
559 |
protected final String TEXT_538 = ".getElement().eContainer(), "; |
559 |
protected final String TEXT_538 = " result = new "; |
560 |
protected final String TEXT_539 = ".getElement().eContainmentFeature(), "; |
560 |
protected final String TEXT_539 = "();" + NL + "\t\t"; |
561 |
protected final String TEXT_540 = ".UNSET_VALUE));"; |
561 |
protected final String TEXT_540 = " allLinks = "; |
562 |
protected final String TEXT_541 = NL + "\t\t\t\treturn "; |
562 |
protected final String TEXT_541 = ".getEdges();" + NL + "\t\tfor("; |
563 |
protected final String TEXT_542 = ".INSTANCE;"; |
563 |
protected final String TEXT_542 = " it = allLinks.iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; |
564 |
protected final String TEXT_543 = NL + "\t\t\t\tresult.append("; |
564 |
protected final String TEXT_543 = " next = ("; |
565 |
protected final String TEXT_544 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
565 |
protected final String TEXT_544 = ") it.next();"; |
566 |
protected final String TEXT_545 = ".getElement().eContainer(), "; |
566 |
protected final String TEXT_545 = NL + "\t\t\tif (next.isSetElement() && next.getElement() != null && next.getElement().eResource() == null) {" + NL + "\t\t\t\tresult.add(next);" + NL + "\t\t\t\tcontinue;" + NL + "\t\t\t}" + NL + "\t\t\t"; |
567 |
protected final String TEXT_546 = ".eINSTANCE.get"; |
567 |
protected final String TEXT_546 = " source = next.getSource();" + NL + "\t\t\tif (source == null || (source.isSetElement() && source.getElement() != null && source.getElement().eResource() == null)) {" + NL + "\t\t\t\tresult.add(next);" + NL + "\t\t\t\tcontinue;" + NL + "\t\t\t}" + NL + "\t\t\t"; |
568 |
protected final String TEXT_547 = "()," + NL + "\t\t\t\t\t"; |
568 |
protected final String TEXT_547 = " target = next.getTarget();" + NL + "\t\t\tif (target == null || (target.isSetElement() && target.getElement() != null && target.getElement().eResource() == null)) {" + NL + "\t\t\t\tresult.add(next);" + NL + "\t\t\t\tcontinue;" + NL + "\t\t\t}"; |
569 |
protected final String TEXT_548 = ".getElement()));"; |
569 |
protected final String TEXT_548 = NL + "\t\t\tif (!next.isSetElement() || next.getElement() == null) {" + NL + "\t\t\t\tif (next.getSource() == "; |
570 |
protected final String TEXT_549 = NL + "\t\t\t\tresult.append("; |
570 |
protected final String TEXT_549 = ") {" + NL + "\t\t\t\t\tint linkVID = "; |
571 |
protected final String TEXT_550 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
571 |
protected final String TEXT_550 = ".getVisualID(next);" + NL + "\t\t\t\t\tswitch (linkVID) {"; |
572 |
protected final String TEXT_551 = ".getElement().eContainer(), "; |
572 |
protected final String TEXT_551 = NL + "\t\t\t\t\tcase "; |
573 |
protected final String TEXT_552 = ".eINSTANCE.get"; |
573 |
protected final String TEXT_552 = ".VISUAL_ID:"; |
574 |
protected final String TEXT_553 = "()," + NL + "\t\t\t\t\t"; |
574 |
protected final String TEXT_553 = NL + "\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}"; |
575 |
protected final String TEXT_554 = ".UNSET_VALUE));"; |
575 |
protected final String TEXT_554 = NL + "\t\t\t} else {"; |
576 |
protected final String TEXT_555 = NL + "\t\t\t\tresult.append("; |
576 |
protected final String TEXT_555 = NL + "\t\t\t}"; |
577 |
protected final String TEXT_556 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
577 |
protected final String TEXT_556 = NL + "\t\t\tif (next.isSetElement() && next.getElement() != null) {"; |
578 |
protected final String TEXT_557 = ".getElement(), "; |
578 |
protected final String TEXT_557 = NL + "\t\t\t\tif (next.getElement().eContainer() == "; |
579 |
protected final String TEXT_558 = ".eINSTANCE.get"; |
579 |
protected final String TEXT_558 = ") {" + NL + "\t\t\t\t\tint linkVID = "; |
580 |
protected final String TEXT_559 = "(), "; |
580 |
protected final String TEXT_559 = ".getVisualID(next);" + NL + "\t\t\t\t\tswitch (linkVID) {"; |
581 |
protected final String TEXT_560 = ".getSource().getElement()));"; |
581 |
protected final String TEXT_560 = NL + "\t\t\t\t\tcase "; |
582 |
protected final String TEXT_561 = NL + "\t\t\t\tresult.append("; |
582 |
protected final String TEXT_561 = ".VISUAL_ID:"; |
583 |
protected final String TEXT_562 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
583 |
protected final String TEXT_562 = NL + "\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}"; |
584 |
protected final String TEXT_563 = ".getElement(), "; |
584 |
protected final String TEXT_563 = NL + "\t\t}" + NL + "\t\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns whether a notational edge should be created for the given domain element. " + NL + "\t * The generated code always returns "; |
585 |
protected final String TEXT_564 = ".eINSTANCE.get"; |
585 |
protected final String TEXT_564 = ". " + NL + "\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate boolean shouldCreateEdge(EObject domainElement) {" + NL + "\t\treturn "; |
586 |
protected final String TEXT_565 = "(), "; |
586 |
protected final String TEXT_565 = ";" + NL + "\t}"; |
587 |
protected final String TEXT_566 = ".UNSET_VALUE));"; |
587 |
protected final String TEXT_566 = NL; |
588 |
protected final String TEXT_567 = NL + "\t\t\t\tresult.append("; |
588 |
protected final String TEXT_567 = NL; |
589 |
protected final String TEXT_568 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
589 |
protected final String TEXT_568 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate DomainModelRefresher domainModelRefresher = new DomainModelRefresher();" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class DomainModelRefresher extends "; |
590 |
protected final String TEXT_569 = ".getElement(), "; |
590 |
protected final String TEXT_569 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void notifyChanged("; |
591 |
protected final String TEXT_570 = ".eINSTANCE.get"; |
591 |
protected final String TEXT_570 = " msg) {" + NL + "\t\t\tsuper.notifyChanged(msg);" + NL + "\t\t\tif (msg.isTouch()) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tRefresher refresher = getRefresher(("; |
592 |
protected final String TEXT_571 = "(), "; |
592 |
protected final String TEXT_571 = ") msg.getFeature(), msg);" + NL + "\t\t\tif (refresher != null) {" + NL + "\t\t\t\trefresher.refresh();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL; |
593 |
protected final String TEXT_572 = ".getTarget().getElement()));"; |
593 |
protected final String TEXT_572 = NL; |
594 |
protected final String TEXT_573 = NL + "\t\t\t\tresult.append("; |
594 |
protected final String TEXT_573 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher("; |
595 |
protected final String TEXT_574 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
595 |
protected final String TEXT_574 = " 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("; |
596 |
protected final String TEXT_575 = ".getElement(), "; |
596 |
protected final String TEXT_575 = " 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("; |
597 |
protected final String TEXT_576 = ".eINSTANCE.get"; |
597 |
protected final String TEXT_576 = " 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; |
598 |
protected final String TEXT_577 = "(), "; |
598 |
protected final String TEXT_577 = NL; |
599 |
protected final String TEXT_578 = ".UNSET_VALUE));"; |
599 |
protected final String TEXT_578 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshFont() {"; |
600 |
protected final String TEXT_579 = NL + "\t\t\t\treturn result;"; |
600 |
protected final String TEXT_579 = NL + "\t\t"; |
601 |
protected final String TEXT_580 = NL + "\t\t\t\treturn "; |
601 |
protected final String TEXT_580 = " style =" + NL + "\t\t\t("; |
602 |
protected final String TEXT_581 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
602 |
protected final String TEXT_581 = ") "; |
603 |
protected final String TEXT_582 = ".getSource().getElement(), "; |
603 |
protected final String TEXT_582 = ".getStyle(" + NL + "\t\t\t\t"; |
604 |
protected final String TEXT_583 = ".eINSTANCE.get"; |
604 |
protected final String TEXT_583 = ".eINSTANCE.getFontStyle());" + NL + "\t\t"; |
605 |
protected final String TEXT_584 = "(), "; |
605 |
protected final String TEXT_584 = " 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 = "; |
606 |
protected final String TEXT_585 = ".getTarget().getElement());"; |
606 |
protected final String TEXT_585 = ".NORMAL;" + NL + "\t\t\tif (style.isBold()) {" + NL + "\t\t\t\tfontStyle |= "; |
607 |
protected final String TEXT_586 = NL + "\t\t\t\treturn "; |
607 |
protected final String TEXT_586 = ".BOLD;" + NL + "\t\t\t}" + NL + "\t\t\tif (style.isItalic()) {" + NL + "\t\t\t\tfontStyle |= "; |
608 |
protected final String TEXT_587 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
608 |
protected final String TEXT_587 = ".ITALIC;" + NL + "\t\t\t}" + NL + "\t\t\t"; |
609 |
protected final String TEXT_588 = ".getSource().getElement(), "; |
609 |
protected final String TEXT_588 = " currentFont = getFigure().getFont();" + NL + "\t\t\tif (currentFont != null) {" + NL + "\t\t\t\t"; |
610 |
protected final String TEXT_589 = ".eINSTANCE.get"; |
610 |
protected final String TEXT_589 = " 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 "; |
611 |
protected final String TEXT_590 = "(), "; |
611 |
protected final String TEXT_590 = "(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}"; |
612 |
protected final String TEXT_591 = ".UNSET_VALUE);"; |
612 |
protected final String TEXT_591 = "\t" + NL + "\t}"; |
613 |
protected final String TEXT_592 = NL + "\t\t\t}"; |
613 |
protected final String TEXT_592 = 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 "; |
614 |
protected final String TEXT_593 = NL + "\t}" + NL; |
614 |
protected final String TEXT_593 = " createdFont;"; |
615 |
protected final String TEXT_594 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create"; |
615 |
protected final String TEXT_594 = "\t" + NL; |
616 |
protected final String TEXT_595 = "StartCommand extends "; |
616 |
protected final String TEXT_595 = NL; |
617 |
protected final String TEXT_596 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
617 |
protected final String TEXT_596 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshForegroundColor() {" + NL + "\t\t"; |
618 |
protected final String TEXT_597 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; |
618 |
protected final String TEXT_597 = " style = ("; |
619 |
protected final String TEXT_598 = "StartCommand("; |
619 |
protected final String TEXT_598 = ") "; |
620 |
protected final String TEXT_599 = ".CreateConnectionRequestEx 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 = ("; |
620 |
protected final String TEXT_599 = ".getStyle("; |
621 |
protected final String TEXT_600 = ")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}"; |
621 |
protected final String TEXT_600 = ".eINSTANCE.getLineStyle());" + NL + "\t\t"; |
622 |
protected final String TEXT_601 = NL + "\t\t\treturn false;"; |
622 |
protected final String TEXT_601 = " 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"; |
623 |
protected final String TEXT_602 = NL + "\t\t\t"; |
623 |
protected final String TEXT_602 = " 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 "; |
624 |
protected final String TEXT_603 = " container = ("; |
624 |
protected final String TEXT_603 = "(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 "; |
625 |
protected final String TEXT_604 = ")getRelationshipContainer(source.getElement(), "; |
625 |
protected final String TEXT_604 = " createdForegroundColor;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBackgroundColor() {" + NL + "\t\t"; |
626 |
protected final String TEXT_605 = ".eINSTANCE.get"; |
626 |
protected final String TEXT_605 = " style = ("; |
627 |
protected final String TEXT_606 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
627 |
protected final String TEXT_606 = ") "; |
628 |
protected final String TEXT_607 = NL; |
628 |
protected final String TEXT_607 = ".getStyle("; |
629 |
protected final String TEXT_608 = NL + "\t\tif ("; |
629 |
protected final String TEXT_608 = ".eINSTANCE.getFillStyle());" + NL + "\t\t"; |
630 |
protected final String TEXT_609 = "."; |
630 |
protected final String TEXT_609 = " 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"; |
631 |
protected final String TEXT_610 = "() != null) {" + NL + "\t\t\t"; |
631 |
protected final String TEXT_610 = " 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 "; |
632 |
protected final String TEXT_611 = NL + "\t\t}"; |
632 |
protected final String TEXT_611 = "(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 "; |
633 |
protected final String TEXT_612 = NL + "\t\tif ("; |
633 |
protected final String TEXT_612 = " createdBackgroundColor;" + NL; |
634 |
protected final String TEXT_613 = "."; |
634 |
protected final String TEXT_613 = NL; |
635 |
protected final String TEXT_614 = "().size() >= "; |
635 |
protected final String TEXT_614 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
636 |
protected final String TEXT_615 = ".eINSTANCE.get"; |
636 |
protected final String TEXT_615 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; |
637 |
protected final String TEXT_616 = ".getUpperBound()) {" + NL + "\t\t\t"; |
637 |
protected final String TEXT_616 = " feature, "; |
638 |
protected final String TEXT_617 = NL + "\t\t}"; |
638 |
protected final String TEXT_617 = " 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 "; |
639 |
protected final String TEXT_618 = NL; |
639 |
protected final String TEXT_618 = "();"; |
640 |
protected final String TEXT_619 = NL + "\t\tif ("; |
640 |
protected final String TEXT_619 = NL; |
641 |
protected final String TEXT_620 = "."; |
641 |
protected final String TEXT_620 = "\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("; |
642 |
protected final String TEXT_621 = "() != null) {" + NL + "\t\t\t"; |
642 |
protected final String TEXT_621 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
643 |
protected final String TEXT_622 = NL + "\t\t}"; |
643 |
protected final String TEXT_622 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);"; |
644 |
protected final String TEXT_623 = NL + "\t\tif ("; |
644 |
protected final String TEXT_623 = NL; |
645 |
protected final String TEXT_624 = "."; |
645 |
protected final String TEXT_624 = "\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("; |
646 |
protected final String TEXT_625 = "().size() >= "; |
646 |
protected final String TEXT_625 = ".eINSTANCE.getNode_LayoutConstraint(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
647 |
protected final String TEXT_626 = ".eINSTANCE.get"; |
647 |
protected final String TEXT_626 = ".eINSTANCE.getSize_Width(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
648 |
protected final String TEXT_627 = ".getUpperBound()) {" + NL + "\t\t\t"; |
648 |
protected final String TEXT_627 = ".eINSTANCE.getSize_Height(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
649 |
protected final String TEXT_628 = NL + "\t\t}"; |
649 |
protected final String TEXT_628 = ".eINSTANCE.getLocation_X(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
650 |
protected final String TEXT_629 = NL; |
650 |
protected final String TEXT_629 = ".eINSTANCE.getLocation_Y(), boundsRefresher);"; |
651 |
protected final String TEXT_630 = NL + "\t\t\tif(!"; |
651 |
protected final String TEXT_630 = NL; |
652 |
protected final String TEXT_631 = ".canCreateLink("; |
652 |
protected final String TEXT_631 = "\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("; |
653 |
protected final String TEXT_632 = ", "; |
653 |
protected final String TEXT_632 = ".eINSTANCE.getView_Visible(), visibilityRefresher);"; |
654 |
protected final String TEXT_633 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
654 |
protected final String TEXT_633 = NL; |
655 |
protected final String TEXT_634 = NL + "\t\t\treturn true;"; |
655 |
protected final String TEXT_634 = "\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("; |
656 |
protected final String TEXT_635 = NL; |
656 |
protected final String TEXT_635 = ".eINSTANCE.getView_SourceEdges(), sourceEdgesRefresher);"; |
657 |
protected final String TEXT_636 = NL + "\t\tif ("; |
657 |
protected final String TEXT_636 = NL; |
658 |
protected final String TEXT_637 = "."; |
658 |
protected final String TEXT_637 = "\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("; |
659 |
protected final String TEXT_638 = "() != null) {" + NL + "\t\t\t"; |
659 |
protected final String TEXT_638 = ".eINSTANCE.getView_TargetEdges(), targetEdgesRefresher);"; |
660 |
protected final String TEXT_639 = NL + "\t\t}"; |
660 |
protected final String TEXT_639 = NL; |
661 |
protected final String TEXT_640 = NL + "\t\tif ("; |
661 |
protected final String TEXT_640 = "\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("; |
662 |
protected final String TEXT_641 = "."; |
662 |
protected final String TEXT_641 = ".eINSTANCE.getFontStyle_FontHeight(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
663 |
protected final String TEXT_642 = "().size() >= "; |
663 |
protected final String TEXT_642 = ".eINSTANCE.getFontStyle_FontName(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
664 |
protected final String TEXT_643 = ".eINSTANCE.get"; |
664 |
protected final String TEXT_643 = ".eINSTANCE.getFontStyle_Bold(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
665 |
protected final String TEXT_644 = ".getUpperBound()) {" + NL + "\t\t\t"; |
665 |
protected final String TEXT_644 = ".eINSTANCE.getFontStyle_Italic(), fontRefresher);" + NL + "\t\t"; |
666 |
protected final String TEXT_645 = NL + "\t\t}"; |
666 |
protected final String TEXT_645 = NL; |
667 |
protected final String TEXT_646 = NL; |
667 |
protected final String TEXT_646 = "\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("; |
668 |
protected final String TEXT_647 = NL + "\t\t\tif(!"; |
668 |
protected final String TEXT_647 = ".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("; |
669 |
protected final String TEXT_648 = ".canCreateLink("; |
669 |
protected final String TEXT_648 = ".eINSTANCE.getLineStyle_LineColor(), foregroundColorRefresher);" + NL + "\t}" + NL; |
670 |
protected final String TEXT_649 = ", "; |
670 |
protected final String TEXT_649 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect"; |
671 |
protected final String TEXT_650 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
671 |
protected final String TEXT_650 = "SourceCommand extends "; |
672 |
protected final String TEXT_651 = NL + "\t\t\treturn true;"; |
672 |
protected final String TEXT_651 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
673 |
protected final String TEXT_652 = NL + "\t\t\treturn false;"; |
673 |
protected final String TEXT_652 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
674 |
protected final String TEXT_653 = NL + "\t\t}"; |
674 |
protected final String TEXT_653 = " newSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
675 |
protected final String TEXT_654 = NL; |
675 |
protected final String TEXT_654 = " oldSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
676 |
protected final String TEXT_655 = 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 "; |
676 |
protected final String TEXT_655 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; |
677 |
protected final String TEXT_656 = " getRelationshipContainer("; |
677 |
protected final String TEXT_656 = "SourceCommand("; |
678 |
protected final String TEXT_657 = " element, "; |
678 |
protected final String TEXT_657 = " request) {" + NL + "\t\t\tthis(("; |
679 |
protected final String TEXT_658 = " 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}"; |
679 |
protected final String TEXT_658 = ")request.getConnectionEditPart().getModel(), ("; |
680 |
protected final String TEXT_659 = NL + NL + "\t}"; |
680 |
protected final String TEXT_659 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; |
681 |
protected final String TEXT_660 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect"; |
681 |
protected final String TEXT_660 = "SourceCommand("; |
682 |
protected final String TEXT_661 = "TargetCommand extends "; |
682 |
protected final String TEXT_661 = " edge, "; |
683 |
protected final String TEXT_662 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
683 |
protected final String TEXT_662 = " 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() {"; |
684 |
protected final String TEXT_663 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
684 |
protected final String TEXT_663 = 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 "; |
685 |
protected final String TEXT_664 = " newTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
685 |
protected final String TEXT_664 = " domainModelEditDomain = "; |
686 |
protected final String TEXT_665 = " oldTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
686 |
protected final String TEXT_665 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t"; |
687 |
protected final String TEXT_666 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; |
687 |
protected final String TEXT_666 = " command = new "; |
688 |
protected final String TEXT_667 = "TargetCommand("; |
688 |
protected final String TEXT_667 = "() {" + NL + "\t\t\t\tprivate "; |
689 |
protected final String TEXT_668 = " request) {" + NL + "\t\t\tthis(("; |
689 |
protected final String TEXT_668 = " 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 WrappingCommand(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();"; |
690 |
protected final String TEXT_669 = ")request.getConnectionEditPart().getModel(), ("; |
690 |
protected final String TEXT_669 = 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;"; |
691 |
protected final String TEXT_670 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; |
691 |
protected final String TEXT_670 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {"; |
692 |
protected final String TEXT_671 = "TargetCommand("; |
692 |
protected final String TEXT_671 = NL + "\t\t\treturn false;"; |
693 |
protected final String TEXT_672 = " edge, "; |
693 |
protected final String TEXT_672 = NL + "\t\t\t"; |
694 |
protected final String TEXT_673 = " 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() {"; |
694 |
protected final String TEXT_673 = " container = ("; |
695 |
protected final String TEXT_674 = 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 "; |
695 |
protected final String TEXT_674 = ")getRelationshipContainer(newSource.getElement(), "; |
696 |
protected final String TEXT_675 = " domainModelEditDomain = "; |
696 |
protected final String TEXT_675 = ".eINSTANCE.get"; |
697 |
protected final String TEXT_676 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t"; |
697 |
protected final String TEXT_676 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
698 |
protected final String TEXT_677 = " command = new "; |
698 |
protected final String TEXT_677 = NL; |
699 |
protected final String TEXT_678 = "() {" + NL + "\t\t\t\tprivate "; |
699 |
protected final String TEXT_678 = NL + "\t\tif ("; |
700 |
protected final String TEXT_679 = " 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 WrappingCommand(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();"; |
700 |
protected final String TEXT_679 = "."; |
701 |
protected final String TEXT_680 = 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;"; |
701 |
protected final String TEXT_680 = "() != null) {" + NL + "\t\t\t"; |
702 |
protected final String TEXT_681 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {"; |
702 |
protected final String TEXT_681 = NL + "\t\t}"; |
703 |
protected final String TEXT_682 = NL; |
703 |
protected final String TEXT_682 = NL + "\t\tif ("; |
704 |
protected final String TEXT_683 = NL + "\t\t\tif(!"; |
704 |
protected final String TEXT_683 = "."; |
705 |
protected final String TEXT_684 = ".canCreateLink("; |
705 |
protected final String TEXT_684 = "().size() >= "; |
706 |
protected final String TEXT_685 = ", "; |
706 |
protected final String TEXT_685 = ".eINSTANCE.get"; |
707 |
protected final String TEXT_686 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
707 |
protected final String TEXT_686 = ".getUpperBound()) {" + NL + "\t\t\t"; |
708 |
protected final String TEXT_687 = NL + "\t\t\treturn true;"; |
708 |
protected final String TEXT_687 = NL + "\t\t}"; |
709 |
protected final String TEXT_688 = NL; |
709 |
protected final String TEXT_688 = NL; |
710 |
protected final String TEXT_689 = NL + "\t\t\tif(!"; |
710 |
protected final String TEXT_689 = NL + "\t\tif ("; |
711 |
protected final String TEXT_690 = ".canCreateLink("; |
711 |
protected final String TEXT_690 = "."; |
712 |
protected final String TEXT_691 = ", "; |
712 |
protected final String TEXT_691 = "() != null) {" + NL + "\t\t\t"; |
713 |
protected final String TEXT_692 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
713 |
protected final String TEXT_692 = NL + "\t\t}"; |
714 |
protected final String TEXT_693 = NL + "\t\t\treturn true;"; |
714 |
protected final String TEXT_693 = NL + "\t\tif ("; |
715 |
protected final String TEXT_694 = NL + "\t\t\treturn false;"; |
715 |
protected final String TEXT_694 = "."; |
716 |
protected final String TEXT_695 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
716 |
protected final String TEXT_695 = "().size() >= "; |
717 |
protected final String TEXT_696 = " createReconnectCommand() {" + NL + "\t\t\t"; |
717 |
protected final String TEXT_696 = ".eINSTANCE.get"; |
718 |
protected final String TEXT_697 = " editingDomain = "; |
718 |
protected final String TEXT_697 = ".getUpperBound()) {" + NL + "\t\t\t"; |
719 |
protected final String TEXT_698 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t"; |
719 |
protected final String TEXT_698 = NL + "\t\t}"; |
720 |
protected final String TEXT_699 = " result = new "; |
720 |
protected final String TEXT_699 = NL; |
721 |
protected final String TEXT_700 = "();" + NL + "\t\t\tresult.append(new "; |
721 |
protected final String TEXT_700 = NL + "\t\t\tif(!"; |
722 |
protected final String TEXT_701 = "(edge, newTarget));"; |
722 |
protected final String TEXT_701 = ".canCreateLink("; |
723 |
protected final String TEXT_702 = NL + "\t\t\tresult.append("; |
723 |
protected final String TEXT_702 = ", "; |
724 |
protected final String TEXT_703 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
724 |
protected final String TEXT_703 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
725 |
protected final String TEXT_704 = ".eINSTANCE.get"; |
725 |
protected final String TEXT_704 = NL + "\t\t\treturn true;"; |
726 |
protected final String TEXT_705 = "()," + NL + "\t\t\t\toldTarget.getElement()));" + NL + "\t\t\tresult.append("; |
726 |
protected final String TEXT_705 = NL; |
727 |
protected final String TEXT_706 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
727 |
protected final String TEXT_706 = NL + "\t\tif ("; |
728 |
protected final String TEXT_707 = ".eINSTANCE.get"; |
728 |
protected final String TEXT_707 = "."; |
729 |
protected final String TEXT_708 = "()," + NL + "\t\t\t\tnewTarget.getElement()));"; |
729 |
protected final String TEXT_708 = "() != null) {" + NL + "\t\t\t"; |
730 |
protected final String TEXT_709 = NL + "\t\t\tresult.append("; |
730 |
protected final String TEXT_709 = NL + "\t\t}"; |
731 |
protected final String TEXT_710 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
731 |
protected final String TEXT_710 = NL + "\t\tif ("; |
732 |
protected final String TEXT_711 = ".eINSTANCE.get"; |
732 |
protected final String TEXT_711 = "."; |
733 |
protected final String TEXT_712 = "()," + NL + "\t\t\t\tnewTarget.getElement()));"; |
733 |
protected final String TEXT_712 = "().size() >= "; |
734 |
protected final String TEXT_713 = NL + "\t\t\tresult.append("; |
734 |
protected final String TEXT_713 = ".eINSTANCE.get"; |
735 |
protected final String TEXT_714 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; |
735 |
protected final String TEXT_714 = ".getUpperBound()) {" + NL + "\t\t\t"; |
736 |
protected final String TEXT_715 = ".eINSTANCE.get"; |
736 |
protected final String TEXT_715 = NL + "\t\t}"; |
737 |
protected final String TEXT_716 = "(), oldTarget.getElement()));" + NL + "\t\t\tresult.append("; |
737 |
protected final String TEXT_716 = NL; |
738 |
protected final String TEXT_717 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; |
738 |
protected final String TEXT_717 = NL + "\t\t\tif(!"; |
739 |
protected final String TEXT_718 = ".eINSTANCE.get"; |
739 |
protected final String TEXT_718 = ".canCreateLink("; |
740 |
protected final String TEXT_719 = "(), newTarget.getElement()));"; |
740 |
protected final String TEXT_719 = ", "; |
741 |
protected final String TEXT_720 = NL + "\t\t\tresult.append("; |
741 |
protected final String TEXT_720 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
742 |
protected final String TEXT_721 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; |
742 |
protected final String TEXT_721 = NL + "\t\t\treturn true;"; |
743 |
protected final String TEXT_722 = ".eINSTANCE.get"; |
743 |
protected final String TEXT_722 = NL + "\t\t\treturn false;"; |
744 |
protected final String TEXT_723 = "(), newTarget.getElement()));"; |
744 |
protected final String TEXT_723 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
745 |
protected final String TEXT_724 = NL + "\t\t\treturn result;" + NL + "\t\t}"; |
745 |
protected final String TEXT_724 = " createReconnectCommand() {" + NL + "\t\t\t"; |
746 |
protected final String TEXT_725 = NL; |
746 |
protected final String TEXT_725 = " editingDomain = "; |
747 |
protected final String TEXT_726 = NL + "\t\t\tprivate "; |
747 |
protected final String TEXT_726 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t"; |
748 |
protected final String TEXT_727 = " createDomainModelRemoveCommand("; |
748 |
protected final String TEXT_727 = " result = new "; |
749 |
protected final String TEXT_728 = " editingDomain) {"; |
749 |
protected final String TEXT_728 = "();" + NL + "\t\t\tresult.append(new "; |
750 |
protected final String TEXT_729 = NL + "\t\t\t\t"; |
750 |
protected final String TEXT_729 = "(edge, newSource));"; |
751 |
protected final String TEXT_730 = " result = new "; |
751 |
protected final String TEXT_730 = NL + "\t\t\t"; |
752 |
protected final String TEXT_731 = "();"; |
752 |
protected final String TEXT_731 = " container = getRelationshipContainer(newSource.getElement(), "; |
753 |
protected final String TEXT_732 = NL + "\t\t\t\tresult.append("; |
753 |
protected final String TEXT_732 = ".eINSTANCE.get"; |
754 |
protected final String TEXT_733 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
754 |
protected final String TEXT_733 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn "; |
755 |
protected final String TEXT_734 = ".getElement().eContainer(), "; |
755 |
protected final String TEXT_734 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\t"; |
756 |
protected final String TEXT_735 = ".getElement().eContainmentFeature(), "; |
756 |
protected final String TEXT_735 = " oldContainer = edge.getElement().eContainer();" + NL + "\t\t\tif (oldContainer == null) {" + NL + "\t\t\t\treturn "; |
757 |
protected final String TEXT_736 = ".getElement()));"; |
757 |
protected final String TEXT_736 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tif (oldContainer != container) {"; |
758 |
protected final String TEXT_737 = NL + "\t\t\t\tresult.append("; |
758 |
protected final String TEXT_737 = NL + "\t\t\t\tresult.append("; |
759 |
protected final String TEXT_738 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
759 |
protected final String TEXT_738 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), edge.getElement().eContainmentFeature(), edge.getElement()));"; |
760 |
protected final String TEXT_739 = ".getElement().eContainer(), "; |
760 |
protected final String TEXT_739 = NL + "\t\t\t\tresult.append("; |
761 |
protected final String TEXT_740 = ".getElement().eContainmentFeature(), "; |
761 |
protected final String TEXT_740 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), edge.getElement().eContainmentFeature(), "; |
762 |
protected final String TEXT_741 = ".UNSET_VALUE));"; |
762 |
protected final String TEXT_741 = ".UNSET_VALUE));"; |
763 |
protected final String TEXT_742 = NL + "\t\t\t\treturn "; |
763 |
protected final String TEXT_742 = NL + "\t\t\t\tresult.append("; |
764 |
protected final String TEXT_743 = ".INSTANCE;"; |
764 |
protected final String TEXT_743 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, "; |
765 |
protected final String TEXT_744 = NL + "\t\t\t\tresult.append("; |
765 |
protected final String TEXT_744 = ".eINSTANCE.get"; |
766 |
protected final String TEXT_745 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
766 |
protected final String TEXT_745 = "(), edge.getElement()));"; |
767 |
protected final String TEXT_746 = ".getElement().eContainer(), "; |
767 |
protected final String TEXT_746 = NL + "\t\t\t\tresult.append("; |
768 |
protected final String TEXT_747 = ".eINSTANCE.get"; |
768 |
protected final String TEXT_747 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; |
769 |
protected final String TEXT_748 = "()," + NL + "\t\t\t\t\t"; |
769 |
protected final String TEXT_748 = ".eINSTANCE.get"; |
770 |
protected final String TEXT_749 = ".getElement()));"; |
770 |
protected final String TEXT_749 = "()," + NL + "\t\t\t\t\tedge.getElement()));"; |
771 |
protected final String TEXT_750 = NL + "\t\t\t\tresult.append("; |
771 |
protected final String TEXT_750 = NL + "\t\t\t\tresult.append("; |
772 |
protected final String TEXT_751 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
772 |
protected final String TEXT_751 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; |
773 |
protected final String TEXT_752 = ".getElement().eContainer(), "; |
773 |
protected final String TEXT_752 = ".eINSTANCE.get"; |
774 |
protected final String TEXT_753 = ".eINSTANCE.get"; |
774 |
protected final String TEXT_753 = "()," + NL + "\t\t\t\t\t"; |
775 |
protected final String TEXT_754 = "()," + NL + "\t\t\t\t\t"; |
775 |
protected final String TEXT_754 = ".UNSET_VALUE));"; |
776 |
protected final String TEXT_755 = ".UNSET_VALUE));"; |
776 |
protected final String TEXT_755 = NL + "\t\t\t\tresult.append("; |
777 |
protected final String TEXT_756 = NL + "\t\t\t\tresult.append("; |
777 |
protected final String TEXT_756 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, "; |
778 |
protected final String TEXT_757 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
778 |
protected final String TEXT_757 = ".eINSTANCE.get"; |
779 |
protected final String TEXT_758 = ".getElement(), "; |
779 |
protected final String TEXT_758 = "(), edge.getElement()));"; |
780 |
protected final String TEXT_759 = ".eINSTANCE.get"; |
780 |
protected final String TEXT_759 = NL + "\t\t\t}"; |
781 |
protected final String TEXT_760 = "(), "; |
781 |
protected final String TEXT_760 = NL + "\t\t\tresult.append("; |
782 |
protected final String TEXT_761 = ".getSource().getElement()));"; |
782 |
protected final String TEXT_761 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
783 |
protected final String TEXT_762 = NL + "\t\t\t\tresult.append("; |
783 |
protected final String TEXT_762 = ".eINSTANCE.get"; |
784 |
protected final String TEXT_763 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
784 |
protected final String TEXT_763 = "()," + NL + "\t\t\t\toldSource.getElement()));" + NL + "\t\t\tresult.append("; |
785 |
protected final String TEXT_764 = ".getElement(), "; |
785 |
protected final String TEXT_764 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
786 |
protected final String TEXT_765 = ".eINSTANCE.get"; |
786 |
protected final String TEXT_765 = ".eINSTANCE.get"; |
787 |
protected final String TEXT_766 = "(), "; |
787 |
protected final String TEXT_766 = "()," + NL + "\t\t\t\tnewSource.getElement()));"; |
788 |
protected final String TEXT_767 = ".UNSET_VALUE));"; |
788 |
protected final String TEXT_767 = NL + "\t\t\tresult.append("; |
789 |
protected final String TEXT_768 = NL + "\t\t\t\tresult.append("; |
789 |
protected final String TEXT_768 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
790 |
protected final String TEXT_769 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
790 |
protected final String TEXT_769 = ".eINSTANCE.get"; |
791 |
protected final String TEXT_770 = ".getElement(), "; |
791 |
protected final String TEXT_770 = "()," + NL + "\t\t\t\tnewSource.getElement()));"; |
792 |
protected final String TEXT_771 = ".eINSTANCE.get"; |
792 |
protected final String TEXT_771 = NL + "\t\t\tresult.append("; |
793 |
protected final String TEXT_772 = "(), "; |
793 |
protected final String TEXT_772 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), "; |
794 |
protected final String TEXT_773 = ".getTarget().getElement()));"; |
794 |
protected final String TEXT_773 = ".eINSTANCE.get"; |
795 |
protected final String TEXT_774 = NL + "\t\t\t\tresult.append("; |
795 |
protected final String TEXT_774 = "(), edge.getTarget().getElement()));" + NL + "\t\t\tresult.append("; |
796 |
protected final String TEXT_775 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
796 |
protected final String TEXT_775 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), "; |
797 |
protected final String TEXT_776 = ".getElement(), "; |
797 |
protected final String TEXT_776 = ".eINSTANCE.get"; |
798 |
protected final String TEXT_777 = ".eINSTANCE.get"; |
798 |
protected final String TEXT_777 = "(), edge.getTarget().getElement()));"; |
799 |
protected final String TEXT_778 = "(), "; |
799 |
protected final String TEXT_778 = NL + "\t\t\tresult.append("; |
800 |
protected final String TEXT_779 = ".UNSET_VALUE));"; |
800 |
protected final String TEXT_779 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), "; |
801 |
protected final String TEXT_780 = NL + "\t\t\t\treturn result;"; |
801 |
protected final String TEXT_780 = ".eINSTANCE.get"; |
802 |
protected final String TEXT_781 = NL + "\t\t\t\treturn "; |
802 |
protected final String TEXT_781 = "(), "; |
803 |
protected final String TEXT_782 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
803 |
protected final String TEXT_782 = ".UNSET_VALUE));" + NL + "\t\t\tresult.append("; |
804 |
protected final String TEXT_783 = ".getSource().getElement(), "; |
804 |
protected final String TEXT_783 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), "; |
805 |
protected final String TEXT_784 = ".eINSTANCE.get"; |
805 |
protected final String TEXT_784 = ".eINSTANCE.get"; |
806 |
protected final String TEXT_785 = "(), "; |
806 |
protected final String TEXT_785 = "(), edge.getTarget().getElement()));"; |
807 |
protected final String TEXT_786 = ".getTarget().getElement());"; |
807 |
protected final String TEXT_786 = NL + "\t\t\treturn result;" + NL + "\t\t}" + NL; |
808 |
protected final String TEXT_787 = NL + "\t\t\t\treturn "; |
808 |
protected final String TEXT_787 = NL; |
809 |
protected final String TEXT_788 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
809 |
protected final String TEXT_788 = 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 "; |
810 |
protected final String TEXT_789 = ".getSource().getElement(), "; |
810 |
protected final String TEXT_789 = " getRelationshipContainer("; |
811 |
protected final String TEXT_790 = ".eINSTANCE.get"; |
811 |
protected final String TEXT_790 = " element, "; |
812 |
protected final String TEXT_791 = "(), "; |
812 |
protected final String TEXT_791 = " 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}"; |
813 |
protected final String TEXT_792 = ".UNSET_VALUE);"; |
813 |
protected final String TEXT_792 = NL; |
814 |
protected final String TEXT_793 = NL + "\t\t\t}"; |
814 |
protected final String TEXT_793 = NL + "\t\t\tprivate "; |
815 |
protected final String TEXT_794 = NL + "\t}" + NL; |
815 |
protected final String TEXT_794 = " createDomainModelRemoveCommand("; |
816 |
protected final String TEXT_795 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create"; |
816 |
protected final String TEXT_795 = " editingDomain) {"; |
817 |
protected final String TEXT_796 = "Command extends "; |
817 |
protected final String TEXT_796 = NL + "\t\t\t\t"; |
818 |
protected final String TEXT_797 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
818 |
protected final String TEXT_797 = " result = new "; |
819 |
protected final String TEXT_798 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
819 |
protected final String TEXT_798 = "();"; |
820 |
protected final String TEXT_799 = " target;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
820 |
protected final String TEXT_799 = NL + "\t\t\t\tresult.append("; |
821 |
protected final String TEXT_800 = " 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"; |
821 |
protected final String TEXT_800 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
822 |
protected final String TEXT_801 = "Command("; |
822 |
protected final String TEXT_801 = ".getElement().eContainer(), "; |
823 |
protected final String TEXT_802 = ".CreateConnectionRequestEx requestEx) {" + NL + "\t\t\tif (requestEx.getSourceEditPart().getModel() instanceof "; |
823 |
protected final String TEXT_802 = ".getElement().eContainmentFeature(), "; |
824 |
protected final String TEXT_803 = ") {" + NL + "\t\t\t\tsource = ("; |
824 |
protected final String TEXT_803 = ".getElement()));"; |
825 |
protected final String TEXT_804 = ")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 "; |
825 |
protected final String TEXT_804 = NL + "\t\t\t\tresult.append("; |
826 |
protected final String TEXT_805 = ") {" + NL + "\t\t\t\ttarget = ("; |
826 |
protected final String TEXT_805 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
827 |
protected final String TEXT_806 = ")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 = "; |
827 |
protected final String TEXT_806 = ".getElement().eContainer(), "; |
828 |
protected final String TEXT_807 = ".INSTANCE;" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedEdge = "; |
828 |
protected final String TEXT_807 = ".getElement().eContainmentFeature(), "; |
829 |
protected final String TEXT_808 = ".eINSTANCE.createEdge();"; |
829 |
protected final String TEXT_808 = ".UNSET_VALUE));"; |
830 |
protected final String TEXT_809 = NL + "\t\t\t"; |
830 |
protected final String TEXT_809 = NL + "\t\t\t\treturn "; |
831 |
protected final String TEXT_810 = " createdDomainElement = "; |
831 |
protected final String TEXT_810 = ".INSTANCE;"; |
832 |
protected final String TEXT_811 = ".eINSTANCE.create"; |
832 |
protected final String TEXT_811 = NL + "\t\t\t\tresult.append("; |
833 |
protected final String TEXT_812 = "();" + NL + "\t\t\tcreatedEdge.setElement(createdDomainElement);" + NL + "\t\t\t"; |
833 |
protected final String TEXT_812 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
834 |
protected final String TEXT_813 = NL + "\t\t\t"; |
834 |
protected final String TEXT_813 = ".getElement().eContainer(), "; |
835 |
protected final String TEXT_814 = "."; |
835 |
protected final String TEXT_814 = ".eINSTANCE.get"; |
836 |
protected final String TEXT_815 = ".initializeElement(createdDomainElement);"; |
836 |
protected final String TEXT_815 = "()," + NL + "\t\t\t\t\t"; |
837 |
protected final String TEXT_816 = NL + "\t\t\tcreatedEdge.setElement(null);"; |
837 |
protected final String TEXT_816 = ".getElement()));"; |
838 |
protected final String TEXT_817 = NL + "\t\t\t"; |
838 |
protected final String TEXT_817 = NL + "\t\t\t\tresult.append("; |
839 |
protected final String TEXT_818 = ".decorateView(createdEdge);" + NL + "\t\t\t"; |
839 |
protected final String TEXT_818 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
840 |
protected final String TEXT_819 = " domainModelEditDomain = "; |
840 |
protected final String TEXT_819 = ".getElement().eContainer(), "; |
841 |
protected final String TEXT_820 = ".getEditingDomain(source.getDiagram().getElement());"; |
841 |
protected final String TEXT_820 = ".eINSTANCE.get"; |
842 |
protected final String TEXT_821 = NL + "\t\t\torg.eclipse.emf.common.command.CompoundCommand addLinkEndsCommand = new org.eclipse.emf.common.command.CompoundCommand();"; |
842 |
protected final String TEXT_821 = "()," + NL + "\t\t\t\t\t"; |
843 |
protected final String TEXT_822 = NL + "\t\t\t"; |
843 |
protected final String TEXT_822 = ".UNSET_VALUE));"; |
844 |
protected final String TEXT_823 = " container = getRelationshipContainer(source.getElement(), "; |
844 |
protected final String TEXT_823 = NL + "\t\t\t\tresult.append("; |
845 |
protected final String TEXT_824 = ".eINSTANCE.get"; |
845 |
protected final String TEXT_824 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
846 |
protected final String TEXT_825 = "());" + 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("; |
846 |
protected final String TEXT_825 = ".getElement(), "; |
847 |
protected final String TEXT_826 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcontainer, "; |
847 |
protected final String TEXT_826 = ".eINSTANCE.get"; |
848 |
protected final String TEXT_827 = ".eINSTANCE.get"; |
848 |
protected final String TEXT_827 = "(), "; |
849 |
protected final String TEXT_828 = "(), createdDomainElement));"; |
849 |
protected final String TEXT_828 = ".getSource().getElement()));"; |
850 |
protected final String TEXT_829 = NL + "\t\t\taddLinkEndsCommand.append("; |
850 |
protected final String TEXT_829 = NL + "\t\t\t\tresult.append("; |
851 |
protected final String TEXT_830 = ".create(domainModelEditDomain," + NL + "\t\t\t\tcontainer, "; |
851 |
protected final String TEXT_830 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
852 |
protected final String TEXT_831 = ".eINSTANCE.get"; |
852 |
protected final String TEXT_831 = ".getElement(), "; |
853 |
protected final String TEXT_832 = "(), createdDomainElement));"; |
853 |
protected final String TEXT_832 = ".eINSTANCE.get"; |
854 |
protected final String TEXT_833 = NL; |
854 |
protected final String TEXT_833 = "(), "; |
855 |
protected final String TEXT_834 = NL + "\t\tif ("; |
855 |
protected final String TEXT_834 = ".UNSET_VALUE));"; |
856 |
protected final String TEXT_835 = "."; |
856 |
protected final String TEXT_835 = NL + "\t\t\t\tresult.append("; |
857 |
protected final String TEXT_836 = "() != null) {" + NL + "\t\t\t"; |
857 |
protected final String TEXT_836 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
858 |
protected final String TEXT_837 = NL + "\t\t}"; |
858 |
protected final String TEXT_837 = ".getElement(), "; |
859 |
protected final String TEXT_838 = NL + "\t\tif ("; |
859 |
protected final String TEXT_838 = ".eINSTANCE.get"; |
860 |
protected final String TEXT_839 = "."; |
860 |
protected final String TEXT_839 = "(), "; |
861 |
protected final String TEXT_840 = "().size() >= "; |
861 |
protected final String TEXT_840 = ".getTarget().getElement()));"; |
862 |
protected final String TEXT_841 = ".eINSTANCE.get"; |
862 |
protected final String TEXT_841 = NL + "\t\t\t\tresult.append("; |
863 |
protected final String TEXT_842 = ".getUpperBound()) {" + NL + "\t\t\t"; |
863 |
protected final String TEXT_842 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
864 |
protected final String TEXT_843 = NL + "\t\t}"; |
864 |
protected final String TEXT_843 = ".getElement(), "; |
865 |
protected final String TEXT_844 = NL + "\t\t\taddLinkEndsCommand.append("; |
865 |
protected final String TEXT_844 = ".eINSTANCE.get"; |
866 |
protected final String TEXT_845 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; |
866 |
protected final String TEXT_845 = "(), "; |
867 |
protected final String TEXT_846 = ".eINSTANCE.get"; |
867 |
protected final String TEXT_846 = ".UNSET_VALUE));"; |
868 |
protected final String TEXT_847 = "(), source.getElement()));"; |
868 |
protected final String TEXT_847 = NL + "\t\t\t\treturn result;"; |
869 |
protected final String TEXT_848 = NL; |
869 |
protected final String TEXT_848 = NL + "\t\t\t\treturn "; |
870 |
protected final String TEXT_849 = NL + "\t\tif ("; |
870 |
protected final String TEXT_849 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
871 |
protected final String TEXT_850 = "."; |
871 |
protected final String TEXT_850 = ".getSource().getElement(), "; |
872 |
protected final String TEXT_851 = "() != null) {" + NL + "\t\t\t"; |
872 |
protected final String TEXT_851 = ".eINSTANCE.get"; |
873 |
protected final String TEXT_852 = NL + "\t\t}"; |
873 |
protected final String TEXT_852 = "(), "; |
874 |
protected final String TEXT_853 = NL + "\t\tif ("; |
874 |
protected final String TEXT_853 = ".getTarget().getElement());"; |
875 |
protected final String TEXT_854 = "."; |
875 |
protected final String TEXT_854 = NL + "\t\t\t\treturn "; |
876 |
protected final String TEXT_855 = "().size() >= "; |
876 |
protected final String TEXT_855 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
877 |
protected final String TEXT_856 = ".eINSTANCE.get"; |
877 |
protected final String TEXT_856 = ".getSource().getElement(), "; |
878 |
protected final String TEXT_857 = ".getUpperBound()) {" + NL + "\t\t\t"; |
878 |
protected final String TEXT_857 = ".eINSTANCE.get"; |
879 |
protected final String TEXT_858 = NL + "\t\t}"; |
879 |
protected final String TEXT_858 = "(), "; |
880 |
protected final String TEXT_859 = NL + "\t\t\taddLinkEndsCommand.append("; |
880 |
protected final String TEXT_859 = ".UNSET_VALUE);"; |
881 |
protected final String TEXT_860 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; |
881 |
protected final String TEXT_860 = NL + "\t\t\t}"; |
882 |
protected final String TEXT_861 = ".eINSTANCE.get"; |
882 |
protected final String TEXT_861 = NL + "\t}" + NL; |
883 |
protected final String TEXT_862 = "(), target.getElement()));"; |
883 |
protected final String TEXT_862 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create"; |
884 |
protected final String TEXT_863 = NL + "\t\tdomainModelAddCommand = addLinkEndsCommand;"; |
884 |
protected final String TEXT_863 = "StartCommand extends "; |
885 |
protected final String TEXT_864 = NL + "\t\t\tdomainModelAddCommand = "; |
885 |
protected final String TEXT_864 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
886 |
protected final String TEXT_865 = ".create(domainModelEditDomain, source.getElement(), " + NL + "\t\t\t\t"; |
886 |
protected final String TEXT_865 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; |
887 |
protected final String TEXT_866 = ".eINSTANCE.get"; |
887 |
protected final String TEXT_866 = "StartCommand("; |
888 |
protected final String TEXT_867 = "(), target.getElement());"; |
888 |
protected final String TEXT_867 = ".CreateConnectionRequestEx 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 = ("; |
889 |
protected final String TEXT_868 = NL + "\t\t}" + NL; |
889 |
protected final String TEXT_868 = ")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}"; |
890 |
protected final String TEXT_869 = NL; |
890 |
protected final String TEXT_869 = NL + "\t\t\treturn false;"; |
891 |
protected final String TEXT_870 = 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 "; |
891 |
protected final String TEXT_870 = NL + "\t\t\t"; |
892 |
protected final String TEXT_871 = " getRelationshipContainer("; |
892 |
protected final String TEXT_871 = " container = ("; |
893 |
protected final String TEXT_872 = " element, "; |
893 |
protected final String TEXT_872 = ")getRelationshipContainer(source.getElement(), "; |
894 |
protected final String TEXT_873 = " 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}"; |
894 |
protected final String TEXT_873 = ".eINSTANCE.get"; |
895 |
protected final String TEXT_874 = 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}"; |
895 |
protected final String TEXT_874 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
896 |
protected final String TEXT_875 = NL; |
896 |
protected final String TEXT_875 = NL; |
897 |
protected final String TEXT_876 = NL + "\t\t\tif(!"; |
897 |
protected final String TEXT_876 = NL + "\t\tif ("; |
898 |
protected final String TEXT_877 = ".canCreateLink("; |
898 |
protected final String TEXT_877 = "."; |
899 |
protected final String TEXT_878 = ", "; |
899 |
protected final String TEXT_878 = "() != null) {" + NL + "\t\t\t"; |
900 |
protected final String TEXT_879 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
900 |
protected final String TEXT_879 = NL + "\t\t}"; |
901 |
protected final String TEXT_880 = 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}"; |
901 |
protected final String TEXT_880 = NL + "\t\tif ("; |
902 |
protected final String TEXT_881 = NL; |
902 |
protected final String TEXT_881 = "."; |
903 |
protected final String TEXT_882 = NL; |
903 |
protected final String TEXT_882 = "().size() >= "; |
904 |
protected final String TEXT_883 = 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}"; |
904 |
protected final String TEXT_883 = ".eINSTANCE.get"; |
905 |
protected final String TEXT_884 = NL + "}"; |
905 |
protected final String TEXT_884 = ".getUpperBound()) {" + NL + "\t\t\t"; |
906 |
protected final String TEXT_885 = NL; |
906 |
protected final String TEXT_885 = NL + "\t\t}"; |
|
|
907 |
protected final String TEXT_886 = NL; |
908 |
protected final String TEXT_887 = NL + "\t\tif ("; |
909 |
protected final String TEXT_888 = "."; |
910 |
protected final String TEXT_889 = "() != null) {" + NL + "\t\t\t"; |
911 |
protected final String TEXT_890 = NL + "\t\t}"; |
912 |
protected final String TEXT_891 = NL + "\t\tif ("; |
913 |
protected final String TEXT_892 = "."; |
914 |
protected final String TEXT_893 = "().size() >= "; |
915 |
protected final String TEXT_894 = ".eINSTANCE.get"; |
916 |
protected final String TEXT_895 = ".getUpperBound()) {" + NL + "\t\t\t"; |
917 |
protected final String TEXT_896 = NL + "\t\t}"; |
918 |
protected final String TEXT_897 = NL; |
919 |
protected final String TEXT_898 = NL + "\t\t\tif(!"; |
920 |
protected final String TEXT_899 = ".canCreateLink("; |
921 |
protected final String TEXT_900 = ", "; |
922 |
protected final String TEXT_901 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
923 |
protected final String TEXT_902 = NL + "\t\t\treturn true;"; |
924 |
protected final String TEXT_903 = NL; |
925 |
protected final String TEXT_904 = NL + "\t\tif ("; |
926 |
protected final String TEXT_905 = "."; |
927 |
protected final String TEXT_906 = "() != null) {" + NL + "\t\t\t"; |
928 |
protected final String TEXT_907 = NL + "\t\t}"; |
929 |
protected final String TEXT_908 = NL + "\t\tif ("; |
930 |
protected final String TEXT_909 = "."; |
931 |
protected final String TEXT_910 = "().size() >= "; |
932 |
protected final String TEXT_911 = ".eINSTANCE.get"; |
933 |
protected final String TEXT_912 = ".getUpperBound()) {" + NL + "\t\t\t"; |
934 |
protected final String TEXT_913 = NL + "\t\t}"; |
935 |
protected final String TEXT_914 = NL; |
936 |
protected final String TEXT_915 = NL + "\t\t\tif(!"; |
937 |
protected final String TEXT_916 = ".canCreateLink("; |
938 |
protected final String TEXT_917 = ", "; |
939 |
protected final String TEXT_918 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
940 |
protected final String TEXT_919 = NL + "\t\t\treturn true;"; |
941 |
protected final String TEXT_920 = NL + "\t\t\treturn false;"; |
942 |
protected final String TEXT_921 = NL + "\t\t}"; |
943 |
protected final String TEXT_922 = NL; |
944 |
protected final String TEXT_923 = 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 "; |
945 |
protected final String TEXT_924 = " getRelationshipContainer("; |
946 |
protected final String TEXT_925 = " element, "; |
947 |
protected final String TEXT_926 = " 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}"; |
948 |
protected final String TEXT_927 = NL + NL + "\t}"; |
949 |
protected final String TEXT_928 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect"; |
950 |
protected final String TEXT_929 = "TargetCommand extends "; |
951 |
protected final String TEXT_930 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
952 |
protected final String TEXT_931 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
953 |
protected final String TEXT_932 = " newTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
954 |
protected final String TEXT_933 = " oldTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
955 |
protected final String TEXT_934 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; |
956 |
protected final String TEXT_935 = "TargetCommand("; |
957 |
protected final String TEXT_936 = " request) {" + NL + "\t\t\tthis(("; |
958 |
protected final String TEXT_937 = ")request.getConnectionEditPart().getModel(), ("; |
959 |
protected final String TEXT_938 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; |
960 |
protected final String TEXT_939 = "TargetCommand("; |
961 |
protected final String TEXT_940 = " edge, "; |
962 |
protected final String TEXT_941 = " 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() {"; |
963 |
protected final String TEXT_942 = 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 "; |
964 |
protected final String TEXT_943 = " domainModelEditDomain = "; |
965 |
protected final String TEXT_944 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t"; |
966 |
protected final String TEXT_945 = " command = new "; |
967 |
protected final String TEXT_946 = "() {" + NL + "\t\t\t\tprivate "; |
968 |
protected final String TEXT_947 = " 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 WrappingCommand(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();"; |
969 |
protected final String TEXT_948 = 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;"; |
970 |
protected final String TEXT_949 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {"; |
971 |
protected final String TEXT_950 = NL; |
972 |
protected final String TEXT_951 = NL + "\t\t\tif(!"; |
973 |
protected final String TEXT_952 = ".canCreateLink("; |
974 |
protected final String TEXT_953 = ", "; |
975 |
protected final String TEXT_954 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
976 |
protected final String TEXT_955 = NL + "\t\t\treturn true;"; |
977 |
protected final String TEXT_956 = NL; |
978 |
protected final String TEXT_957 = NL + "\t\t\tif(!"; |
979 |
protected final String TEXT_958 = ".canCreateLink("; |
980 |
protected final String TEXT_959 = ", "; |
981 |
protected final String TEXT_960 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
982 |
protected final String TEXT_961 = NL + "\t\t\treturn true;"; |
983 |
protected final String TEXT_962 = NL + "\t\t\treturn false;"; |
984 |
protected final String TEXT_963 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; |
985 |
protected final String TEXT_964 = " createReconnectCommand() {" + NL + "\t\t\t"; |
986 |
protected final String TEXT_965 = " editingDomain = "; |
987 |
protected final String TEXT_966 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t"; |
988 |
protected final String TEXT_967 = " result = new "; |
989 |
protected final String TEXT_968 = "();" + NL + "\t\t\tresult.append(new "; |
990 |
protected final String TEXT_969 = "(edge, newTarget));"; |
991 |
protected final String TEXT_970 = NL + "\t\t\tresult.append("; |
992 |
protected final String TEXT_971 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
993 |
protected final String TEXT_972 = ".eINSTANCE.get"; |
994 |
protected final String TEXT_973 = "()," + NL + "\t\t\t\toldTarget.getElement()));" + NL + "\t\t\tresult.append("; |
995 |
protected final String TEXT_974 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
996 |
protected final String TEXT_975 = ".eINSTANCE.get"; |
997 |
protected final String TEXT_976 = "()," + NL + "\t\t\t\tnewTarget.getElement()));"; |
998 |
protected final String TEXT_977 = NL + "\t\t\tresult.append("; |
999 |
protected final String TEXT_978 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; |
1000 |
protected final String TEXT_979 = ".eINSTANCE.get"; |
1001 |
protected final String TEXT_980 = "()," + NL + "\t\t\t\tnewTarget.getElement()));"; |
1002 |
protected final String TEXT_981 = NL + "\t\t\tresult.append("; |
1003 |
protected final String TEXT_982 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; |
1004 |
protected final String TEXT_983 = ".eINSTANCE.get"; |
1005 |
protected final String TEXT_984 = "(), oldTarget.getElement()));" + NL + "\t\t\tresult.append("; |
1006 |
protected final String TEXT_985 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; |
1007 |
protected final String TEXT_986 = ".eINSTANCE.get"; |
1008 |
protected final String TEXT_987 = "(), newTarget.getElement()));"; |
1009 |
protected final String TEXT_988 = NL + "\t\t\tresult.append("; |
1010 |
protected final String TEXT_989 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; |
1011 |
protected final String TEXT_990 = ".eINSTANCE.get"; |
1012 |
protected final String TEXT_991 = "(), newTarget.getElement()));"; |
1013 |
protected final String TEXT_992 = NL + "\t\t\treturn result;" + NL + "\t\t}"; |
1014 |
protected final String TEXT_993 = NL; |
1015 |
protected final String TEXT_994 = NL + "\t\t\tprivate "; |
1016 |
protected final String TEXT_995 = " createDomainModelRemoveCommand("; |
1017 |
protected final String TEXT_996 = " editingDomain) {"; |
1018 |
protected final String TEXT_997 = NL + "\t\t\t\t"; |
1019 |
protected final String TEXT_998 = " result = new "; |
1020 |
protected final String TEXT_999 = "();"; |
1021 |
protected final String TEXT_1000 = NL + "\t\t\t\tresult.append("; |
1022 |
protected final String TEXT_1001 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
1023 |
protected final String TEXT_1002 = ".getElement().eContainer(), "; |
1024 |
protected final String TEXT_1003 = ".getElement().eContainmentFeature(), "; |
1025 |
protected final String TEXT_1004 = ".getElement()));"; |
1026 |
protected final String TEXT_1005 = NL + "\t\t\t\tresult.append("; |
1027 |
protected final String TEXT_1006 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
1028 |
protected final String TEXT_1007 = ".getElement().eContainer(), "; |
1029 |
protected final String TEXT_1008 = ".getElement().eContainmentFeature(), "; |
1030 |
protected final String TEXT_1009 = ".UNSET_VALUE));"; |
1031 |
protected final String TEXT_1010 = NL + "\t\t\t\treturn "; |
1032 |
protected final String TEXT_1011 = ".INSTANCE;"; |
1033 |
protected final String TEXT_1012 = NL + "\t\t\t\tresult.append("; |
1034 |
protected final String TEXT_1013 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
1035 |
protected final String TEXT_1014 = ".getElement().eContainer(), "; |
1036 |
protected final String TEXT_1015 = ".eINSTANCE.get"; |
1037 |
protected final String TEXT_1016 = "()," + NL + "\t\t\t\t\t"; |
1038 |
protected final String TEXT_1017 = ".getElement()));"; |
1039 |
protected final String TEXT_1018 = NL + "\t\t\t\tresult.append("; |
1040 |
protected final String TEXT_1019 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
1041 |
protected final String TEXT_1020 = ".getElement().eContainer(), "; |
1042 |
protected final String TEXT_1021 = ".eINSTANCE.get"; |
1043 |
protected final String TEXT_1022 = "()," + NL + "\t\t\t\t\t"; |
1044 |
protected final String TEXT_1023 = ".UNSET_VALUE));"; |
1045 |
protected final String TEXT_1024 = NL + "\t\t\t\tresult.append("; |
1046 |
protected final String TEXT_1025 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
1047 |
protected final String TEXT_1026 = ".getElement(), "; |
1048 |
protected final String TEXT_1027 = ".eINSTANCE.get"; |
1049 |
protected final String TEXT_1028 = "(), "; |
1050 |
protected final String TEXT_1029 = ".getSource().getElement()));"; |
1051 |
protected final String TEXT_1030 = NL + "\t\t\t\tresult.append("; |
1052 |
protected final String TEXT_1031 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
1053 |
protected final String TEXT_1032 = ".getElement(), "; |
1054 |
protected final String TEXT_1033 = ".eINSTANCE.get"; |
1055 |
protected final String TEXT_1034 = "(), "; |
1056 |
protected final String TEXT_1035 = ".UNSET_VALUE));"; |
1057 |
protected final String TEXT_1036 = NL + "\t\t\t\tresult.append("; |
1058 |
protected final String TEXT_1037 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
1059 |
protected final String TEXT_1038 = ".getElement(), "; |
1060 |
protected final String TEXT_1039 = ".eINSTANCE.get"; |
1061 |
protected final String TEXT_1040 = "(), "; |
1062 |
protected final String TEXT_1041 = ".getTarget().getElement()));"; |
1063 |
protected final String TEXT_1042 = NL + "\t\t\t\tresult.append("; |
1064 |
protected final String TEXT_1043 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
1065 |
protected final String TEXT_1044 = ".getElement(), "; |
1066 |
protected final String TEXT_1045 = ".eINSTANCE.get"; |
1067 |
protected final String TEXT_1046 = "(), "; |
1068 |
protected final String TEXT_1047 = ".UNSET_VALUE));"; |
1069 |
protected final String TEXT_1048 = NL + "\t\t\t\treturn result;"; |
1070 |
protected final String TEXT_1049 = NL + "\t\t\t\treturn "; |
1071 |
protected final String TEXT_1050 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
1072 |
protected final String TEXT_1051 = ".getSource().getElement(), "; |
1073 |
protected final String TEXT_1052 = ".eINSTANCE.get"; |
1074 |
protected final String TEXT_1053 = "(), "; |
1075 |
protected final String TEXT_1054 = ".getTarget().getElement());"; |
1076 |
protected final String TEXT_1055 = NL + "\t\t\t\treturn "; |
1077 |
protected final String TEXT_1056 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; |
1078 |
protected final String TEXT_1057 = ".getSource().getElement(), "; |
1079 |
protected final String TEXT_1058 = ".eINSTANCE.get"; |
1080 |
protected final String TEXT_1059 = "(), "; |
1081 |
protected final String TEXT_1060 = ".UNSET_VALUE);"; |
1082 |
protected final String TEXT_1061 = NL + "\t\t\t}"; |
1083 |
protected final String TEXT_1062 = NL + "\t}" + NL; |
1084 |
protected final String TEXT_1063 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create"; |
1085 |
protected final String TEXT_1064 = "Command extends "; |
1086 |
protected final String TEXT_1065 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
1087 |
protected final String TEXT_1066 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
1088 |
protected final String TEXT_1067 = " target;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
1089 |
protected final String TEXT_1068 = " 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"; |
1090 |
protected final String TEXT_1069 = "Command("; |
1091 |
protected final String TEXT_1070 = ".CreateConnectionRequestEx requestEx) {" + NL + "\t\t\tif (requestEx.getSourceEditPart().getModel() instanceof "; |
1092 |
protected final String TEXT_1071 = ") {" + NL + "\t\t\t\tsource = ("; |
1093 |
protected final String TEXT_1072 = ")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 "; |
1094 |
protected final String TEXT_1073 = ") {" + NL + "\t\t\t\ttarget = ("; |
1095 |
protected final String TEXT_1074 = ")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 = "; |
1096 |
protected final String TEXT_1075 = ".INSTANCE;" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedEdge = "; |
1097 |
protected final String TEXT_1076 = ".eINSTANCE.createEdge();"; |
1098 |
protected final String TEXT_1077 = NL + "\t\t\t"; |
1099 |
protected final String TEXT_1078 = " createdDomainElement = "; |
1100 |
protected final String TEXT_1079 = ".eINSTANCE.create"; |
1101 |
protected final String TEXT_1080 = "();" + NL + "\t\t\tcreatedEdge.setElement(createdDomainElement);" + NL + "\t\t\t"; |
1102 |
protected final String TEXT_1081 = NL + "\t\t\t"; |
1103 |
protected final String TEXT_1082 = "."; |
1104 |
protected final String TEXT_1083 = ".initializeElement(createdDomainElement);"; |
1105 |
protected final String TEXT_1084 = NL + "\t\t\tcreatedEdge.setElement(null);"; |
1106 |
protected final String TEXT_1085 = NL + "\t\t\t"; |
1107 |
protected final String TEXT_1086 = ".decorateView(createdEdge);" + NL + "\t\t\t"; |
1108 |
protected final String TEXT_1087 = " domainModelEditDomain = "; |
1109 |
protected final String TEXT_1088 = ".getEditingDomain(source.getDiagram().getElement());"; |
1110 |
protected final String TEXT_1089 = NL + "\t\t\torg.eclipse.emf.common.command.CompoundCommand addLinkEndsCommand = new org.eclipse.emf.common.command.CompoundCommand();"; |
1111 |
protected final String TEXT_1090 = NL + "\t\t\t"; |
1112 |
protected final String TEXT_1091 = " container = getRelationshipContainer(source.getElement(), "; |
1113 |
protected final String TEXT_1092 = ".eINSTANCE.get"; |
1114 |
protected final String TEXT_1093 = "());" + 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("; |
1115 |
protected final String TEXT_1094 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcontainer, "; |
1116 |
protected final String TEXT_1095 = ".eINSTANCE.get"; |
1117 |
protected final String TEXT_1096 = "(), createdDomainElement));"; |
1118 |
protected final String TEXT_1097 = NL + "\t\t\taddLinkEndsCommand.append("; |
1119 |
protected final String TEXT_1098 = ".create(domainModelEditDomain," + NL + "\t\t\t\tcontainer, "; |
1120 |
protected final String TEXT_1099 = ".eINSTANCE.get"; |
1121 |
protected final String TEXT_1100 = "(), createdDomainElement));"; |
1122 |
protected final String TEXT_1101 = NL; |
1123 |
protected final String TEXT_1102 = NL + "\t\tif ("; |
1124 |
protected final String TEXT_1103 = "."; |
1125 |
protected final String TEXT_1104 = "() != null) {" + NL + "\t\t\t"; |
1126 |
protected final String TEXT_1105 = NL + "\t\t}"; |
1127 |
protected final String TEXT_1106 = NL + "\t\tif ("; |
1128 |
protected final String TEXT_1107 = "."; |
1129 |
protected final String TEXT_1108 = "().size() >= "; |
1130 |
protected final String TEXT_1109 = ".eINSTANCE.get"; |
1131 |
protected final String TEXT_1110 = ".getUpperBound()) {" + NL + "\t\t\t"; |
1132 |
protected final String TEXT_1111 = NL + "\t\t}"; |
1133 |
protected final String TEXT_1112 = NL + "\t\t\taddLinkEndsCommand.append("; |
1134 |
protected final String TEXT_1113 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; |
1135 |
protected final String TEXT_1114 = ".eINSTANCE.get"; |
1136 |
protected final String TEXT_1115 = "(), source.getElement()));"; |
1137 |
protected final String TEXT_1116 = NL; |
1138 |
protected final String TEXT_1117 = NL + "\t\tif ("; |
1139 |
protected final String TEXT_1118 = "."; |
1140 |
protected final String TEXT_1119 = "() != null) {" + NL + "\t\t\t"; |
1141 |
protected final String TEXT_1120 = NL + "\t\t}"; |
1142 |
protected final String TEXT_1121 = NL + "\t\tif ("; |
1143 |
protected final String TEXT_1122 = "."; |
1144 |
protected final String TEXT_1123 = "().size() >= "; |
1145 |
protected final String TEXT_1124 = ".eINSTANCE.get"; |
1146 |
protected final String TEXT_1125 = ".getUpperBound()) {" + NL + "\t\t\t"; |
1147 |
protected final String TEXT_1126 = NL + "\t\t}"; |
1148 |
protected final String TEXT_1127 = NL + "\t\t\taddLinkEndsCommand.append("; |
1149 |
protected final String TEXT_1128 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; |
1150 |
protected final String TEXT_1129 = ".eINSTANCE.get"; |
1151 |
protected final String TEXT_1130 = "(), target.getElement()));"; |
1152 |
protected final String TEXT_1131 = NL + "\t\tdomainModelAddCommand = addLinkEndsCommand;"; |
1153 |
protected final String TEXT_1132 = NL + "\t\t\tdomainModelAddCommand = "; |
1154 |
protected final String TEXT_1133 = ".create(domainModelEditDomain, source.getElement(), " + NL + "\t\t\t\t"; |
1155 |
protected final String TEXT_1134 = ".eINSTANCE.get"; |
1156 |
protected final String TEXT_1135 = "(), target.getElement());"; |
1157 |
protected final String TEXT_1136 = NL + "\t\t}" + NL; |
1158 |
protected final String TEXT_1137 = NL; |
1159 |
protected final String TEXT_1138 = 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 "; |
1160 |
protected final String TEXT_1139 = " getRelationshipContainer("; |
1161 |
protected final String TEXT_1140 = " element, "; |
1162 |
protected final String TEXT_1141 = " 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}"; |
1163 |
protected final String TEXT_1142 = 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}"; |
1164 |
protected final String TEXT_1143 = NL; |
1165 |
protected final String TEXT_1144 = NL + "\t\t\tif(!"; |
1166 |
protected final String TEXT_1145 = ".canCreateLink("; |
1167 |
protected final String TEXT_1146 = ", "; |
1168 |
protected final String TEXT_1147 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; |
1169 |
protected final String TEXT_1148 = 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}"; |
1170 |
protected final String TEXT_1149 = NL; |
1171 |
protected final String TEXT_1150 = NL; |
1172 |
protected final String TEXT_1151 = 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}"; |
1173 |
protected final String TEXT_1152 = NL + "}"; |
1174 |
protected final String TEXT_1153 = NL; |
907 |
|
1175 |
|
908 |
public String generate(Object argument) |
1176 |
public String generate(Object argument) |
909 |
{ |
1177 |
{ |
Lines 915-920
Link Here
|
915 |
Palette palette = genDiagram.getPalette(); |
1183 |
Palette palette = genDiagram.getPalette(); |
916 |
boolean isXYLayout = ViewmapLayoutTypeHelper.getSharedInstance().isStoringChildPositions(genNode); |
1184 |
boolean isXYLayout = ViewmapLayoutTypeHelper.getSharedInstance().isStoringChildPositions(genNode); |
917 |
final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1]; |
1185 |
final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1]; |
|
|
1186 |
importManager.registerInnerClass("LinkNotationModelRefresher"); //from linkNotationModelRefresher.jetinc |
1187 |
importManager.registerInnerClass("LinkDescriptor"); //from linkNotationModelRefresher.jetinc |
918 |
|
1188 |
|
919 |
class NodeEditPartHelper { |
1189 |
class NodeEditPartHelper { |
920 |
private final List myInnerLabels = new LinkedList(); |
1190 |
private final List myInnerLabels = new LinkedList(); |
Lines 922-927
Link Here
|
922 |
private final List myExternalLabels = new LinkedList(); |
1192 |
private final List myExternalLabels = new LinkedList(); |
923 |
private final List myPinnedCompartments = new LinkedList(); |
1193 |
private final List myPinnedCompartments = new LinkedList(); |
924 |
private final List myFloatingCompartments = new LinkedList(); |
1194 |
private final List myFloatingCompartments = new LinkedList(); |
|
|
1195 |
private final List myContainedFeatureModelFacetLinks = new LinkedList(); |
1196 |
private final List myContainedTypeModelFacetLinks = new LinkedList(); |
925 |
private GenNodeLabel myPrimaryLabel; |
1197 |
private GenNodeLabel myPrimaryLabel; |
926 |
private boolean myHasChildrenInListCompartments = false; |
1198 |
private boolean myHasChildrenInListCompartments = false; |
927 |
private boolean hasIncomingLinks = false; |
1199 |
private boolean hasIncomingLinks = false; |
Lines 963-986
Link Here
|
963 |
} |
1235 |
} |
964 |
GenClass incomingClass; |
1236 |
GenClass incomingClass; |
965 |
GenClass outgoingClass; |
1237 |
GenClass outgoingClass; |
|
|
1238 |
GenClass containerClass; |
966 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
1239 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
967 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
1240 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
968 |
incomingClass = modelFacet.getTargetMetaFeature().getTypeGenClass(); |
1241 |
incomingClass = modelFacet.getTargetMetaFeature().getTypeGenClass(); |
969 |
outgoingClass = modelFacet.getSourceMetaFeature() == null |
1242 |
outgoingClass = modelFacet.getSourceMetaFeature() == null |
970 |
? modelFacet.getContainmentMetaFeature().getGenClass() |
1243 |
? modelFacet.getContainmentMetaFeature().getGenClass() |
971 |
: modelFacet.getSourceMetaFeature().getTypeGenClass(); |
1244 |
: modelFacet.getSourceMetaFeature().getTypeGenClass(); |
|
|
1245 |
if (modelFacet.getSourceMetaFeature() == null && modelFacet.getTargetMetaFeature() == null) { |
1246 |
//if one link feature is null, the element is treated as this end of the link. If both are null, we cannot do anything about such a link. |
1247 |
containerClass = null; |
1248 |
} else { |
1249 |
containerClass = modelFacet.getContainmentMetaFeature().getGenClass(); |
1250 |
} |
972 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
1251 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
973 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
1252 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
974 |
incomingClass = metaFeature.getTypeGenClass(); |
1253 |
incomingClass = metaFeature.getTypeGenClass(); |
975 |
outgoingClass = metaFeature.getGenClass(); |
1254 |
outgoingClass = metaFeature.getGenClass(); |
|
|
1255 |
containerClass = metaFeature.getGenClass(); |
976 |
} else { |
1256 |
} else { |
977 |
continue; |
1257 |
continue; |
978 |
} |
1258 |
} |
979 |
hasIncomingLinks |= (incomingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())); |
1259 |
hasIncomingLinks |= (incomingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())); |
980 |
hasOutgoingLinks |= (outgoingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())); |
1260 |
hasOutgoingLinks |= (outgoingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())); |
|
|
1261 |
if (containerClass != null && containerClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { |
1262 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
1263 |
myContainedTypeModelFacetLinks.add(genLink); |
1264 |
} else { |
1265 |
myContainedFeatureModelFacetLinks.add(genLink); |
1266 |
} |
1267 |
} |
981 |
} |
1268 |
} |
982 |
} |
1269 |
} |
983 |
|
1270 |
|
|
|
1271 |
public boolean containsLinks() { |
1272 |
return containsFeatureModelFacetLinks() || containsTypeModelFacetLinks(); |
1273 |
} |
1274 |
|
1275 |
public boolean containsFeatureModelFacetLinks() { |
1276 |
return !myContainedFeatureModelFacetLinks.isEmpty(); |
1277 |
} |
1278 |
|
1279 |
public boolean containsTypeModelFacetLinks() { |
1280 |
return !myContainedTypeModelFacetLinks.isEmpty(); |
1281 |
} |
1282 |
|
984 |
public boolean hasIncomingLinks() { |
1283 |
public boolean hasIncomingLinks() { |
985 |
return hasIncomingLinks; |
1284 |
return hasIncomingLinks; |
986 |
} |
1285 |
} |
Lines 1028-1033
Link Here
|
1028 |
public Iterator getAllInnerLabels() { |
1327 |
public Iterator getAllInnerLabels() { |
1029 |
return myAllInnerLabels.iterator(); |
1328 |
return myAllInnerLabels.iterator(); |
1030 |
} |
1329 |
} |
|
|
1330 |
|
1331 |
public Iterator getContainedFeatureModelFacetLinks() { |
1332 |
return myContainedFeatureModelFacetLinks.iterator(); |
1333 |
} |
1334 |
|
1335 |
public Iterator getContainedTypeModelFacetLinks() { |
1336 |
return myContainedTypeModelFacetLinks.iterator(); |
1337 |
} |
1031 |
} |
1338 |
} |
1032 |
final NodeEditPartHelper myHelper = new NodeEditPartHelper(genNode); |
1339 |
final NodeEditPartHelper myHelper = new NodeEditPartHelper(genNode); |
1033 |
|
1340 |
|
Lines 1072-1097
Link Here
|
1072 |
stringBuffer.append(TEXT_17); |
1379 |
stringBuffer.append(TEXT_17); |
1073 |
stringBuffer.append(TEXT_18); |
1380 |
stringBuffer.append(TEXT_18); |
1074 |
stringBuffer.append(TEXT_19); |
1381 |
stringBuffer.append(TEXT_19); |
1075 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
1382 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1076 |
stringBuffer.append(TEXT_20); |
1383 |
stringBuffer.append(TEXT_20); |
1077 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy")); |
1384 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1078 |
stringBuffer.append(TEXT_21); |
1385 |
stringBuffer.append(TEXT_21); |
1079 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1386 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1080 |
stringBuffer.append(TEXT_22); |
1387 |
stringBuffer.append(TEXT_22); |
1081 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); |
1388 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1082 |
stringBuffer.append(TEXT_23); |
1389 |
stringBuffer.append(TEXT_23); |
1083 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
|
|
1084 |
stringBuffer.append(TEXT_24); |
1390 |
stringBuffer.append(TEXT_24); |
1085 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
|
|
1086 |
stringBuffer.append(TEXT_25); |
1391 |
stringBuffer.append(TEXT_25); |
1087 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1392 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
1088 |
stringBuffer.append(TEXT_26); |
1393 |
stringBuffer.append(TEXT_26); |
1089 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1394 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy")); |
1090 |
stringBuffer.append(TEXT_27); |
1395 |
stringBuffer.append(TEXT_27); |
1091 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
1396 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1092 |
stringBuffer.append(TEXT_28); |
1397 |
stringBuffer.append(TEXT_28); |
1093 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
1398 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); |
1094 |
stringBuffer.append(TEXT_29); |
1399 |
stringBuffer.append(TEXT_29); |
|
|
1400 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
1401 |
stringBuffer.append(TEXT_30); |
1402 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
1403 |
stringBuffer.append(TEXT_31); |
1404 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1405 |
stringBuffer.append(TEXT_32); |
1406 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1407 |
stringBuffer.append(TEXT_33); |
1408 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
1409 |
stringBuffer.append(TEXT_34); |
1410 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
1411 |
stringBuffer.append(TEXT_35); |
1095 |
|
1412 |
|
1096 |
{ |
1413 |
{ |
1097 |
TypeModelFacet facet = genNode.getModelFacet(); |
1414 |
TypeModelFacet facet = genNode.getModelFacet(); |
Lines 1099-1264
Link Here
|
1099 |
GenFeature containmentFeature = facet.getContainmentMetaFeature(); |
1416 |
GenFeature containmentFeature = facet.getContainmentMetaFeature(); |
1100 |
if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { |
1417 |
if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { |
1101 |
|
1418 |
|
1102 |
stringBuffer.append(TEXT_30); |
1419 |
stringBuffer.append(TEXT_36); |
1103 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1420 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1104 |
stringBuffer.append(TEXT_31); |
1421 |
stringBuffer.append(TEXT_37); |
1105 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1422 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1106 |
stringBuffer.append(TEXT_32); |
1423 |
stringBuffer.append(TEXT_38); |
1107 |
|
1424 |
|
1108 |
if (containmentFeature.getEcoreFeature().isMany()) { |
1425 |
if (containmentFeature.getEcoreFeature().isMany()) { |
1109 |
|
1426 |
|
1110 |
stringBuffer.append(TEXT_33); |
1427 |
stringBuffer.append(TEXT_39); |
1111 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
1428 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
1112 |
stringBuffer.append(TEXT_34); |
1429 |
stringBuffer.append(TEXT_40); |
1113 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1430 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1114 |
stringBuffer.append(TEXT_35); |
1431 |
stringBuffer.append(TEXT_41); |
1115 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
1432 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
1116 |
stringBuffer.append(TEXT_36); |
1433 |
stringBuffer.append(TEXT_42); |
1117 |
|
1434 |
|
1118 |
} else { |
1435 |
} else { |
1119 |
|
1436 |
|
1120 |
stringBuffer.append(TEXT_37); |
1437 |
stringBuffer.append(TEXT_43); |
1121 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1438 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1122 |
stringBuffer.append(TEXT_38); |
1439 |
stringBuffer.append(TEXT_44); |
1123 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1440 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1124 |
stringBuffer.append(TEXT_39); |
1441 |
stringBuffer.append(TEXT_45); |
1125 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
1442 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
1126 |
stringBuffer.append(TEXT_40); |
1443 |
stringBuffer.append(TEXT_46); |
1127 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1444 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1128 |
stringBuffer.append(TEXT_41); |
1445 |
stringBuffer.append(TEXT_47); |
1129 |
|
1446 |
|
1130 |
} |
1447 |
} |
1131 |
|
1448 |
|
1132 |
|
1449 |
|
1133 |
if (childFeature.getEcoreFeature().isMany()) { |
1450 |
if (childFeature.getEcoreFeature().isMany()) { |
1134 |
|
1451 |
|
1135 |
stringBuffer.append(TEXT_42); |
1452 |
stringBuffer.append(TEXT_48); |
1136 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
1453 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
1137 |
stringBuffer.append(TEXT_43); |
1454 |
stringBuffer.append(TEXT_49); |
1138 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1455 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1139 |
stringBuffer.append(TEXT_44); |
1456 |
stringBuffer.append(TEXT_50); |
1140 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
1457 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
1141 |
stringBuffer.append(TEXT_45); |
1458 |
stringBuffer.append(TEXT_51); |
1142 |
|
1459 |
|
1143 |
} else { |
1460 |
} else { |
1144 |
|
1461 |
|
1145 |
stringBuffer.append(TEXT_46); |
1462 |
stringBuffer.append(TEXT_52); |
1146 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1463 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1147 |
stringBuffer.append(TEXT_47); |
1464 |
stringBuffer.append(TEXT_53); |
1148 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1465 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1149 |
stringBuffer.append(TEXT_48); |
1466 |
stringBuffer.append(TEXT_54); |
1150 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
1467 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
1151 |
stringBuffer.append(TEXT_49); |
1468 |
stringBuffer.append(TEXT_55); |
1152 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1469 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1153 |
stringBuffer.append(TEXT_50); |
1470 |
stringBuffer.append(TEXT_56); |
1154 |
|
1471 |
|
1155 |
} |
1472 |
} |
1156 |
|
1473 |
|
1157 |
stringBuffer.append(TEXT_51); |
1474 |
stringBuffer.append(TEXT_57); |
1158 |
|
1475 |
|
1159 |
} else { |
1476 |
} else { |
1160 |
if (containmentFeature.getEcoreFeature().isMany()) { |
1477 |
if (containmentFeature.getEcoreFeature().isMany()) { |
1161 |
|
1478 |
|
1162 |
stringBuffer.append(TEXT_52); |
1479 |
stringBuffer.append(TEXT_58); |
1163 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
1480 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
1164 |
stringBuffer.append(TEXT_53); |
1481 |
stringBuffer.append(TEXT_59); |
1165 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1482 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1166 |
stringBuffer.append(TEXT_54); |
1483 |
stringBuffer.append(TEXT_60); |
1167 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
1484 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
1168 |
stringBuffer.append(TEXT_55); |
1485 |
stringBuffer.append(TEXT_61); |
1169 |
|
1486 |
|
1170 |
} else { |
1487 |
} else { |
1171 |
|
1488 |
|
1172 |
stringBuffer.append(TEXT_56); |
1489 |
stringBuffer.append(TEXT_62); |
1173 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1490 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1174 |
stringBuffer.append(TEXT_57); |
1491 |
stringBuffer.append(TEXT_63); |
1175 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1492 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1176 |
stringBuffer.append(TEXT_58); |
1493 |
stringBuffer.append(TEXT_64); |
1177 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
1494 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
1178 |
stringBuffer.append(TEXT_59); |
1495 |
stringBuffer.append(TEXT_65); |
1179 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1496 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
1180 |
stringBuffer.append(TEXT_60); |
1497 |
stringBuffer.append(TEXT_66); |
1181 |
|
1498 |
|
1182 |
} |
1499 |
} |
1183 |
} |
1500 |
} |
1184 |
|
1501 |
|
1185 |
stringBuffer.append(TEXT_61); |
1502 |
stringBuffer.append(TEXT_67); |
1186 |
|
1503 |
|
1187 |
} /*restrict local vars used in component edit policy*/ |
1504 |
} /*restrict local vars used in component edit policy*/ |
1188 |
|
1505 |
|
1189 |
stringBuffer.append(TEXT_62); |
1506 |
stringBuffer.append(TEXT_68); |
1190 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
1507 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
1191 |
stringBuffer.append(TEXT_63); |
1508 |
stringBuffer.append(TEXT_69); |
1192 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy")); |
1509 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy")); |
1193 |
stringBuffer.append(TEXT_64); |
1510 |
stringBuffer.append(TEXT_70); |
1194 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1511 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1195 |
stringBuffer.append(TEXT_65); |
1512 |
stringBuffer.append(TEXT_71); |
1196 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateRequest")); |
1513 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateRequest")); |
1197 |
stringBuffer.append(TEXT_66); |
1514 |
stringBuffer.append(TEXT_72); |
1198 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1515 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1199 |
stringBuffer.append(TEXT_67); |
1516 |
stringBuffer.append(TEXT_73); |
1200 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
1517 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
1201 |
stringBuffer.append(TEXT_68); |
1518 |
stringBuffer.append(TEXT_74); |
1202 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point")); |
1519 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point")); |
1203 |
stringBuffer.append(TEXT_69); |
1520 |
stringBuffer.append(TEXT_75); |
1204 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1521 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1205 |
stringBuffer.append(TEXT_70); |
1522 |
stringBuffer.append(TEXT_76); |
1206 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1523 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1207 |
stringBuffer.append(TEXT_71); |
1524 |
stringBuffer.append(TEXT_77); |
1208 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1525 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1209 |
stringBuffer.append(TEXT_72); |
1526 |
stringBuffer.append(TEXT_78); |
1210 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
1527 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
1211 |
stringBuffer.append(TEXT_73); |
1528 |
stringBuffer.append(TEXT_79); |
1212 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1529 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1213 |
stringBuffer.append(TEXT_74); |
1530 |
stringBuffer.append(TEXT_80); |
1214 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy")); |
1531 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy")); |
1215 |
stringBuffer.append(TEXT_75); |
1532 |
stringBuffer.append(TEXT_81); |
1216 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1533 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1217 |
stringBuffer.append(TEXT_76); |
1534 |
stringBuffer.append(TEXT_82); |
1218 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
1535 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
1219 |
stringBuffer.append(TEXT_77); |
1536 |
stringBuffer.append(TEXT_83); |
1220 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); |
1537 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); |
1221 |
stringBuffer.append(TEXT_78); |
1538 |
stringBuffer.append(TEXT_84); |
1222 |
stringBuffer.append(genNode.getEditPartClassName()); |
1539 |
stringBuffer.append(genNode.getEditPartClassName()); |
1223 |
stringBuffer.append(TEXT_79); |
1540 |
stringBuffer.append(TEXT_85); |
1224 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
1541 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
1225 |
stringBuffer.append(TEXT_80); |
1542 |
stringBuffer.append(TEXT_86); |
1226 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy")); |
1543 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy")); |
1227 |
stringBuffer.append(TEXT_81); |
1544 |
stringBuffer.append(TEXT_87); |
1228 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1545 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1229 |
stringBuffer.append(TEXT_82); |
1546 |
stringBuffer.append(TEXT_88); |
1230 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); |
1547 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); |
1231 |
stringBuffer.append(TEXT_83); |
1548 |
stringBuffer.append(TEXT_89); |
1232 |
|
1549 |
|
1233 |
if (!myHelper.hasIncomingLinks()) { |
1550 |
if (!myHelper.hasIncomingLinks()) { |
1234 |
|
1551 |
|
1235 |
stringBuffer.append(TEXT_84); |
1552 |
stringBuffer.append(TEXT_90); |
1236 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1553 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1237 |
stringBuffer.append(TEXT_85); |
1554 |
stringBuffer.append(TEXT_91); |
1238 |
|
1555 |
|
1239 |
} else { |
1556 |
} else { |
1240 |
|
1557 |
|
1241 |
stringBuffer.append(TEXT_86); |
1558 |
stringBuffer.append(TEXT_92); |
1242 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
1559 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
1243 |
stringBuffer.append(TEXT_87); |
1560 |
stringBuffer.append(TEXT_93); |
1244 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1561 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1245 |
stringBuffer.append(TEXT_88); |
1562 |
stringBuffer.append(TEXT_94); |
1246 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1563 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1247 |
stringBuffer.append(TEXT_89); |
1564 |
stringBuffer.append(TEXT_95); |
1248 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1565 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1249 |
stringBuffer.append(TEXT_90); |
1566 |
stringBuffer.append(TEXT_96); |
1250 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1567 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1251 |
stringBuffer.append(TEXT_91); |
1568 |
stringBuffer.append(TEXT_97); |
1252 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
1569 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
1253 |
stringBuffer.append(TEXT_92); |
1570 |
stringBuffer.append(TEXT_98); |
1254 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); |
1571 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); |
1255 |
stringBuffer.append(TEXT_93); |
1572 |
stringBuffer.append(TEXT_99); |
1256 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1573 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1257 |
stringBuffer.append(TEXT_94); |
1574 |
stringBuffer.append(TEXT_100); |
1258 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
1575 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
1259 |
stringBuffer.append(TEXT_95); |
1576 |
stringBuffer.append(TEXT_101); |
1260 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
1577 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
1261 |
stringBuffer.append(TEXT_96); |
1578 |
stringBuffer.append(TEXT_102); |
1262 |
|
1579 |
|
1263 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
1580 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
1264 |
GenLink genLink = (GenLink)it.next(); |
1581 |
GenLink genLink = (GenLink)it.next(); |
Lines 1282-1339
Link Here
|
1282 |
continue; |
1599 |
continue; |
1283 |
} |
1600 |
} |
1284 |
|
1601 |
|
1285 |
stringBuffer.append(TEXT_97); |
1602 |
stringBuffer.append(TEXT_103); |
1286 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
1603 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
1287 |
stringBuffer.append(TEXT_98); |
1604 |
stringBuffer.append(TEXT_104); |
1288 |
stringBuffer.append(reconnectCommandNameInfix); |
1605 |
stringBuffer.append(reconnectCommandNameInfix); |
1289 |
stringBuffer.append(genLink.getVisualID()); |
1606 |
stringBuffer.append(genLink.getVisualID()); |
1290 |
stringBuffer.append(TEXT_99); |
1607 |
stringBuffer.append(TEXT_105); |
1291 |
|
1608 |
|
1292 |
} |
1609 |
} |
1293 |
|
1610 |
|
1294 |
stringBuffer.append(TEXT_100); |
1611 |
stringBuffer.append(TEXT_106); |
1295 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1612 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1296 |
stringBuffer.append(TEXT_101); |
1613 |
stringBuffer.append(TEXT_107); |
1297 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
1614 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
1298 |
stringBuffer.append(TEXT_102); |
1615 |
stringBuffer.append(TEXT_108); |
1299 |
|
1616 |
|
1300 |
} |
1617 |
} |
1301 |
|
1618 |
|
1302 |
stringBuffer.append(TEXT_103); |
1619 |
stringBuffer.append(TEXT_109); |
1303 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1620 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1304 |
stringBuffer.append(TEXT_104); |
1621 |
stringBuffer.append(TEXT_110); |
1305 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); |
1622 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); |
1306 |
stringBuffer.append(TEXT_105); |
1623 |
stringBuffer.append(TEXT_111); |
1307 |
|
1624 |
|
1308 |
if (!myHelper.hasOutgoingLinks()) { |
1625 |
if (!myHelper.hasOutgoingLinks()) { |
1309 |
|
1626 |
|
1310 |
stringBuffer.append(TEXT_106); |
1627 |
stringBuffer.append(TEXT_112); |
1311 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1628 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1312 |
stringBuffer.append(TEXT_107); |
1629 |
stringBuffer.append(TEXT_113); |
1313 |
|
1630 |
|
1314 |
} else { |
1631 |
} else { |
1315 |
|
1632 |
|
1316 |
stringBuffer.append(TEXT_108); |
1633 |
stringBuffer.append(TEXT_114); |
1317 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
1634 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
1318 |
stringBuffer.append(TEXT_109); |
1635 |
stringBuffer.append(TEXT_115); |
1319 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1636 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1320 |
stringBuffer.append(TEXT_110); |
1637 |
stringBuffer.append(TEXT_116); |
1321 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1638 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1322 |
stringBuffer.append(TEXT_111); |
1639 |
stringBuffer.append(TEXT_117); |
1323 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1640 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1324 |
stringBuffer.append(TEXT_112); |
1641 |
stringBuffer.append(TEXT_118); |
1325 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1642 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1326 |
stringBuffer.append(TEXT_113); |
1643 |
stringBuffer.append(TEXT_119); |
1327 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
1644 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
1328 |
stringBuffer.append(TEXT_114); |
1645 |
stringBuffer.append(TEXT_120); |
1329 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); |
1646 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); |
1330 |
stringBuffer.append(TEXT_115); |
1647 |
stringBuffer.append(TEXT_121); |
1331 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1648 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1332 |
stringBuffer.append(TEXT_116); |
1649 |
stringBuffer.append(TEXT_122); |
1333 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
1650 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
1334 |
stringBuffer.append(TEXT_117); |
1651 |
stringBuffer.append(TEXT_123); |
1335 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
1652 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
1336 |
stringBuffer.append(TEXT_118); |
1653 |
stringBuffer.append(TEXT_124); |
1337 |
|
1654 |
|
1338 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
1655 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
1339 |
GenLink genLink = (GenLink)it.next(); |
1656 |
GenLink genLink = (GenLink)it.next(); |
Lines 1359-1398
Link Here
|
1359 |
continue; |
1676 |
continue; |
1360 |
} |
1677 |
} |
1361 |
|
1678 |
|
1362 |
stringBuffer.append(TEXT_119); |
1679 |
stringBuffer.append(TEXT_125); |
1363 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
1680 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
1364 |
stringBuffer.append(TEXT_120); |
1681 |
stringBuffer.append(TEXT_126); |
1365 |
stringBuffer.append(reconnectCommandNameInfix); |
1682 |
stringBuffer.append(reconnectCommandNameInfix); |
1366 |
stringBuffer.append(genLink.getVisualID()); |
1683 |
stringBuffer.append(genLink.getVisualID()); |
1367 |
stringBuffer.append(TEXT_121); |
1684 |
stringBuffer.append(TEXT_127); |
1368 |
|
1685 |
|
1369 |
} |
1686 |
} |
1370 |
|
1687 |
|
1371 |
stringBuffer.append(TEXT_122); |
1688 |
stringBuffer.append(TEXT_128); |
1372 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1689 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1373 |
stringBuffer.append(TEXT_123); |
1690 |
stringBuffer.append(TEXT_129); |
1374 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
1691 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
1375 |
stringBuffer.append(TEXT_124); |
1692 |
stringBuffer.append(TEXT_130); |
1376 |
|
1693 |
|
1377 |
} |
1694 |
} |
1378 |
|
1695 |
|
1379 |
stringBuffer.append(TEXT_125); |
1696 |
stringBuffer.append(TEXT_131); |
1380 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1697 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1381 |
stringBuffer.append(TEXT_126); |
1698 |
stringBuffer.append(TEXT_132); |
1382 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); |
1699 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); |
1383 |
stringBuffer.append(TEXT_127); |
1700 |
stringBuffer.append(TEXT_133); |
1384 |
if (palette != null && myHelper.hasOutgoingLinks()) { |
1701 |
if (palette != null && myHelper.hasOutgoingLinks()) { |
1385 |
stringBuffer.append(TEXT_128); |
1702 |
stringBuffer.append(TEXT_134); |
1386 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1703 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1387 |
stringBuffer.append(TEXT_129); |
1704 |
stringBuffer.append(TEXT_135); |
1388 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1705 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1389 |
stringBuffer.append(TEXT_130); |
1706 |
stringBuffer.append(TEXT_136); |
1390 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1707 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1391 |
stringBuffer.append(TEXT_131); |
1708 |
stringBuffer.append(TEXT_137); |
1392 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1709 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1393 |
stringBuffer.append(TEXT_132); |
1710 |
stringBuffer.append(TEXT_138); |
1394 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1711 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1395 |
stringBuffer.append(TEXT_133); |
1712 |
stringBuffer.append(TEXT_139); |
1396 |
|
1713 |
|
1397 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
1714 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
1398 |
GenLink genLink = (GenLink)it.next(); |
1715 |
GenLink genLink = (GenLink)it.next(); |
Lines 1418-1457
Link Here
|
1418 |
continue; |
1735 |
continue; |
1419 |
} |
1736 |
} |
1420 |
|
1737 |
|
1421 |
stringBuffer.append(TEXT_134); |
1738 |
stringBuffer.append(TEXT_140); |
1422 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
1739 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
1423 |
stringBuffer.append(TEXT_135); |
1740 |
stringBuffer.append(TEXT_141); |
1424 |
stringBuffer.append(createCommandNameInfix); |
1741 |
stringBuffer.append(createCommandNameInfix); |
1425 |
stringBuffer.append(genLink.getVisualID()); |
1742 |
stringBuffer.append(genLink.getVisualID()); |
1426 |
stringBuffer.append(TEXT_136); |
1743 |
stringBuffer.append(TEXT_142); |
1427 |
|
1744 |
|
1428 |
} |
1745 |
} |
1429 |
|
1746 |
|
1430 |
stringBuffer.append(TEXT_137); |
1747 |
stringBuffer.append(TEXT_143); |
1431 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1748 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1432 |
stringBuffer.append(TEXT_138); |
1749 |
stringBuffer.append(TEXT_144); |
1433 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
1750 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
1434 |
stringBuffer.append(TEXT_139); |
1751 |
stringBuffer.append(TEXT_145); |
1435 |
}/*when there's palette*/ |
1752 |
}/*when there's palette*/ |
1436 |
stringBuffer.append(TEXT_140); |
1753 |
stringBuffer.append(TEXT_146); |
1437 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1754 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1438 |
stringBuffer.append(TEXT_141); |
1755 |
stringBuffer.append(TEXT_147); |
1439 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); |
1756 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); |
1440 |
stringBuffer.append(TEXT_142); |
1757 |
stringBuffer.append(TEXT_148); |
1441 |
if (palette != null && myHelper.hasIncomingLinks()) { |
1758 |
if (palette != null && myHelper.hasIncomingLinks()) { |
1442 |
stringBuffer.append(TEXT_143); |
1759 |
stringBuffer.append(TEXT_149); |
1443 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1760 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1444 |
stringBuffer.append(TEXT_144); |
1761 |
stringBuffer.append(TEXT_150); |
1445 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1762 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1446 |
stringBuffer.append(TEXT_145); |
1763 |
stringBuffer.append(TEXT_151); |
1447 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1764 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1448 |
stringBuffer.append(TEXT_146); |
1765 |
stringBuffer.append(TEXT_152); |
1449 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1766 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1450 |
stringBuffer.append(TEXT_147); |
1767 |
stringBuffer.append(TEXT_153); |
1451 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1768 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1452 |
stringBuffer.append(TEXT_148); |
1769 |
stringBuffer.append(TEXT_154); |
1453 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1770 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
1454 |
stringBuffer.append(TEXT_149); |
1771 |
stringBuffer.append(TEXT_155); |
1455 |
|
1772 |
|
1456 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
1773 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
1457 |
GenLink genLink = (GenLink)it.next(); |
1774 |
GenLink genLink = (GenLink)it.next(); |
Lines 1475-1512
Link Here
|
1475 |
continue; |
1792 |
continue; |
1476 |
} |
1793 |
} |
1477 |
|
1794 |
|
1478 |
stringBuffer.append(TEXT_150); |
1795 |
stringBuffer.append(TEXT_156); |
1479 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
1796 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
1480 |
stringBuffer.append(TEXT_151); |
1797 |
stringBuffer.append(TEXT_157); |
1481 |
stringBuffer.append(createCommandNameInfix); |
1798 |
stringBuffer.append(createCommandNameInfix); |
1482 |
stringBuffer.append(genLink.getVisualID()); |
1799 |
stringBuffer.append(genLink.getVisualID()); |
1483 |
stringBuffer.append(TEXT_152); |
1800 |
stringBuffer.append(TEXT_158); |
1484 |
|
1801 |
|
1485 |
} |
1802 |
} |
1486 |
|
1803 |
|
1487 |
stringBuffer.append(TEXT_153); |
1804 |
stringBuffer.append(TEXT_159); |
1488 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1805 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1489 |
stringBuffer.append(TEXT_154); |
1806 |
stringBuffer.append(TEXT_160); |
1490 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
1807 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
1491 |
stringBuffer.append(TEXT_155); |
1808 |
stringBuffer.append(TEXT_161); |
1492 |
}/*when there's palette*/ |
1809 |
}/*when there's palette*/ |
1493 |
stringBuffer.append(TEXT_156); |
1810 |
stringBuffer.append(TEXT_162); |
1494 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1811 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
1495 |
stringBuffer.append(TEXT_157); |
1812 |
stringBuffer.append(TEXT_163); |
|
|
1813 |
|
1814 |
if (myHelper.containsLinks()) { |
1815 |
|
1816 |
stringBuffer.append(TEXT_164); |
1817 |
|
1818 |
} |
1819 |
|
1820 |
stringBuffer.append(TEXT_165); |
1496 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1821 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1497 |
stringBuffer.append(TEXT_158); |
1822 |
stringBuffer.append(TEXT_166); |
1498 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1823 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1499 |
stringBuffer.append(TEXT_159); |
1824 |
stringBuffer.append(TEXT_167); |
1500 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
1825 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
1501 |
stringBuffer.append(TEXT_160); |
1826 |
stringBuffer.append(TEXT_168); |
1502 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.StackLayout")); |
1827 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.StackLayout")); |
1503 |
stringBuffer.append(TEXT_161); |
1828 |
stringBuffer.append(TEXT_169); |
1504 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1829 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1505 |
stringBuffer.append(TEXT_162); |
1830 |
stringBuffer.append(TEXT_170); |
1506 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1831 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1507 |
stringBuffer.append(TEXT_163); |
1832 |
stringBuffer.append(TEXT_171); |
1508 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1833 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1509 |
stringBuffer.append(TEXT_164); |
1834 |
stringBuffer.append(TEXT_172); |
1510 |
|
1835 |
|
1511 |
String figureQualifiedClassName = null; |
1836 |
String figureQualifiedClassName = null; |
1512 |
Viewmap viewmap = genNode.getViewmap(); |
1837 |
Viewmap viewmap = genNode.getViewmap(); |
Lines 1516-1613
Link Here
|
1516 |
figureQualifiedClassName = "org.eclipse.draw2d.RectangleFigure"; |
1841 |
figureQualifiedClassName = "org.eclipse.draw2d.RectangleFigure"; |
1517 |
} |
1842 |
} |
1518 |
|
1843 |
|
1519 |
stringBuffer.append(TEXT_165); |
1844 |
stringBuffer.append(TEXT_173); |
1520 |
stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); |
1845 |
stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); |
1521 |
stringBuffer.append(TEXT_166); |
1846 |
stringBuffer.append(TEXT_174); |
1522 |
if (isXYLayout) { |
1847 |
if (isXYLayout) { |
1523 |
stringBuffer.append(TEXT_167); |
1848 |
stringBuffer.append(TEXT_175); |
1524 |
} /* use flow layout*/ |
1849 |
} /* use flow layout*/ |
1525 |
stringBuffer.append(TEXT_168); |
1850 |
stringBuffer.append(TEXT_176); |
1526 |
} else if (viewmap instanceof SnippetViewmap) { |
1851 |
} else if (viewmap instanceof SnippetViewmap) { |
1527 |
stringBuffer.append(TEXT_169); |
1852 |
stringBuffer.append(TEXT_177); |
1528 |
stringBuffer.append(((SnippetViewmap) viewmap).getBody()); |
1853 |
stringBuffer.append(((SnippetViewmap) viewmap).getBody()); |
1529 |
stringBuffer.append(TEXT_170); |
1854 |
stringBuffer.append(TEXT_178); |
1530 |
} else if (viewmap instanceof InnerClassViewmap) { |
1855 |
} else if (viewmap instanceof InnerClassViewmap) { |
1531 |
figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName(); |
1856 |
figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName(); |
1532 |
|
1857 |
|
1533 |
stringBuffer.append(TEXT_171); |
1858 |
stringBuffer.append(TEXT_179); |
1534 |
stringBuffer.append(figureQualifiedClassName); |
1859 |
stringBuffer.append(figureQualifiedClassName); |
1535 |
stringBuffer.append(TEXT_172); |
1860 |
stringBuffer.append(TEXT_180); |
1536 |
stringBuffer.append(figureQualifiedClassName); |
1861 |
stringBuffer.append(figureQualifiedClassName); |
1537 |
stringBuffer.append(TEXT_173); |
1862 |
stringBuffer.append(TEXT_181); |
1538 |
if (!genNode.getChildNodes().isEmpty() && isXYLayout) { /*otherwise, leave to figure's default value*/ |
1863 |
if (!genNode.getChildNodes().isEmpty() && isXYLayout) { /*otherwise, leave to figure's default value*/ |
1539 |
stringBuffer.append(TEXT_174); |
1864 |
stringBuffer.append(TEXT_182); |
1540 |
} |
1865 |
} |
1541 |
stringBuffer.append(TEXT_175); |
1866 |
stringBuffer.append(TEXT_183); |
1542 |
} |
1867 |
} |
1543 |
stringBuffer.append(TEXT_176); |
1868 |
stringBuffer.append(TEXT_184); |
1544 |
if (figureQualifiedClassName != null) { |
1869 |
if (figureQualifiedClassName != null) { |
1545 |
stringBuffer.append(TEXT_177); |
1870 |
stringBuffer.append(TEXT_185); |
1546 |
stringBuffer.append(figureQualifiedClassName); |
1871 |
stringBuffer.append(figureQualifiedClassName); |
1547 |
stringBuffer.append(TEXT_178); |
1872 |
stringBuffer.append(TEXT_186); |
1548 |
stringBuffer.append(figureQualifiedClassName); |
1873 |
stringBuffer.append(figureQualifiedClassName); |
1549 |
stringBuffer.append(TEXT_179); |
1874 |
stringBuffer.append(TEXT_187); |
1550 |
} |
1875 |
} |
1551 |
stringBuffer.append(TEXT_180); |
1876 |
stringBuffer.append(TEXT_188); |
1552 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1877 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1553 |
stringBuffer.append(TEXT_181); |
1878 |
stringBuffer.append(TEXT_189); |
1554 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1879 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1555 |
stringBuffer.append(TEXT_182); |
1880 |
stringBuffer.append(TEXT_190); |
1556 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1881 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1557 |
stringBuffer.append(TEXT_183); |
1882 |
stringBuffer.append(TEXT_191); |
1558 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); |
1883 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); |
1559 |
stringBuffer.append(TEXT_184); |
1884 |
stringBuffer.append(TEXT_192); |
1560 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
1885 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
1561 |
stringBuffer.append(TEXT_185); |
1886 |
stringBuffer.append(TEXT_193); |
1562 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
1887 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
1563 |
stringBuffer.append(TEXT_186); |
1888 |
stringBuffer.append(TEXT_194); |
1564 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); |
1889 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); |
1565 |
stringBuffer.append(TEXT_187); |
1890 |
stringBuffer.append(TEXT_195); |
1566 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); |
1891 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); |
1567 |
stringBuffer.append(TEXT_188); |
1892 |
stringBuffer.append(TEXT_196); |
1568 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); |
1893 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); |
1569 |
stringBuffer.append(TEXT_189); |
1894 |
stringBuffer.append(TEXT_197); |
1570 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); |
1895 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); |
1571 |
stringBuffer.append(TEXT_190); |
1896 |
stringBuffer.append(TEXT_198); |
1572 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); |
1897 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); |
1573 |
stringBuffer.append(TEXT_191); |
1898 |
stringBuffer.append(TEXT_199); |
1574 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); |
1899 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); |
1575 |
stringBuffer.append(TEXT_192); |
1900 |
stringBuffer.append(TEXT_200); |
1576 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1901 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1577 |
stringBuffer.append(TEXT_193); |
1902 |
stringBuffer.append(TEXT_201); |
1578 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1903 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1579 |
stringBuffer.append(TEXT_194); |
1904 |
stringBuffer.append(TEXT_202); |
1580 |
|
1905 |
|
1581 |
if (!isXYLayout) { |
1906 |
if (!isXYLayout) { |
1582 |
String layoutClassName = importManager.getImportedName("org.eclipse.draw2d.ToolbarLayout"); |
1907 |
String layoutClassName = importManager.getImportedName("org.eclipse.draw2d.ToolbarLayout"); |
1583 |
|
1908 |
|
1584 |
stringBuffer.append(TEXT_195); |
1909 |
stringBuffer.append(TEXT_203); |
1585 |
stringBuffer.append(layoutClassName); |
1910 |
stringBuffer.append(layoutClassName); |
1586 |
stringBuffer.append(TEXT_196); |
1911 |
stringBuffer.append(TEXT_204); |
1587 |
stringBuffer.append(layoutClassName); |
1912 |
stringBuffer.append(layoutClassName); |
1588 |
stringBuffer.append(TEXT_197); |
1913 |
stringBuffer.append(TEXT_205); |
1589 |
} else { |
1914 |
} else { |
1590 |
stringBuffer.append(TEXT_198); |
1915 |
stringBuffer.append(TEXT_206); |
1591 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout")); |
1916 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout")); |
1592 |
stringBuffer.append(TEXT_199); |
1917 |
stringBuffer.append(TEXT_207); |
1593 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1918 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1594 |
stringBuffer.append(TEXT_200); |
1919 |
stringBuffer.append(TEXT_208); |
1595 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
1920 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
1596 |
stringBuffer.append(TEXT_201); |
1921 |
stringBuffer.append(TEXT_209); |
1597 |
} |
1922 |
} |
1598 |
stringBuffer.append(TEXT_202); |
1923 |
stringBuffer.append(TEXT_210); |
1599 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1924 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1600 |
stringBuffer.append(TEXT_203); |
1925 |
stringBuffer.append(TEXT_211); |
1601 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
1926 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
1602 |
stringBuffer.append(TEXT_204); |
1927 |
stringBuffer.append(TEXT_212); |
1603 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
1928 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
1604 |
stringBuffer.append(TEXT_205); |
1929 |
stringBuffer.append(TEXT_213); |
1605 |
|
1930 |
|
1606 |
if (myHelper.hasFixedChildren()) { |
1931 |
if (myHelper.hasFixedChildren()) { |
1607 |
|
1932 |
|
1608 |
stringBuffer.append(TEXT_206); |
1933 |
stringBuffer.append(TEXT_214); |
1609 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1934 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1610 |
stringBuffer.append(TEXT_207); |
1935 |
stringBuffer.append(TEXT_215); |
1611 |
|
1936 |
|
1612 |
for (Iterator it = myHelper.getInnerFixedLabels(); it.hasNext(); ) { |
1937 |
for (Iterator it = myHelper.getInnerFixedLabels(); it.hasNext(); ) { |
1613 |
GenNodeLabel genLabel = (GenNodeLabel) it.next(); |
1938 |
GenNodeLabel genLabel = (GenNodeLabel) it.next(); |
Lines 1615-1629
Link Here
|
1615 |
final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) genLabel.getViewmap(); |
1940 |
final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) genLabel.getViewmap(); |
1616 |
final String childSetterName = childViewmap.getSetterName() == null ? "setLabel" : childViewmap.getSetterName(); |
1941 |
final String childSetterName = childViewmap.getSetterName() == null ? "setLabel" : childViewmap.getSetterName(); |
1617 |
|
1942 |
|
1618 |
stringBuffer.append(TEXT_208); |
1943 |
stringBuffer.append(TEXT_216); |
1619 |
stringBuffer.append(labelEditPart); |
1944 |
stringBuffer.append(labelEditPart); |
1620 |
stringBuffer.append(TEXT_209); |
1945 |
stringBuffer.append(TEXT_217); |
1621 |
stringBuffer.append(labelEditPart); |
1946 |
stringBuffer.append(labelEditPart); |
1622 |
stringBuffer.append(TEXT_210); |
1947 |
stringBuffer.append(TEXT_218); |
1623 |
stringBuffer.append(childSetterName); |
1948 |
stringBuffer.append(childSetterName); |
1624 |
stringBuffer.append(TEXT_211); |
1949 |
stringBuffer.append(TEXT_219); |
1625 |
stringBuffer.append(childViewmap.getGetterName()); |
1950 |
stringBuffer.append(childViewmap.getGetterName()); |
1626 |
stringBuffer.append(TEXT_212); |
1951 |
stringBuffer.append(TEXT_220); |
1627 |
|
1952 |
|
1628 |
} |
1953 |
} |
1629 |
|
1954 |
|
Lines 1632-1650
Link Here
|
1632 |
final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); |
1957 |
final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); |
1633 |
String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); |
1958 |
String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); |
1634 |
|
1959 |
|
1635 |
stringBuffer.append(TEXT_213); |
1960 |
stringBuffer.append(TEXT_221); |
1636 |
stringBuffer.append(compartmentEditPartFQN); |
1961 |
stringBuffer.append(compartmentEditPartFQN); |
1637 |
stringBuffer.append(TEXT_214); |
1962 |
stringBuffer.append(TEXT_222); |
1638 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1963 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1639 |
stringBuffer.append(TEXT_215); |
1964 |
stringBuffer.append(TEXT_223); |
1640 |
stringBuffer.append(childViewmap.getGetterName()); |
1965 |
stringBuffer.append(childViewmap.getGetterName()); |
1641 |
stringBuffer.append(TEXT_216); |
1966 |
stringBuffer.append(TEXT_224); |
1642 |
stringBuffer.append(compartmentEditPartFQN); |
1967 |
stringBuffer.append(compartmentEditPartFQN); |
1643 |
stringBuffer.append(TEXT_217); |
1968 |
stringBuffer.append(TEXT_225); |
1644 |
|
1969 |
|
1645 |
} // for pinned compartments |
1970 |
} // for pinned compartments |
1646 |
|
1971 |
|
1647 |
stringBuffer.append(TEXT_218); |
1972 |
stringBuffer.append(TEXT_226); |
1648 |
|
1973 |
|
1649 |
//XXX: ignore labels assuming that they never may be removed |
1974 |
//XXX: ignore labels assuming that they never may be removed |
1650 |
for (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) { |
1975 |
for (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) { |
Lines 1652-1676
Link Here
|
1652 |
final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); |
1977 |
final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); |
1653 |
String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); |
1978 |
String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); |
1654 |
|
1979 |
|
1655 |
stringBuffer.append(TEXT_219); |
1980 |
stringBuffer.append(TEXT_227); |
1656 |
stringBuffer.append(compartmentEditPartFQN); |
1981 |
stringBuffer.append(compartmentEditPartFQN); |
1657 |
stringBuffer.append(TEXT_220); |
1982 |
stringBuffer.append(TEXT_228); |
1658 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1983 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1659 |
stringBuffer.append(TEXT_221); |
1984 |
stringBuffer.append(TEXT_229); |
1660 |
stringBuffer.append(childViewmap.getGetterName()); |
1985 |
stringBuffer.append(childViewmap.getGetterName()); |
1661 |
stringBuffer.append(TEXT_222); |
1986 |
stringBuffer.append(TEXT_230); |
1662 |
stringBuffer.append(compartmentEditPartFQN); |
1987 |
stringBuffer.append(compartmentEditPartFQN); |
1663 |
stringBuffer.append(TEXT_223); |
1988 |
stringBuffer.append(TEXT_231); |
1664 |
|
1989 |
|
1665 |
} // for pinned compartments |
1990 |
} // for pinned compartments |
1666 |
|
1991 |
|
1667 |
stringBuffer.append(TEXT_224); |
1992 |
stringBuffer.append(TEXT_232); |
1668 |
|
1993 |
|
1669 |
} // if myHelper.hasFixedChildren() |
1994 |
} // if myHelper.hasFixedChildren() |
1670 |
|
1995 |
|
1671 |
stringBuffer.append(TEXT_225); |
1996 |
stringBuffer.append(TEXT_233); |
1672 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1997 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1673 |
stringBuffer.append(TEXT_226); |
1998 |
stringBuffer.append(TEXT_234); |
1674 |
|
1999 |
|
1675 |
GenNodeLabel firstEditableLabel = null; |
2000 |
GenNodeLabel firstEditableLabel = null; |
1676 |
for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { |
2001 |
for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { |
Lines 1682-1726
Link Here
|
1682 |
} |
2007 |
} |
1683 |
if (firstEditableLabel != null) { |
2008 |
if (firstEditableLabel != null) { |
1684 |
|
2009 |
|
1685 |
stringBuffer.append(TEXT_227); |
2010 |
stringBuffer.append(TEXT_235); |
1686 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2011 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
1687 |
stringBuffer.append(TEXT_228); |
2012 |
stringBuffer.append(TEXT_236); |
1688 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2013 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1689 |
stringBuffer.append(TEXT_229); |
2014 |
stringBuffer.append(TEXT_237); |
1690 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2015 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1691 |
stringBuffer.append(TEXT_230); |
2016 |
stringBuffer.append(TEXT_238); |
1692 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
2017 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
1693 |
stringBuffer.append(TEXT_231); |
2018 |
stringBuffer.append(TEXT_239); |
1694 |
stringBuffer.append(importManager.getImportedName(firstEditableLabel.getEditPartQualifiedClassName())); |
2019 |
stringBuffer.append(importManager.getImportedName(firstEditableLabel.getEditPartQualifiedClassName())); |
1695 |
stringBuffer.append(TEXT_232); |
2020 |
stringBuffer.append(TEXT_240); |
1696 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
2021 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1697 |
stringBuffer.append(TEXT_233); |
2022 |
stringBuffer.append(TEXT_241); |
1698 |
|
2023 |
|
1699 |
} |
2024 |
} |
1700 |
|
2025 |
|
1701 |
stringBuffer.append(TEXT_234); |
2026 |
stringBuffer.append(TEXT_242); |
1702 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
2027 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
1703 |
stringBuffer.append(TEXT_235); |
2028 |
stringBuffer.append(TEXT_243); |
1704 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); |
2029 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); |
1705 |
stringBuffer.append(TEXT_236); |
2030 |
stringBuffer.append(TEXT_244); |
1706 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
2031 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1707 |
stringBuffer.append(TEXT_237); |
2032 |
stringBuffer.append(TEXT_245); |
1708 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); |
2033 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); |
1709 |
stringBuffer.append(TEXT_238); |
2034 |
stringBuffer.append(TEXT_246); |
1710 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); |
2035 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); |
1711 |
stringBuffer.append(TEXT_239); |
2036 |
stringBuffer.append(TEXT_247); |
1712 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
2037 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1713 |
stringBuffer.append(TEXT_240); |
2038 |
stringBuffer.append(TEXT_248); |
1714 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); |
2039 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); |
1715 |
stringBuffer.append(TEXT_241); |
2040 |
stringBuffer.append(TEXT_249); |
1716 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
2041 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1717 |
stringBuffer.append(TEXT_242); |
2042 |
stringBuffer.append(TEXT_250); |
1718 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2043 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1719 |
stringBuffer.append(TEXT_243); |
2044 |
stringBuffer.append(TEXT_251); |
1720 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2045 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1721 |
stringBuffer.append(TEXT_244); |
2046 |
stringBuffer.append(TEXT_252); |
1722 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
2047 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
1723 |
stringBuffer.append(TEXT_245); |
2048 |
stringBuffer.append(TEXT_253); |
1724 |
|
2049 |
|
1725 |
for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { |
2050 |
for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { |
1726 |
GenNodeLabel genLabel = (GenNodeLabel) it.next(); |
2051 |
GenNodeLabel genLabel = (GenNodeLabel) it.next(); |
Lines 1728-2029
Link Here
|
1728 |
continue; |
2053 |
continue; |
1729 |
} |
2054 |
} |
1730 |
|
2055 |
|
1731 |
stringBuffer.append(TEXT_246); |
2056 |
stringBuffer.append(TEXT_254); |
1732 |
stringBuffer.append(importManager.getImportedName(genLabel.getEditPartQualifiedClassName())); |
2057 |
stringBuffer.append(importManager.getImportedName(genLabel.getEditPartQualifiedClassName())); |
1733 |
stringBuffer.append(TEXT_247); |
2058 |
stringBuffer.append(TEXT_255); |
1734 |
|
2059 |
|
1735 |
} |
2060 |
} |
1736 |
|
2061 |
|
1737 |
stringBuffer.append(TEXT_248); |
2062 |
stringBuffer.append(TEXT_256); |
1738 |
|
2063 |
|
1739 |
if (myHelper.hasExternalLabels()) { |
2064 |
if (myHelper.hasExternalLabels()) { |
1740 |
|
2065 |
|
1741 |
stringBuffer.append(TEXT_249); |
2066 |
stringBuffer.append(TEXT_257); |
1742 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
2067 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1743 |
stringBuffer.append(TEXT_250); |
2068 |
stringBuffer.append(TEXT_258); |
1744 |
|
2069 |
|
1745 |
for (Iterator externalLabels = myHelper.getExternalLabels(); externalLabels.hasNext();) { |
2070 |
for (Iterator externalLabels = myHelper.getExternalLabels(); externalLabels.hasNext();) { |
1746 |
GenNodeLabel next = (GenNodeLabel) externalLabels.next(); |
2071 |
GenNodeLabel next = (GenNodeLabel) externalLabels.next(); |
1747 |
|
2072 |
|
1748 |
stringBuffer.append(TEXT_251); |
2073 |
stringBuffer.append(TEXT_259); |
1749 |
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); |
2074 |
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); |
1750 |
stringBuffer.append(TEXT_252); |
2075 |
stringBuffer.append(TEXT_260); |
1751 |
|
2076 |
|
1752 |
} |
2077 |
} |
1753 |
|
2078 |
|
1754 |
stringBuffer.append(TEXT_253); |
2079 |
stringBuffer.append(TEXT_261); |
1755 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
2080 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1756 |
stringBuffer.append(TEXT_254); |
2081 |
stringBuffer.append(TEXT_262); |
1757 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); |
2082 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); |
1758 |
stringBuffer.append(TEXT_255); |
2083 |
stringBuffer.append(TEXT_263); |
1759 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); |
2084 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); |
1760 |
stringBuffer.append(TEXT_256); |
2085 |
stringBuffer.append(TEXT_264); |
1761 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); |
2086 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); |
1762 |
stringBuffer.append(TEXT_257); |
2087 |
stringBuffer.append(TEXT_265); |
1763 |
|
2088 |
|
1764 |
} |
2089 |
} |
1765 |
if (myHelper.hasExternalLabels() || myHelper.hasFixedChildren()) { |
2090 |
if (myHelper.hasExternalLabels() || myHelper.hasFixedChildren()) { |
1766 |
|
2091 |
|
1767 |
stringBuffer.append(TEXT_258); |
2092 |
stringBuffer.append(TEXT_266); |
1768 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
2093 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1769 |
stringBuffer.append(TEXT_259); |
2094 |
stringBuffer.append(TEXT_267); |
1770 |
|
2095 |
|
1771 |
if (myHelper.hasExternalLabels()) { |
2096 |
if (myHelper.hasExternalLabels()) { |
1772 |
|
2097 |
|
1773 |
stringBuffer.append(TEXT_260); |
2098 |
stringBuffer.append(TEXT_268); |
1774 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
2099 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1775 |
stringBuffer.append(TEXT_261); |
2100 |
stringBuffer.append(TEXT_269); |
1776 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
2101 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
1777 |
stringBuffer.append(TEXT_262); |
2102 |
stringBuffer.append(TEXT_270); |
1778 |
|
2103 |
|
1779 |
} |
2104 |
} |
1780 |
if (myHelper.hasFixedChildren()) { |
2105 |
if (myHelper.hasFixedChildren()) { |
1781 |
|
2106 |
|
1782 |
stringBuffer.append(TEXT_263); |
2107 |
stringBuffer.append(TEXT_271); |
1783 |
|
2108 |
|
1784 |
} |
2109 |
} |
1785 |
|
2110 |
|
1786 |
stringBuffer.append(TEXT_264); |
2111 |
stringBuffer.append(TEXT_272); |
1787 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
2112 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1788 |
stringBuffer.append(TEXT_265); |
2113 |
stringBuffer.append(TEXT_273); |
1789 |
|
2114 |
|
1790 |
if (myHelper.hasExternalLabels()) { |
2115 |
if (myHelper.hasExternalLabels()) { |
1791 |
|
2116 |
|
1792 |
stringBuffer.append(TEXT_266); |
2117 |
stringBuffer.append(TEXT_274); |
1793 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
2118 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
1794 |
stringBuffer.append(TEXT_267); |
2119 |
stringBuffer.append(TEXT_275); |
1795 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
2120 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
1796 |
stringBuffer.append(TEXT_268); |
2121 |
stringBuffer.append(TEXT_276); |
1797 |
|
2122 |
|
1798 |
} |
2123 |
} |
1799 |
if (myHelper.hasFixedChildren()){ |
2124 |
if (myHelper.hasFixedChildren()){ |
1800 |
|
2125 |
|
1801 |
stringBuffer.append(TEXT_269); |
2126 |
stringBuffer.append(TEXT_277); |
1802 |
|
2127 |
|
1803 |
} |
2128 |
} |
1804 |
|
2129 |
|
1805 |
stringBuffer.append(TEXT_270); |
2130 |
stringBuffer.append(TEXT_278); |
1806 |
|
2131 |
|
1807 |
} |
2132 |
} |
1808 |
|
2133 |
|
1809 |
|
2134 |
|
1810 |
if (myHelper.hasExternalLabels()) { |
2135 |
if (myHelper.hasExternalLabels()) { |
1811 |
|
2136 |
|
1812 |
stringBuffer.append(TEXT_271); |
2137 |
stringBuffer.append(TEXT_279); |
1813 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2138 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
1814 |
stringBuffer.append(TEXT_272); |
2139 |
stringBuffer.append(TEXT_280); |
1815 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
2140 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1816 |
stringBuffer.append(TEXT_273); |
2141 |
stringBuffer.append(TEXT_281); |
1817 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
2142 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
1818 |
stringBuffer.append(TEXT_274); |
2143 |
stringBuffer.append(TEXT_282); |
1819 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
2144 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
1820 |
stringBuffer.append(TEXT_275); |
2145 |
stringBuffer.append(TEXT_283); |
1821 |
|
2146 |
|
1822 |
} |
2147 |
} |
1823 |
|
2148 |
|
1824 |
stringBuffer.append(TEXT_276); |
|
|
1825 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
1826 |
stringBuffer.append(TEXT_277); |
1827 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
1828 |
stringBuffer.append(TEXT_278); |
1829 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
1830 |
stringBuffer.append(TEXT_279); |
1831 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
1832 |
stringBuffer.append(TEXT_280); |
1833 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
1834 |
stringBuffer.append(TEXT_281); |
1835 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
1836 |
stringBuffer.append(TEXT_282); |
1837 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
1838 |
stringBuffer.append(TEXT_283); |
1839 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
1840 |
stringBuffer.append(TEXT_284); |
2149 |
stringBuffer.append(TEXT_284); |
1841 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2150 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
1842 |
stringBuffer.append(TEXT_285); |
2151 |
stringBuffer.append(TEXT_285); |
1843 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
2152 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
1844 |
stringBuffer.append(TEXT_286); |
2153 |
stringBuffer.append(TEXT_286); |
1845 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
2154 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
1846 |
stringBuffer.append(TEXT_287); |
2155 |
stringBuffer.append(TEXT_287); |
1847 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
2156 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
1848 |
stringBuffer.append(TEXT_288); |
2157 |
stringBuffer.append(TEXT_288); |
1849 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
2158 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
1850 |
stringBuffer.append(TEXT_289); |
2159 |
stringBuffer.append(TEXT_289); |
1851 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
2160 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
1852 |
stringBuffer.append(TEXT_290); |
2161 |
stringBuffer.append(TEXT_290); |
1853 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
2162 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
1854 |
stringBuffer.append(TEXT_291); |
2163 |
stringBuffer.append(TEXT_291); |
1855 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
2164 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
1856 |
stringBuffer.append(TEXT_292); |
2165 |
stringBuffer.append(TEXT_292); |
1857 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
2166 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
1858 |
stringBuffer.append(TEXT_293); |
2167 |
stringBuffer.append(TEXT_293); |
1859 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
|
|
1860 |
stringBuffer.append(TEXT_294); |
1861 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
2168 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
|
|
2169 |
stringBuffer.append(TEXT_294); |
2170 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
1862 |
stringBuffer.append(TEXT_295); |
2171 |
stringBuffer.append(TEXT_295); |
1863 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
|
|
1864 |
stringBuffer.append(TEXT_296); |
1865 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
2172 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
|
|
2173 |
stringBuffer.append(TEXT_296); |
2174 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
1866 |
stringBuffer.append(TEXT_297); |
2175 |
stringBuffer.append(TEXT_297); |
1867 |
/*@ include file="adapters/propertySource.javajetinc"*/ |
2176 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
1868 |
stringBuffer.append(TEXT_298); |
2177 |
stringBuffer.append(TEXT_298); |
|
|
2178 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
1869 |
stringBuffer.append(TEXT_299); |
2179 |
stringBuffer.append(TEXT_299); |
|
|
2180 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
1870 |
stringBuffer.append(TEXT_300); |
2181 |
stringBuffer.append(TEXT_300); |
1871 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.impl.AdapterImpl")); |
2182 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
1872 |
stringBuffer.append(TEXT_301); |
2183 |
stringBuffer.append(TEXT_301); |
1873 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
2184 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
1874 |
stringBuffer.append(TEXT_302); |
2185 |
stringBuffer.append(TEXT_302); |
1875 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
2186 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
1876 |
stringBuffer.append(TEXT_303); |
2187 |
stringBuffer.append(TEXT_303); |
|
|
2188 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
1877 |
stringBuffer.append(TEXT_304); |
2189 |
stringBuffer.append(TEXT_304); |
|
|
2190 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
1878 |
stringBuffer.append(TEXT_305); |
2191 |
stringBuffer.append(TEXT_305); |
1879 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
2192 |
/*@ include file="adapters/propertySource.javajetinc"*/ |
1880 |
stringBuffer.append(TEXT_306); |
2193 |
stringBuffer.append(TEXT_306); |
1881 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
2194 |
|
|
|
2195 |
if (myHelper.containsLinks()) { |
2196 |
|
1882 |
stringBuffer.append(TEXT_307); |
2197 |
stringBuffer.append(TEXT_307); |
1883 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
2198 |
|
|
|
2199 |
} |
2200 |
|
1884 |
stringBuffer.append(TEXT_308); |
2201 |
stringBuffer.append(TEXT_308); |
1885 |
|
2202 |
|
1886 |
final String primaryView = "getDiagramNode()"; |
2203 |
if (myHelper.containsLinks()) { |
1887 |
|
2204 |
|
1888 |
stringBuffer.append(TEXT_309); |
2205 |
stringBuffer.append(TEXT_309); |
1889 |
|
2206 |
|
1890 |
boolean isFixedFontSetInFigure; |
|
|
1891 |
{ |
1892 |
StyleAttributes styleAttributes = (genElement.getViewmap() == null) ? null : (StyleAttributes)genElement.getViewmap().find(StyleAttributes.class); |
1893 |
isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont(); |
1894 |
} |
2207 |
} |
1895 |
|
2208 |
|
1896 |
stringBuffer.append(TEXT_310); |
2209 |
stringBuffer.append(TEXT_310); |
1897 |
|
2210 |
|
1898 |
if (!isFixedFontSetInFigure) { |
2211 |
{ |
|
|
2212 |
final String _getViewCode = "getDiagramNode()"; |
2213 |
final String _getDiagramCode = "getDiagramNode().getDiagram()"; |
2214 |
final String _getSemanticElementCode = "getDiagramNode().getElement()"; |
2215 |
final boolean _includeUncontainedLinks = false; |
1899 |
|
2216 |
|
1900 |
stringBuffer.append(TEXT_311); |
2217 |
stringBuffer.append(TEXT_311); |
1901 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); |
2218 |
|
|
|
2219 |
if (myHelper.containsLinks() || _includeUncontainedLinks) { |
2220 |
|
1902 |
stringBuffer.append(TEXT_312); |
2221 |
stringBuffer.append(TEXT_312); |
1903 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); |
2222 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
1904 |
stringBuffer.append(TEXT_313); |
2223 |
stringBuffer.append(TEXT_313); |
1905 |
stringBuffer.append(primaryView); |
2224 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
1906 |
stringBuffer.append(TEXT_314); |
2225 |
stringBuffer.append(TEXT_314); |
1907 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2226 |
stringBuffer.append(_getDiagramCode); |
1908 |
stringBuffer.append(TEXT_315); |
2227 |
stringBuffer.append(TEXT_315); |
1909 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
2228 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.ResourceSetListenerImpl")); |
1910 |
stringBuffer.append(TEXT_316); |
2229 |
stringBuffer.append(TEXT_316); |
1911 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
2230 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1912 |
stringBuffer.append(TEXT_317); |
2231 |
stringBuffer.append(TEXT_317); |
1913 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
2232 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
1914 |
stringBuffer.append(TEXT_318); |
2233 |
stringBuffer.append(TEXT_318); |
1915 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
2234 |
|
|
|
2235 |
boolean hasConstraintsInContainedLinks = false; |
2236 |
for (Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) { |
2237 |
GenLink nextLink = (GenLink) it.next(); |
2238 |
TypeModelFacet typeModelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); |
2239 |
if (typeModelFacet != null && typeModelFacet.getMetaClass() != null && typeModelFacet.getModelElementSelector() != null) { |
2240 |
hasConstraintsInContainedLinks = true; |
2241 |
break; |
2242 |
} |
2243 |
} |
2244 |
if (hasConstraintsInContainedLinks) { |
2245 |
|
1916 |
stringBuffer.append(TEXT_319); |
2246 |
stringBuffer.append(TEXT_319); |
1917 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
2247 |
stringBuffer.append(genDiagram.getVisualIDRegistryQualifiedClassName()); |
1918 |
stringBuffer.append(TEXT_320); |
2248 |
stringBuffer.append(TEXT_320); |
1919 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); |
2249 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1920 |
stringBuffer.append(TEXT_321); |
2250 |
stringBuffer.append(TEXT_321); |
1921 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
2251 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1922 |
stringBuffer.append(TEXT_322); |
2252 |
stringBuffer.append(TEXT_322); |
1923 |
|
2253 |
|
1924 |
} |
2254 |
} |
|
|
2255 |
if (_includeUncontainedLinks) { |
1925 |
|
2256 |
|
1926 |
stringBuffer.append(TEXT_323); |
2257 |
stringBuffer.append(TEXT_323); |
1927 |
|
2258 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1928 |
if (!isFixedFontSetInFigure) { |
|
|
1929 |
|
1930 |
stringBuffer.append(TEXT_324); |
2259 |
stringBuffer.append(TEXT_324); |
1931 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
2260 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1932 |
stringBuffer.append(TEXT_325); |
2261 |
stringBuffer.append(TEXT_325); |
1933 |
|
2262 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
1934 |
} |
|
|
1935 |
|
1936 |
stringBuffer.append(TEXT_326); |
2263 |
stringBuffer.append(TEXT_326); |
|
|
2264 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1937 |
stringBuffer.append(TEXT_327); |
2265 |
stringBuffer.append(TEXT_327); |
|
|
2266 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
1938 |
stringBuffer.append(TEXT_328); |
2267 |
stringBuffer.append(TEXT_328); |
1939 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); |
2268 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1940 |
stringBuffer.append(TEXT_329); |
2269 |
stringBuffer.append(TEXT_329); |
1941 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); |
2270 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
1942 |
stringBuffer.append(TEXT_330); |
2271 |
stringBuffer.append(TEXT_330); |
1943 |
stringBuffer.append(primaryView); |
2272 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1944 |
stringBuffer.append(TEXT_331); |
2273 |
stringBuffer.append(TEXT_331); |
1945 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2274 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
1946 |
stringBuffer.append(TEXT_332); |
2275 |
stringBuffer.append(TEXT_332); |
1947 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
2276 |
|
|
|
2277 |
} |
2278 |
|
1948 |
stringBuffer.append(TEXT_333); |
2279 |
stringBuffer.append(TEXT_333); |
1949 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
2280 |
|
|
|
2281 |
{ |
2282 |
boolean hasDeclaredFilter = false; |
2283 |
Set genAffectingFeatures = new LinkedHashSet(); |
2284 |
for(Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) { |
2285 |
GenLink nextLink = (GenLink) it.next(); |
2286 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); |
2287 |
if (modelFacet == null) { |
2288 |
continue; |
2289 |
} |
2290 |
GenFeature _feature = modelFacet.getChildMetaFeature(); |
2291 |
|
1950 |
stringBuffer.append(TEXT_334); |
2292 |
stringBuffer.append(TEXT_334); |
1951 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
2293 |
|
|
|
2294 |
/* |
2295 |
* input: |
2296 |
* _feature: GenFeature |
2297 |
* genAffectingFeatures : Set |
2298 |
*/ |
2299 |
if (_feature == null || genAffectingFeatures.contains(_feature)) { |
2300 |
continue; |
2301 |
} |
2302 |
genAffectingFeatures.add(_feature); |
2303 |
if (!hasDeclaredFilter) { |
2304 |
hasDeclaredFilter = true; |
2305 |
|
1952 |
stringBuffer.append(TEXT_335); |
2306 |
stringBuffer.append(TEXT_335); |
1953 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
2307 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1954 |
stringBuffer.append(TEXT_336); |
2308 |
stringBuffer.append(TEXT_336); |
1955 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); |
2309 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
1956 |
stringBuffer.append(TEXT_337); |
2310 |
stringBuffer.append(TEXT_337); |
1957 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); |
2311 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
1958 |
stringBuffer.append(TEXT_338); |
2312 |
stringBuffer.append(TEXT_338); |
1959 |
stringBuffer.append(primaryView); |
2313 |
|
|
|
2314 |
} else { |
2315 |
|
1960 |
stringBuffer.append(TEXT_339); |
2316 |
stringBuffer.append(TEXT_339); |
1961 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2317 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1962 |
stringBuffer.append(TEXT_340); |
2318 |
stringBuffer.append(TEXT_340); |
1963 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
2319 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
1964 |
stringBuffer.append(TEXT_341); |
2320 |
stringBuffer.append(TEXT_341); |
1965 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
2321 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
1966 |
stringBuffer.append(TEXT_342); |
2322 |
stringBuffer.append(TEXT_342); |
1967 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
2323 |
|
|
|
2324 |
} |
2325 |
|
2326 |
|
2327 |
_feature = modelFacet.getSourceMetaFeature(); |
2328 |
|
1968 |
stringBuffer.append(TEXT_343); |
2329 |
stringBuffer.append(TEXT_343); |
1969 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
2330 |
|
|
|
2331 |
/* |
2332 |
* input: |
2333 |
* _feature: GenFeature |
2334 |
* genAffectingFeatures : Set |
2335 |
*/ |
2336 |
if (_feature == null || genAffectingFeatures.contains(_feature)) { |
2337 |
continue; |
2338 |
} |
2339 |
genAffectingFeatures.add(_feature); |
2340 |
if (!hasDeclaredFilter) { |
2341 |
hasDeclaredFilter = true; |
2342 |
|
1970 |
stringBuffer.append(TEXT_344); |
2343 |
stringBuffer.append(TEXT_344); |
|
|
2344 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1971 |
stringBuffer.append(TEXT_345); |
2345 |
stringBuffer.append(TEXT_345); |
|
|
2346 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
1972 |
stringBuffer.append(TEXT_346); |
2347 |
stringBuffer.append(TEXT_346); |
1973 |
stringBuffer.append(importManager.getImportedName("java.util.HashMap")); |
2348 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
1974 |
stringBuffer.append(TEXT_347); |
2349 |
stringBuffer.append(TEXT_347); |
1975 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
2350 |
|
|
|
2351 |
} else { |
2352 |
|
1976 |
stringBuffer.append(TEXT_348); |
2353 |
stringBuffer.append(TEXT_348); |
1977 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
2354 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1978 |
stringBuffer.append(TEXT_349); |
2355 |
stringBuffer.append(TEXT_349); |
1979 |
stringBuffer.append(importManager.getImportedName("java.util.HashMap")); |
2356 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
1980 |
stringBuffer.append(TEXT_350); |
2357 |
stringBuffer.append(TEXT_350); |
|
|
2358 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
1981 |
stringBuffer.append(TEXT_351); |
2359 |
stringBuffer.append(TEXT_351); |
|
|
2360 |
|
2361 |
} |
2362 |
|
2363 |
|
2364 |
_feature = modelFacet.getTargetMetaFeature(); |
2365 |
|
1982 |
stringBuffer.append(TEXT_352); |
2366 |
stringBuffer.append(TEXT_352); |
1983 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2367 |
|
|
|
2368 |
/* |
2369 |
* input: |
2370 |
* _feature: GenFeature |
2371 |
* genAffectingFeatures : Set |
2372 |
*/ |
2373 |
if (_feature == null || genAffectingFeatures.contains(_feature)) { |
2374 |
continue; |
2375 |
} |
2376 |
genAffectingFeatures.add(_feature); |
2377 |
if (!hasDeclaredFilter) { |
2378 |
hasDeclaredFilter = true; |
2379 |
|
1984 |
stringBuffer.append(TEXT_353); |
2380 |
stringBuffer.append(TEXT_353); |
1985 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2381 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1986 |
stringBuffer.append(TEXT_354); |
2382 |
stringBuffer.append(TEXT_354); |
|
|
2383 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
1987 |
stringBuffer.append(TEXT_355); |
2384 |
stringBuffer.append(TEXT_355); |
|
|
2385 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
1988 |
stringBuffer.append(TEXT_356); |
2386 |
stringBuffer.append(TEXT_356); |
1989 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2387 |
|
|
|
2388 |
} else { |
2389 |
|
1990 |
stringBuffer.append(TEXT_357); |
2390 |
stringBuffer.append(TEXT_357); |
1991 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2391 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
1992 |
stringBuffer.append(TEXT_358); |
2392 |
stringBuffer.append(TEXT_358); |
1993 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2393 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
1994 |
stringBuffer.append(TEXT_359); |
2394 |
stringBuffer.append(TEXT_359); |
1995 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2395 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
1996 |
stringBuffer.append(TEXT_360); |
2396 |
stringBuffer.append(TEXT_360); |
1997 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2397 |
|
|
|
2398 |
} |
2399 |
|
2400 |
|
2401 |
} |
2402 |
for(Iterator it = myHelper.getContainedFeatureModelFacetLinks(); it.hasNext(); ) { |
2403 |
GenLink nextLink = (GenLink) it.next(); |
2404 |
GenFeature _feature = ((FeatureModelFacet) nextLink.getModelFacet()).getMetaFeature(); |
2405 |
|
1998 |
stringBuffer.append(TEXT_361); |
2406 |
stringBuffer.append(TEXT_361); |
|
|
2407 |
|
2408 |
/* |
2409 |
* input: |
2410 |
* _feature: GenFeature |
2411 |
* genAffectingFeatures : Set |
2412 |
*/ |
2413 |
if (_feature == null || genAffectingFeatures.contains(_feature)) { |
2414 |
continue; |
2415 |
} |
2416 |
genAffectingFeatures.add(_feature); |
2417 |
if (!hasDeclaredFilter) { |
2418 |
hasDeclaredFilter = true; |
2419 |
|
1999 |
stringBuffer.append(TEXT_362); |
2420 |
stringBuffer.append(TEXT_362); |
|
|
2421 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
2000 |
stringBuffer.append(TEXT_363); |
2422 |
stringBuffer.append(TEXT_363); |
2001 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2423 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
2002 |
stringBuffer.append(TEXT_364); |
2424 |
stringBuffer.append(TEXT_364); |
|
|
2425 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
2003 |
stringBuffer.append(TEXT_365); |
2426 |
stringBuffer.append(TEXT_365); |
|
|
2427 |
|
2428 |
} else { |
2429 |
|
2004 |
stringBuffer.append(TEXT_366); |
2430 |
stringBuffer.append(TEXT_366); |
2005 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2431 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
2006 |
stringBuffer.append(TEXT_367); |
2432 |
stringBuffer.append(TEXT_367); |
|
|
2433 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
2007 |
stringBuffer.append(TEXT_368); |
2434 |
stringBuffer.append(TEXT_368); |
|
|
2435 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
2008 |
stringBuffer.append(TEXT_369); |
2436 |
stringBuffer.append(TEXT_369); |
|
|
2437 |
|
2438 |
} |
2439 |
|
2440 |
|
2441 |
} |
2442 |
if (hasConstraintsInContainedLinks) { |
2443 |
if (hasDeclaredFilter) { |
2444 |
|
2445 |
stringBuffer.append(TEXT_370); |
2446 |
|
2447 |
} else { |
2448 |
hasDeclaredFilter = true; |
2449 |
|
2450 |
stringBuffer.append(TEXT_371); |
2451 |
|
2452 |
} |
2453 |
} |
2454 |
if (_includeUncontainedLinks) { |
2455 |
if (hasDeclaredFilter) { |
2456 |
|
2457 |
stringBuffer.append(TEXT_372); |
2458 |
|
2459 |
} else { |
2460 |
hasDeclaredFilter = true; |
2461 |
|
2462 |
stringBuffer.append(TEXT_373); |
2463 |
|
2464 |
} |
2465 |
} |
2466 |
if (!hasDeclaredFilter) { |
2467 |
|
2468 |
stringBuffer.append(TEXT_374); |
2469 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
2470 |
stringBuffer.append(TEXT_375); |
2471 |
|
2472 |
} |
2473 |
} //local declaration of hasDeclaredFilter |
2474 |
|
2475 |
stringBuffer.append(TEXT_376); |
2476 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
2477 |
stringBuffer.append(TEXT_377); |
2478 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
2479 |
stringBuffer.append(TEXT_378); |
2480 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.ResourceSetChangeEvent")); |
2481 |
stringBuffer.append(TEXT_379); |
2482 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); |
2483 |
stringBuffer.append(TEXT_380); |
2484 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
2485 |
stringBuffer.append(TEXT_381); |
2486 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
2487 |
stringBuffer.append(TEXT_382); |
2488 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
2489 |
stringBuffer.append(TEXT_383); |
2490 |
stringBuffer.append(_getDiagramCode); |
2491 |
stringBuffer.append(TEXT_384); |
2492 |
stringBuffer.append(TEXT_385); |
2493 |
/*inner class*/ |
2494 |
stringBuffer.append(TEXT_386); |
2495 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2496 |
stringBuffer.append(TEXT_387); |
2497 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2498 |
stringBuffer.append(TEXT_388); |
2499 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2500 |
stringBuffer.append(TEXT_389); |
2501 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2502 |
stringBuffer.append(TEXT_390); |
2503 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2504 |
stringBuffer.append(TEXT_391); |
2505 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2506 |
stringBuffer.append(TEXT_392); |
2507 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2508 |
stringBuffer.append(TEXT_393); |
2509 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2510 |
stringBuffer.append(TEXT_394); |
2511 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2512 |
stringBuffer.append(TEXT_395); |
2513 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2514 |
stringBuffer.append(TEXT_396); |
2515 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2516 |
stringBuffer.append(TEXT_397); |
2517 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
2518 |
stringBuffer.append(TEXT_398); |
2519 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2520 |
stringBuffer.append(TEXT_399); |
2521 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2522 |
stringBuffer.append(TEXT_400); |
2523 |
stringBuffer.append(importManager.getImportedName("java.util.Map")); |
2524 |
stringBuffer.append(TEXT_401); |
2525 |
stringBuffer.append(importManager.getImportedName("java.util.HashMap")); |
2526 |
stringBuffer.append(TEXT_402); |
2527 |
stringBuffer.append(importManager.getImportedName("java.util.Map")); |
2528 |
stringBuffer.append(TEXT_403); |
2529 |
stringBuffer.append(importManager.getImportedName("java.util.HashMap")); |
2530 |
stringBuffer.append(TEXT_404); |
2531 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2532 |
stringBuffer.append(TEXT_405); |
2533 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2534 |
stringBuffer.append(TEXT_406); |
2535 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2536 |
stringBuffer.append(TEXT_407); |
2537 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2538 |
stringBuffer.append(TEXT_408); |
2539 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2540 |
stringBuffer.append(TEXT_409); |
2541 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2542 |
stringBuffer.append(TEXT_410); |
2543 |
stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); |
2544 |
stringBuffer.append(TEXT_411); |
2545 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2546 |
stringBuffer.append(TEXT_412); |
2547 |
stringBuffer.append(_getDiagramCode); |
2548 |
stringBuffer.append(TEXT_413); |
2549 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
2550 |
stringBuffer.append(TEXT_414); |
2551 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
2552 |
stringBuffer.append(TEXT_415); |
2553 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2554 |
stringBuffer.append(TEXT_416); |
2555 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2556 |
stringBuffer.append(TEXT_417); |
2557 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2558 |
stringBuffer.append(TEXT_418); |
2559 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2560 |
stringBuffer.append(TEXT_419); |
2561 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2562 |
stringBuffer.append(TEXT_420); |
2563 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2564 |
stringBuffer.append(TEXT_421); |
2565 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2566 |
stringBuffer.append(TEXT_422); |
2567 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
2568 |
stringBuffer.append(TEXT_423); |
2569 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".CreateNotationalEdgeCommand")); |
2570 |
stringBuffer.append(TEXT_424); |
2571 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".ReplaceNotationalElementCommand")); |
2572 |
stringBuffer.append(TEXT_425); |
2573 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".RemoveNotationalEdgeCommand")); |
2574 |
stringBuffer.append(TEXT_426); |
2575 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".RemoveNotationalEdgeCommand")); |
2576 |
stringBuffer.append(TEXT_427); |
2577 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2578 |
stringBuffer.append(TEXT_428); |
2579 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".ReconnectNotationalEdgeSourceCommand")); |
2580 |
stringBuffer.append(TEXT_429); |
2581 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2582 |
stringBuffer.append(TEXT_430); |
2583 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".ReconnectNotationalEdgeTargetCommand")); |
2584 |
stringBuffer.append(TEXT_431); |
2585 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2586 |
stringBuffer.append(TEXT_432); |
2587 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2588 |
stringBuffer.append(TEXT_433); |
2589 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2590 |
stringBuffer.append(TEXT_434); |
2591 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".RemoveNotationalEdgeCommand")); |
2592 |
stringBuffer.append(TEXT_435); |
2593 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2594 |
stringBuffer.append(TEXT_436); |
2595 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2596 |
stringBuffer.append(TEXT_437); |
2597 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2598 |
stringBuffer.append(TEXT_438); |
2599 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2600 |
stringBuffer.append(TEXT_439); |
2601 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2602 |
stringBuffer.append(TEXT_440); |
2603 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2604 |
stringBuffer.append(TEXT_441); |
2605 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".RemoveNotationalEdgeCommand")); |
2606 |
stringBuffer.append(TEXT_442); |
2607 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2608 |
stringBuffer.append(TEXT_443); |
2609 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2610 |
stringBuffer.append(TEXT_444); |
2611 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
2612 |
stringBuffer.append(TEXT_445); |
2613 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
2614 |
stringBuffer.append(TEXT_446); |
2615 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2616 |
stringBuffer.append(TEXT_447); |
2617 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2618 |
stringBuffer.append(TEXT_448); |
2619 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2620 |
stringBuffer.append(TEXT_449); |
2621 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2622 |
stringBuffer.append(TEXT_450); |
2623 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2624 |
stringBuffer.append(TEXT_451); |
2625 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2626 |
stringBuffer.append(TEXT_452); |
2627 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2628 |
stringBuffer.append(TEXT_453); |
2629 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2630 |
stringBuffer.append(TEXT_454); |
2631 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2632 |
stringBuffer.append(TEXT_455); |
2633 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2634 |
stringBuffer.append(TEXT_456); |
2635 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2636 |
stringBuffer.append(TEXT_457); |
2637 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2638 |
stringBuffer.append(TEXT_458); |
2639 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2640 |
stringBuffer.append(TEXT_459); |
2641 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2642 |
stringBuffer.append(TEXT_460); |
2643 |
stringBuffer.append(_getDiagramCode); |
2644 |
stringBuffer.append(TEXT_461); |
2645 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2646 |
stringBuffer.append(TEXT_462); |
2647 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2648 |
stringBuffer.append(TEXT_463); |
2649 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".CreateNotationalEdgeCommand")); |
2650 |
stringBuffer.append(TEXT_464); |
2651 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2652 |
stringBuffer.append(TEXT_465); |
2653 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2654 |
stringBuffer.append(TEXT_466); |
2655 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2656 |
stringBuffer.append(TEXT_467); |
2657 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2658 |
stringBuffer.append(TEXT_468); |
2659 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
2660 |
stringBuffer.append(TEXT_469); |
2661 |
|
2662 |
for(Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) { |
2663 |
GenLink nextLink = (GenLink) it.next(); |
2664 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); |
2665 |
if (modelFacet == null) { |
2666 |
continue; |
2667 |
} |
2668 |
|
2669 |
stringBuffer.append(TEXT_470); |
2670 |
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); |
2671 |
stringBuffer.append(TEXT_471); |
2672 |
stringBuffer.append(importManager.getImportedName(modelFacet.getMetaClass().getQualifiedInterfaceName())); |
2673 |
stringBuffer.append(TEXT_472); |
2674 |
stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); |
2675 |
stringBuffer.append(TEXT_473); |
2676 |
|
2677 |
} |
2678 |
for(Iterator it = myHelper.getContainedFeatureModelFacetLinks(); it.hasNext(); ) { |
2679 |
GenLink nextLink = (GenLink) it.next(); |
2680 |
|
2681 |
stringBuffer.append(TEXT_474); |
2682 |
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); |
2683 |
stringBuffer.append(TEXT_475); |
2684 |
stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); |
2685 |
stringBuffer.append(TEXT_476); |
2686 |
|
2687 |
} |
2688 |
|
2689 |
stringBuffer.append(TEXT_477); |
2690 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".CreateNotationalEdgeCommand")); |
2691 |
stringBuffer.append(TEXT_478); |
2692 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2693 |
stringBuffer.append(TEXT_479); |
2694 |
stringBuffer.append(TEXT_480); |
2695 |
stringBuffer.append(TEXT_481); |
2696 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2697 |
stringBuffer.append(TEXT_482); |
2698 |
stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); |
2699 |
stringBuffer.append(TEXT_483); |
2700 |
|
2701 |
Map genFeature2genLinkMap = new LinkedHashMap(); |
2702 |
for(Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) { |
2703 |
GenLink genLink = (GenLink)it.next(); |
2704 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
2705 |
GenFeature metaFeature = modelFacet.getChildMetaFeature(); |
2706 |
if (!genFeature2genLinkMap.containsKey(metaFeature)) { |
2707 |
genFeature2genLinkMap.put(metaFeature, new ArrayList()); |
2708 |
} |
2709 |
((Collection) genFeature2genLinkMap.get(metaFeature)).add(genLink); |
2710 |
} |
2711 |
Map genFeature2featureGenLinkMap = new LinkedHashMap(); |
2712 |
for(Iterator it = myHelper.getContainedFeatureModelFacetLinks(); it.hasNext(); ) { |
2713 |
GenLink genLink = (GenLink)it.next(); |
2714 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
2715 |
if (!genFeature2featureGenLinkMap.containsKey(metaFeature)) { |
2716 |
genFeature2featureGenLinkMap.put(metaFeature, new ArrayList()); |
2717 |
} |
2718 |
((Collection) genFeature2featureGenLinkMap.get(metaFeature)).add(genLink); |
2719 |
} |
2720 |
if (!genFeature2genLinkMap.isEmpty() || !genFeature2featureGenLinkMap.isEmpty()) { |
2721 |
|
2722 |
stringBuffer.append(TEXT_484); |
2723 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2724 |
stringBuffer.append(TEXT_485); |
2725 |
stringBuffer.append(_getSemanticElementCode); |
2726 |
stringBuffer.append(TEXT_486); |
2727 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2728 |
stringBuffer.append(TEXT_487); |
2729 |
|
2730 |
} |
2731 |
if (!genFeature2genLinkMap.isEmpty()) { |
2732 |
|
2733 |
stringBuffer.append(TEXT_488); |
2734 |
|
2735 |
} |
2736 |
for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.hasNext();) { |
2737 |
Map.Entry nextEntry = (Map.Entry) entries.next(); |
2738 |
GenFeature metaFeature = (GenFeature) nextEntry.getKey(); |
2739 |
Collection genLinksCollection = (Collection) nextEntry.getValue(); |
2740 |
if (metaFeature.isListType()) { |
2741 |
|
2742 |
stringBuffer.append(TEXT_489); |
2743 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2744 |
stringBuffer.append(TEXT_490); |
2745 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenClass().getQualifiedInterfaceName())); |
2746 |
stringBuffer.append(TEXT_491); |
2747 |
stringBuffer.append(metaFeature.getGetAccessor()); |
2748 |
stringBuffer.append(TEXT_492); |
2749 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2750 |
stringBuffer.append(TEXT_493); |
2751 |
|
2752 |
} else { |
2753 |
|
2754 |
stringBuffer.append(TEXT_494); |
2755 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenClass().getQualifiedInterfaceName())); |
2756 |
stringBuffer.append(TEXT_495); |
2757 |
stringBuffer.append(metaFeature.getGetAccessor()); |
2758 |
stringBuffer.append(TEXT_496); |
2759 |
|
2760 |
} |
2761 |
|
2762 |
stringBuffer.append(TEXT_497); |
2763 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
2764 |
stringBuffer.append(TEXT_498); |
2765 |
|
2766 |
boolean generateSwitch = genLinksCollection.size() != 1; |
2767 |
if (generateSwitch) { |
2768 |
|
2769 |
stringBuffer.append(TEXT_499); |
2770 |
|
2771 |
} |
2772 |
for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { |
2773 |
GenLink nextLink = (GenLink) genLinksIterator.next(); |
2774 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); |
2775 |
if (generateSwitch) { |
2776 |
|
2777 |
stringBuffer.append(TEXT_500); |
2778 |
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); |
2779 |
stringBuffer.append(TEXT_501); |
2780 |
|
2781 |
} else { |
2782 |
|
2783 |
stringBuffer.append(TEXT_502); |
2784 |
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); |
2785 |
stringBuffer.append(TEXT_503); |
2786 |
|
2787 |
} |
2788 |
if (modelFacet.getSourceMetaFeature() != null) { |
2789 |
|
2790 |
stringBuffer.append(TEXT_504); |
2791 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2792 |
stringBuffer.append(TEXT_505); |
2793 |
stringBuffer.append(importManager.getImportedName(modelFacet.getSourceMetaFeature().getGenClass().getQualifiedInterfaceName())); |
2794 |
stringBuffer.append(TEXT_506); |
2795 |
stringBuffer.append(modelFacet.getSourceMetaFeature().getGetAccessor()); |
2796 |
stringBuffer.append(TEXT_507); |
2797 |
|
2798 |
} else { |
2799 |
|
2800 |
stringBuffer.append(TEXT_508); |
2801 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2802 |
stringBuffer.append(TEXT_509); |
2803 |
stringBuffer.append(_getSemanticElementCode); |
2804 |
stringBuffer.append(TEXT_510); |
2805 |
|
2806 |
} |
2807 |
if (modelFacet.getTargetMetaFeature() != null) { |
2808 |
|
2809 |
stringBuffer.append(TEXT_511); |
2810 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2811 |
stringBuffer.append(TEXT_512); |
2812 |
stringBuffer.append(importManager.getImportedName(modelFacet.getTargetMetaFeature().getGenClass().getQualifiedInterfaceName())); |
2813 |
stringBuffer.append(TEXT_513); |
2814 |
stringBuffer.append(modelFacet.getTargetMetaFeature().getGetAccessor()); |
2815 |
stringBuffer.append(TEXT_514); |
2816 |
|
2817 |
} else { |
2818 |
|
2819 |
stringBuffer.append(TEXT_515); |
2820 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2821 |
stringBuffer.append(TEXT_516); |
2822 |
stringBuffer.append(_getSemanticElementCode); |
2823 |
stringBuffer.append(TEXT_517); |
2824 |
|
2825 |
} |
2826 |
|
2827 |
stringBuffer.append(TEXT_518); |
2828 |
|
2829 |
if (generateSwitch) { |
2830 |
|
2831 |
stringBuffer.append(TEXT_519); |
2832 |
|
2833 |
} else { |
2834 |
|
2835 |
stringBuffer.append(TEXT_520); |
2836 |
|
2837 |
} |
2838 |
|
2839 |
|
2840 |
} //iterate over genLinksCollection |
2841 |
if (generateSwitch) { |
2842 |
|
2843 |
stringBuffer.append(TEXT_521); |
2844 |
|
2845 |
} |
2846 |
if (metaFeature.isListType()) { |
2847 |
|
2848 |
stringBuffer.append(TEXT_522); |
2849 |
|
2850 |
} |
2851 |
} |
2852 |
for (Iterator entries = genFeature2featureGenLinkMap.entrySet().iterator(); entries.hasNext();) { |
2853 |
Map.Entry nextEntry = (Map.Entry) entries.next(); |
2854 |
GenFeature metaFeature = (GenFeature) nextEntry.getKey(); |
2855 |
Collection genLinksCollection = (Collection) nextEntry.getValue(); |
2856 |
if (metaFeature.isListType()) { |
2857 |
|
2858 |
stringBuffer.append(TEXT_523); |
2859 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2860 |
stringBuffer.append(TEXT_524); |
2861 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenClass().getQualifiedInterfaceName())); |
2862 |
stringBuffer.append(TEXT_525); |
2863 |
stringBuffer.append(metaFeature.getGetAccessor()); |
2864 |
stringBuffer.append(TEXT_526); |
2865 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2866 |
stringBuffer.append(TEXT_527); |
2867 |
|
2868 |
} else { |
2869 |
|
2870 |
stringBuffer.append(TEXT_528); |
2871 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenClass().getQualifiedInterfaceName())); |
2872 |
stringBuffer.append(TEXT_529); |
2873 |
stringBuffer.append(metaFeature.getGetAccessor()); |
2874 |
stringBuffer.append(TEXT_530); |
2875 |
|
2876 |
} |
2877 |
|
2878 |
stringBuffer.append(TEXT_531); |
2879 |
|
2880 |
for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { |
2881 |
GenLink nextLink = (GenLink) genLinksIterator.next(); |
2882 |
|
2883 |
stringBuffer.append(TEXT_532); |
2884 |
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); |
2885 |
stringBuffer.append(TEXT_533); |
2886 |
|
2887 |
} |
2888 |
|
2889 |
stringBuffer.append(TEXT_534); |
2890 |
|
2891 |
if (metaFeature.isListType()) { |
2892 |
|
2893 |
stringBuffer.append(TEXT_535); |
2894 |
|
2895 |
} |
2896 |
} |
2897 |
|
2898 |
stringBuffer.append(TEXT_536); |
2899 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2900 |
stringBuffer.append(TEXT_537); |
2901 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2902 |
stringBuffer.append(TEXT_538); |
2903 |
stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); |
2904 |
stringBuffer.append(TEXT_539); |
2905 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
2906 |
stringBuffer.append(TEXT_540); |
2907 |
stringBuffer.append(_getDiagramCode); |
2908 |
stringBuffer.append(TEXT_541); |
2909 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
2910 |
stringBuffer.append(TEXT_542); |
2911 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2912 |
stringBuffer.append(TEXT_543); |
2913 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2914 |
stringBuffer.append(TEXT_544); |
2915 |
|
2916 |
if (_includeUncontainedLinks) { |
2917 |
|
2918 |
stringBuffer.append(TEXT_545); |
2919 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2920 |
stringBuffer.append(TEXT_546); |
2921 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2922 |
stringBuffer.append(TEXT_547); |
2923 |
|
2924 |
} |
2925 |
|
2926 |
|
2927 |
if (myHelper.containsFeatureModelFacetLinks()) { |
2928 |
|
2929 |
stringBuffer.append(TEXT_548); |
2930 |
stringBuffer.append(_getViewCode); |
2931 |
stringBuffer.append(TEXT_549); |
2932 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
2933 |
stringBuffer.append(TEXT_550); |
2934 |
|
2935 |
for(Iterator it = myHelper.getContainedFeatureModelFacetLinks(); it.hasNext(); ) { |
2936 |
GenLink nextLink = (GenLink) it.next(); |
2937 |
|
2938 |
stringBuffer.append(TEXT_551); |
2939 |
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); |
2940 |
stringBuffer.append(TEXT_552); |
2941 |
|
2942 |
} |
2943 |
|
2944 |
stringBuffer.append(TEXT_553); |
2945 |
|
2946 |
if (myHelper.containsTypeModelFacetLinks()) { |
2947 |
|
2948 |
stringBuffer.append(TEXT_554); |
2949 |
|
2950 |
} else { |
2951 |
|
2952 |
stringBuffer.append(TEXT_555); |
2953 |
|
2954 |
} |
2955 |
} |
2956 |
|
2957 |
|
2958 |
|
2959 |
if (myHelper.containsTypeModelFacetLinks()) { |
2960 |
if (!myHelper.containsFeatureModelFacetLinks()) { |
2961 |
|
2962 |
stringBuffer.append(TEXT_556); |
2963 |
|
2964 |
} |
2965 |
|
2966 |
stringBuffer.append(TEXT_557); |
2967 |
stringBuffer.append(_getSemanticElementCode); |
2968 |
stringBuffer.append(TEXT_558); |
2969 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
2970 |
stringBuffer.append(TEXT_559); |
2971 |
|
2972 |
for(Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) { |
2973 |
GenLink nextLink = (GenLink) it.next(); |
2974 |
|
2975 |
stringBuffer.append(TEXT_560); |
2976 |
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); |
2977 |
stringBuffer.append(TEXT_561); |
2978 |
|
2979 |
} |
2980 |
|
2981 |
stringBuffer.append(TEXT_562); |
2982 |
|
2983 |
} |
2984 |
|
2985 |
stringBuffer.append(TEXT_563); |
2986 |
stringBuffer.append(genDiagram.isSynchronized()); |
2987 |
stringBuffer.append(TEXT_564); |
2988 |
stringBuffer.append(genDiagram.isSynchronized()); |
2989 |
stringBuffer.append(TEXT_565); |
2990 |
|
2991 |
} |
2992 |
|
2993 |
|
2994 |
} //end of local declarations |
2995 |
|
2996 |
stringBuffer.append(TEXT_566); |
2997 |
stringBuffer.append(TEXT_567); |
2998 |
stringBuffer.append(TEXT_568); |
2999 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.impl.AdapterImpl")); |
3000 |
stringBuffer.append(TEXT_569); |
3001 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
3002 |
stringBuffer.append(TEXT_570); |
3003 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
3004 |
stringBuffer.append(TEXT_571); |
3005 |
stringBuffer.append(TEXT_572); |
3006 |
stringBuffer.append(TEXT_573); |
3007 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
3008 |
stringBuffer.append(TEXT_574); |
3009 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
3010 |
stringBuffer.append(TEXT_575); |
3011 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
3012 |
stringBuffer.append(TEXT_576); |
3013 |
|
3014 |
final String primaryView = "getDiagramNode()"; |
3015 |
|
3016 |
stringBuffer.append(TEXT_577); |
3017 |
|
3018 |
boolean isFixedFontSetInFigure; |
3019 |
{ |
3020 |
StyleAttributes styleAttributes = (genElement.getViewmap() == null) ? null : (StyleAttributes)genElement.getViewmap().find(StyleAttributes.class); |
3021 |
isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont(); |
3022 |
} |
3023 |
|
3024 |
stringBuffer.append(TEXT_578); |
3025 |
|
3026 |
if (!isFixedFontSetInFigure) { |
3027 |
|
3028 |
stringBuffer.append(TEXT_579); |
3029 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); |
3030 |
stringBuffer.append(TEXT_580); |
3031 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); |
3032 |
stringBuffer.append(TEXT_581); |
3033 |
stringBuffer.append(primaryView); |
3034 |
stringBuffer.append(TEXT_582); |
3035 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3036 |
stringBuffer.append(TEXT_583); |
3037 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
3038 |
stringBuffer.append(TEXT_584); |
3039 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
3040 |
stringBuffer.append(TEXT_585); |
3041 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
3042 |
stringBuffer.append(TEXT_586); |
3043 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
3044 |
stringBuffer.append(TEXT_587); |
3045 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
3046 |
stringBuffer.append(TEXT_588); |
3047 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); |
3048 |
stringBuffer.append(TEXT_589); |
3049 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
3050 |
stringBuffer.append(TEXT_590); |
3051 |
|
3052 |
} |
3053 |
|
3054 |
stringBuffer.append(TEXT_591); |
3055 |
|
3056 |
if (!isFixedFontSetInFigure) { |
3057 |
|
3058 |
stringBuffer.append(TEXT_592); |
3059 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
3060 |
stringBuffer.append(TEXT_593); |
3061 |
|
3062 |
} |
3063 |
|
3064 |
stringBuffer.append(TEXT_594); |
3065 |
stringBuffer.append(TEXT_595); |
3066 |
stringBuffer.append(TEXT_596); |
3067 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); |
3068 |
stringBuffer.append(TEXT_597); |
3069 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); |
3070 |
stringBuffer.append(TEXT_598); |
3071 |
stringBuffer.append(primaryView); |
3072 |
stringBuffer.append(TEXT_599); |
3073 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3074 |
stringBuffer.append(TEXT_600); |
3075 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
3076 |
stringBuffer.append(TEXT_601); |
3077 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
3078 |
stringBuffer.append(TEXT_602); |
3079 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
3080 |
stringBuffer.append(TEXT_603); |
3081 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
3082 |
stringBuffer.append(TEXT_604); |
3083 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); |
3084 |
stringBuffer.append(TEXT_605); |
3085 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); |
3086 |
stringBuffer.append(TEXT_606); |
3087 |
stringBuffer.append(primaryView); |
3088 |
stringBuffer.append(TEXT_607); |
3089 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3090 |
stringBuffer.append(TEXT_608); |
3091 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
3092 |
stringBuffer.append(TEXT_609); |
3093 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
3094 |
stringBuffer.append(TEXT_610); |
3095 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
3096 |
stringBuffer.append(TEXT_611); |
3097 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
3098 |
stringBuffer.append(TEXT_612); |
3099 |
stringBuffer.append(TEXT_613); |
3100 |
stringBuffer.append(TEXT_614); |
3101 |
stringBuffer.append(importManager.getImportedName("java.util.HashMap")); |
3102 |
stringBuffer.append(TEXT_615); |
3103 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
3104 |
stringBuffer.append(TEXT_616); |
3105 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
3106 |
stringBuffer.append(TEXT_617); |
3107 |
stringBuffer.append(importManager.getImportedName("java.util.HashMap")); |
3108 |
stringBuffer.append(TEXT_618); |
3109 |
stringBuffer.append(TEXT_619); |
3110 |
stringBuffer.append(TEXT_620); |
3111 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3112 |
stringBuffer.append(TEXT_621); |
3113 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3114 |
stringBuffer.append(TEXT_622); |
3115 |
stringBuffer.append(TEXT_623); |
3116 |
stringBuffer.append(TEXT_624); |
3117 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3118 |
stringBuffer.append(TEXT_625); |
3119 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3120 |
stringBuffer.append(TEXT_626); |
3121 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3122 |
stringBuffer.append(TEXT_627); |
3123 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3124 |
stringBuffer.append(TEXT_628); |
3125 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3126 |
stringBuffer.append(TEXT_629); |
3127 |
stringBuffer.append(TEXT_630); |
3128 |
stringBuffer.append(TEXT_631); |
3129 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3130 |
stringBuffer.append(TEXT_632); |
3131 |
stringBuffer.append(TEXT_633); |
3132 |
stringBuffer.append(TEXT_634); |
2009 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3133 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2010 |
stringBuffer.append(TEXT_370); |
3134 |
stringBuffer.append(TEXT_635); |
2011 |
stringBuffer.append(TEXT_371); |
3135 |
stringBuffer.append(TEXT_636); |
2012 |
stringBuffer.append(TEXT_372); |
3136 |
stringBuffer.append(TEXT_637); |
2013 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3137 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2014 |
stringBuffer.append(TEXT_373); |
3138 |
stringBuffer.append(TEXT_638); |
|
|
3139 |
stringBuffer.append(TEXT_639); |
3140 |
stringBuffer.append(TEXT_640); |
2015 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3141 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2016 |
stringBuffer.append(TEXT_374); |
3142 |
stringBuffer.append(TEXT_641); |
2017 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3143 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2018 |
stringBuffer.append(TEXT_375); |
3144 |
stringBuffer.append(TEXT_642); |
2019 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3145 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2020 |
stringBuffer.append(TEXT_376); |
3146 |
stringBuffer.append(TEXT_643); |
2021 |
stringBuffer.append(TEXT_377); |
|
|
2022 |
stringBuffer.append(TEXT_378); |
2023 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3147 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2024 |
stringBuffer.append(TEXT_379); |
3148 |
stringBuffer.append(TEXT_644); |
|
|
3149 |
stringBuffer.append(TEXT_645); |
3150 |
stringBuffer.append(TEXT_646); |
2025 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3151 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
2026 |
stringBuffer.append(TEXT_380); |
3152 |
stringBuffer.append(TEXT_647); |
|
|
3153 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
3154 |
stringBuffer.append(TEXT_648); |
2027 |
|
3155 |
|
2028 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
3156 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
2029 |
GenLink genLink = (GenLink)it.next(); |
3157 |
GenLink genLink = (GenLink)it.next(); |
Lines 2051-2160
Link Here
|
2051 |
} |
3179 |
} |
2052 |
GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); |
3180 |
GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); |
2053 |
|
3181 |
|
2054 |
stringBuffer.append(TEXT_381); |
3182 |
stringBuffer.append(TEXT_649); |
2055 |
stringBuffer.append(reconnectCommandNameInfix); |
3183 |
stringBuffer.append(reconnectCommandNameInfix); |
2056 |
stringBuffer.append(genLink.getVisualID()); |
3184 |
stringBuffer.append(genLink.getVisualID()); |
2057 |
stringBuffer.append(TEXT_382); |
3185 |
stringBuffer.append(TEXT_650); |
2058 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
3186 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
2059 |
stringBuffer.append(TEXT_383); |
3187 |
stringBuffer.append(TEXT_651); |
2060 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
3188 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2061 |
stringBuffer.append(TEXT_384); |
3189 |
stringBuffer.append(TEXT_652); |
2062 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3190 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2063 |
stringBuffer.append(TEXT_385); |
3191 |
stringBuffer.append(TEXT_653); |
2064 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3192 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2065 |
stringBuffer.append(TEXT_386); |
3193 |
stringBuffer.append(TEXT_654); |
2066 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
3194 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
2067 |
stringBuffer.append(TEXT_387); |
3195 |
stringBuffer.append(TEXT_655); |
2068 |
stringBuffer.append(reconnectCommandNameInfix); |
3196 |
stringBuffer.append(reconnectCommandNameInfix); |
2069 |
stringBuffer.append(genLink.getVisualID()); |
3197 |
stringBuffer.append(genLink.getVisualID()); |
2070 |
stringBuffer.append(TEXT_388); |
3198 |
stringBuffer.append(TEXT_656); |
2071 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); |
3199 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); |
2072 |
stringBuffer.append(TEXT_389); |
3200 |
stringBuffer.append(TEXT_657); |
2073 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
3201 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2074 |
stringBuffer.append(TEXT_390); |
3202 |
stringBuffer.append(TEXT_658); |
2075 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3203 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2076 |
stringBuffer.append(TEXT_391); |
3204 |
stringBuffer.append(TEXT_659); |
2077 |
stringBuffer.append(reconnectCommandNameInfix); |
3205 |
stringBuffer.append(reconnectCommandNameInfix); |
2078 |
stringBuffer.append(genLink.getVisualID()); |
3206 |
stringBuffer.append(genLink.getVisualID()); |
2079 |
stringBuffer.append(TEXT_392); |
3207 |
stringBuffer.append(TEXT_660); |
2080 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
3208 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2081 |
stringBuffer.append(TEXT_393); |
3209 |
stringBuffer.append(TEXT_661); |
2082 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3210 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2083 |
stringBuffer.append(TEXT_394); |
3211 |
stringBuffer.append(TEXT_662); |
2084 |
|
3212 |
|
2085 |
if (linkConstraints != null) { |
3213 |
if (linkConstraints != null) { |
2086 |
|
3214 |
|
2087 |
stringBuffer.append(TEXT_395); |
3215 |
stringBuffer.append(TEXT_663); |
2088 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
3216 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
2089 |
stringBuffer.append(TEXT_396); |
3217 |
stringBuffer.append(TEXT_664); |
2090 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
3218 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
2091 |
stringBuffer.append(TEXT_397); |
3219 |
stringBuffer.append(TEXT_665); |
2092 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
3220 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
2093 |
stringBuffer.append(TEXT_398); |
3221 |
stringBuffer.append(TEXT_666); |
2094 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
3222 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
2095 |
stringBuffer.append(TEXT_399); |
3223 |
stringBuffer.append(TEXT_667); |
2096 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
3224 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
2097 |
stringBuffer.append(TEXT_400); |
3225 |
stringBuffer.append(TEXT_668); |
2098 |
|
3226 |
|
2099 |
} else { |
3227 |
} else { |
2100 |
|
3228 |
|
2101 |
stringBuffer.append(TEXT_401); |
3229 |
stringBuffer.append(TEXT_669); |
2102 |
|
3230 |
|
2103 |
} |
3231 |
} |
2104 |
|
3232 |
|
2105 |
stringBuffer.append(TEXT_402); |
3233 |
stringBuffer.append(TEXT_670); |
2106 |
|
3234 |
|
2107 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
3235 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
2108 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
3236 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
2109 |
GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); |
3237 |
GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); |
2110 |
if (containmentFeature == null) { |
3238 |
if (containmentFeature == null) { |
2111 |
|
3239 |
|
2112 |
stringBuffer.append(TEXT_403); |
3240 |
stringBuffer.append(TEXT_671); |
2113 |
|
3241 |
|
2114 |
} else { |
3242 |
} else { |
2115 |
|
3243 |
|
2116 |
stringBuffer.append(TEXT_404); |
3244 |
stringBuffer.append(TEXT_672); |
2117 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); |
3245 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); |
2118 |
stringBuffer.append(TEXT_405); |
3246 |
stringBuffer.append(TEXT_673); |
2119 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); |
3247 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); |
2120 |
stringBuffer.append(TEXT_406); |
3248 |
stringBuffer.append(TEXT_674); |
2121 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); |
3249 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); |
2122 |
stringBuffer.append(TEXT_407); |
3250 |
stringBuffer.append(TEXT_675); |
2123 |
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); |
3251 |
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); |
2124 |
stringBuffer.append(TEXT_408); |
3252 |
stringBuffer.append(TEXT_676); |
2125 |
|
3253 |
|
2126 |
{ |
3254 |
{ |
2127 |
GenFeature _feature = containmentFeature; |
3255 |
GenFeature _feature = containmentFeature; |
2128 |
String _ownerInstance = "container"; |
3256 |
String _ownerInstance = "container"; |
2129 |
String _exceedsUpperBound = "return false;"; |
3257 |
String _exceedsUpperBound = "return false;"; |
2130 |
|
3258 |
|
2131 |
stringBuffer.append(TEXT_409); |
3259 |
stringBuffer.append(TEXT_677); |
2132 |
|
3260 |
|
2133 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
3261 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
2134 |
if (upperBound > 0) { |
3262 |
if (upperBound > 0) { |
2135 |
if (upperBound == 1) { |
3263 |
if (upperBound == 1) { |
2136 |
|
3264 |
|
2137 |
stringBuffer.append(TEXT_410); |
3265 |
stringBuffer.append(TEXT_678); |
2138 |
stringBuffer.append(_ownerInstance); |
3266 |
stringBuffer.append(_ownerInstance); |
2139 |
stringBuffer.append(TEXT_411); |
3267 |
stringBuffer.append(TEXT_679); |
2140 |
stringBuffer.append(_feature.getGetAccessor()); |
3268 |
stringBuffer.append(_feature.getGetAccessor()); |
2141 |
stringBuffer.append(TEXT_412); |
3269 |
stringBuffer.append(TEXT_680); |
2142 |
stringBuffer.append(_exceedsUpperBound); |
3270 |
stringBuffer.append(_exceedsUpperBound); |
2143 |
stringBuffer.append(TEXT_413); |
3271 |
stringBuffer.append(TEXT_681); |
2144 |
|
3272 |
|
2145 |
} else { |
3273 |
} else { |
2146 |
|
3274 |
|
2147 |
stringBuffer.append(TEXT_414); |
3275 |
stringBuffer.append(TEXT_682); |
2148 |
stringBuffer.append(_ownerInstance); |
3276 |
stringBuffer.append(_ownerInstance); |
2149 |
stringBuffer.append(TEXT_415); |
3277 |
stringBuffer.append(TEXT_683); |
2150 |
stringBuffer.append(_feature.getGetAccessor()); |
3278 |
stringBuffer.append(_feature.getGetAccessor()); |
2151 |
stringBuffer.append(TEXT_416); |
3279 |
stringBuffer.append(TEXT_684); |
2152 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
3280 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
2153 |
stringBuffer.append(TEXT_417); |
3281 |
stringBuffer.append(TEXT_685); |
2154 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
3282 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
2155 |
stringBuffer.append(TEXT_418); |
3283 |
stringBuffer.append(TEXT_686); |
2156 |
stringBuffer.append(_exceedsUpperBound); |
3284 |
stringBuffer.append(_exceedsUpperBound); |
2157 |
stringBuffer.append(TEXT_419); |
3285 |
stringBuffer.append(TEXT_687); |
2158 |
|
3286 |
|
2159 |
} |
3287 |
} |
2160 |
} |
3288 |
} |
Lines 2168-2200
Link Here
|
2168 |
String _ownerInstance = "container"; |
3296 |
String _ownerInstance = "container"; |
2169 |
String _exceedsUpperBound = "return false;"; |
3297 |
String _exceedsUpperBound = "return false;"; |
2170 |
|
3298 |
|
2171 |
stringBuffer.append(TEXT_420); |
3299 |
stringBuffer.append(TEXT_688); |
2172 |
|
3300 |
|
2173 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
3301 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
2174 |
if (upperBound > 0) { |
3302 |
if (upperBound > 0) { |
2175 |
if (upperBound == 1) { |
3303 |
if (upperBound == 1) { |
2176 |
|
3304 |
|
2177 |
stringBuffer.append(TEXT_421); |
3305 |
stringBuffer.append(TEXT_689); |
2178 |
stringBuffer.append(_ownerInstance); |
3306 |
stringBuffer.append(_ownerInstance); |
2179 |
stringBuffer.append(TEXT_422); |
3307 |
stringBuffer.append(TEXT_690); |
2180 |
stringBuffer.append(_feature.getGetAccessor()); |
3308 |
stringBuffer.append(_feature.getGetAccessor()); |
2181 |
stringBuffer.append(TEXT_423); |
3309 |
stringBuffer.append(TEXT_691); |
2182 |
stringBuffer.append(_exceedsUpperBound); |
3310 |
stringBuffer.append(_exceedsUpperBound); |
2183 |
stringBuffer.append(TEXT_424); |
3311 |
stringBuffer.append(TEXT_692); |
2184 |
|
3312 |
|
2185 |
} else { |
3313 |
} else { |
2186 |
|
3314 |
|
2187 |
stringBuffer.append(TEXT_425); |
3315 |
stringBuffer.append(TEXT_693); |
2188 |
stringBuffer.append(_ownerInstance); |
3316 |
stringBuffer.append(_ownerInstance); |
2189 |
stringBuffer.append(TEXT_426); |
3317 |
stringBuffer.append(TEXT_694); |
2190 |
stringBuffer.append(_feature.getGetAccessor()); |
3318 |
stringBuffer.append(_feature.getGetAccessor()); |
2191 |
stringBuffer.append(TEXT_427); |
3319 |
stringBuffer.append(TEXT_695); |
2192 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
3320 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
2193 |
stringBuffer.append(TEXT_428); |
3321 |
stringBuffer.append(TEXT_696); |
2194 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
3322 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
2195 |
stringBuffer.append(TEXT_429); |
3323 |
stringBuffer.append(TEXT_697); |
2196 |
stringBuffer.append(_exceedsUpperBound); |
3324 |
stringBuffer.append(_exceedsUpperBound); |
2197 |
stringBuffer.append(TEXT_430); |
3325 |
stringBuffer.append(TEXT_698); |
2198 |
|
3326 |
|
2199 |
} |
3327 |
} |
2200 |
} |
3328 |
} |
Lines 2208-2231
Link Here
|
2208 |
String _source = "newSource.getElement()"; |
3336 |
String _source = "newSource.getElement()"; |
2209 |
String _target = "edge.getTarget().getElement()"; |
3337 |
String _target = "edge.getTarget().getElement()"; |
2210 |
|
3338 |
|
2211 |
stringBuffer.append(TEXT_431); |
3339 |
stringBuffer.append(TEXT_699); |
2212 |
|
3340 |
|
2213 |
if (linkConstraints != null) { |
3341 |
if (linkConstraints != null) { |
2214 |
|
3342 |
|
2215 |
stringBuffer.append(TEXT_432); |
3343 |
stringBuffer.append(TEXT_700); |
2216 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
3344 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
2217 |
stringBuffer.append(TEXT_433); |
3345 |
stringBuffer.append(TEXT_701); |
2218 |
stringBuffer.append(_source); |
3346 |
stringBuffer.append(_source); |
2219 |
stringBuffer.append(TEXT_434); |
3347 |
stringBuffer.append(TEXT_702); |
2220 |
stringBuffer.append(_target); |
3348 |
stringBuffer.append(_target); |
2221 |
stringBuffer.append(TEXT_435); |
3349 |
stringBuffer.append(TEXT_703); |
2222 |
|
3350 |
|
2223 |
} |
3351 |
} |
2224 |
|
3352 |
|
2225 |
|
3353 |
|
2226 |
} //local declarations for linkConstraints.jetinc |
3354 |
} //local declarations for linkConstraints.jetinc |
2227 |
|
3355 |
|
2228 |
stringBuffer.append(TEXT_436); |
3356 |
stringBuffer.append(TEXT_704); |
2229 |
|
3357 |
|
2230 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
3358 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
2231 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
3359 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
Lines 2234-2266
Link Here
|
2234 |
String _ownerInstance = "((" + importManager.getImportedName(outgoingClass.getQualifiedInterfaceName()) + ") newSource.getElement())"; |
3362 |
String _ownerInstance = "((" + importManager.getImportedName(outgoingClass.getQualifiedInterfaceName()) + ") newSource.getElement())"; |
2235 |
String _exceedsUpperBound = "return false;"; |
3363 |
String _exceedsUpperBound = "return false;"; |
2236 |
|
3364 |
|
2237 |
stringBuffer.append(TEXT_437); |
3365 |
stringBuffer.append(TEXT_705); |
2238 |
|
3366 |
|
2239 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
3367 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
2240 |
if (upperBound > 0) { |
3368 |
if (upperBound > 0) { |
2241 |
if (upperBound == 1) { |
3369 |
if (upperBound == 1) { |
2242 |
|
3370 |
|
2243 |
stringBuffer.append(TEXT_438); |
3371 |
stringBuffer.append(TEXT_706); |
2244 |
stringBuffer.append(_ownerInstance); |
3372 |
stringBuffer.append(_ownerInstance); |
2245 |
stringBuffer.append(TEXT_439); |
3373 |
stringBuffer.append(TEXT_707); |
2246 |
stringBuffer.append(_feature.getGetAccessor()); |
3374 |
stringBuffer.append(_feature.getGetAccessor()); |
2247 |
stringBuffer.append(TEXT_440); |
3375 |
stringBuffer.append(TEXT_708); |
2248 |
stringBuffer.append(_exceedsUpperBound); |
3376 |
stringBuffer.append(_exceedsUpperBound); |
2249 |
stringBuffer.append(TEXT_441); |
3377 |
stringBuffer.append(TEXT_709); |
2250 |
|
3378 |
|
2251 |
} else { |
3379 |
} else { |
2252 |
|
3380 |
|
2253 |
stringBuffer.append(TEXT_442); |
3381 |
stringBuffer.append(TEXT_710); |
2254 |
stringBuffer.append(_ownerInstance); |
3382 |
stringBuffer.append(_ownerInstance); |
2255 |
stringBuffer.append(TEXT_443); |
3383 |
stringBuffer.append(TEXT_711); |
2256 |
stringBuffer.append(_feature.getGetAccessor()); |
3384 |
stringBuffer.append(_feature.getGetAccessor()); |
2257 |
stringBuffer.append(TEXT_444); |
3385 |
stringBuffer.append(TEXT_712); |
2258 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
3386 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
2259 |
stringBuffer.append(TEXT_445); |
3387 |
stringBuffer.append(TEXT_713); |
2260 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
3388 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
2261 |
stringBuffer.append(TEXT_446); |
3389 |
stringBuffer.append(TEXT_714); |
2262 |
stringBuffer.append(_exceedsUpperBound); |
3390 |
stringBuffer.append(_exceedsUpperBound); |
2263 |
stringBuffer.append(TEXT_447); |
3391 |
stringBuffer.append(TEXT_715); |
2264 |
|
3392 |
|
2265 |
} |
3393 |
} |
2266 |
} |
3394 |
} |
Lines 2271-2314
Link Here
|
2271 |
String _source = "newSource.getElement()"; |
3399 |
String _source = "newSource.getElement()"; |
2272 |
String _target = "edge.getTarget().getElement()"; |
3400 |
String _target = "edge.getTarget().getElement()"; |
2273 |
|
3401 |
|
2274 |
stringBuffer.append(TEXT_448); |
3402 |
stringBuffer.append(TEXT_716); |
2275 |
|
3403 |
|
2276 |
if (linkConstraints != null) { |
3404 |
if (linkConstraints != null) { |
2277 |
|
3405 |
|
2278 |
stringBuffer.append(TEXT_449); |
3406 |
stringBuffer.append(TEXT_717); |
2279 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
3407 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
2280 |
stringBuffer.append(TEXT_450); |
3408 |
stringBuffer.append(TEXT_718); |
2281 |
stringBuffer.append(_source); |
3409 |
stringBuffer.append(_source); |
2282 |
stringBuffer.append(TEXT_451); |
3410 |
stringBuffer.append(TEXT_719); |
2283 |
stringBuffer.append(_target); |
3411 |
stringBuffer.append(_target); |
2284 |
stringBuffer.append(TEXT_452); |
3412 |
stringBuffer.append(TEXT_720); |
2285 |
|
3413 |
|
2286 |
} |
3414 |
} |
2287 |
|
3415 |
|
2288 |
|
3416 |
|
2289 |
} //local declarations for linkConstraints.jetinc |
3417 |
} //local declarations for linkConstraints.jetinc |
2290 |
|
3418 |
|
2291 |
stringBuffer.append(TEXT_453); |
3419 |
stringBuffer.append(TEXT_721); |
2292 |
|
3420 |
|
2293 |
} else { |
3421 |
} else { |
2294 |
|
3422 |
|
2295 |
stringBuffer.append(TEXT_454); |
3423 |
stringBuffer.append(TEXT_722); |
2296 |
|
3424 |
|
2297 |
} |
3425 |
} |
2298 |
|
3426 |
|
2299 |
stringBuffer.append(TEXT_455); |
3427 |
stringBuffer.append(TEXT_723); |
2300 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
3428 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
2301 |
stringBuffer.append(TEXT_456); |
3429 |
stringBuffer.append(TEXT_724); |
2302 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
3430 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
2303 |
stringBuffer.append(TEXT_457); |
3431 |
stringBuffer.append(TEXT_725); |
2304 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
3432 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
2305 |
stringBuffer.append(TEXT_458); |
3433 |
stringBuffer.append(TEXT_726); |
2306 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
3434 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
2307 |
stringBuffer.append(TEXT_459); |
3435 |
stringBuffer.append(TEXT_727); |
2308 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
3436 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
2309 |
stringBuffer.append(TEXT_460); |
3437 |
stringBuffer.append(TEXT_728); |
2310 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".ReconnectNotationalEdgeSourceCommand")); |
3438 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".ReconnectNotationalEdgeSourceCommand")); |
2311 |
stringBuffer.append(TEXT_461); |
3439 |
stringBuffer.append(TEXT_729); |
2312 |
|
3440 |
|
2313 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
3441 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
2314 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
3442 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
Lines 2327-2436
Link Here
|
2327 |
} |
3455 |
} |
2328 |
if (containmentFeature != null || setChild) { |
3456 |
if (containmentFeature != null || setChild) { |
2329 |
|
3457 |
|
2330 |
stringBuffer.append(TEXT_462); |
3458 |
stringBuffer.append(TEXT_730); |
2331 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
3459 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2332 |
stringBuffer.append(TEXT_463); |
3460 |
stringBuffer.append(TEXT_731); |
2333 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); |
3461 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); |
2334 |
stringBuffer.append(TEXT_464); |
3462 |
stringBuffer.append(TEXT_732); |
2335 |
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); |
3463 |
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); |
2336 |
stringBuffer.append(TEXT_465); |
3464 |
stringBuffer.append(TEXT_733); |
2337 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); |
3465 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); |
2338 |
stringBuffer.append(TEXT_466); |
3466 |
stringBuffer.append(TEXT_734); |
2339 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
3467 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2340 |
stringBuffer.append(TEXT_467); |
3468 |
stringBuffer.append(TEXT_735); |
2341 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); |
3469 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); |
2342 |
stringBuffer.append(TEXT_468); |
3470 |
stringBuffer.append(TEXT_736); |
2343 |
|
3471 |
|
2344 |
} |
3472 |
} |
2345 |
if (containmentFeature != null) { |
3473 |
if (containmentFeature != null) { |
2346 |
if (containmentFeature.getEcoreFeature().isMany()) { |
3474 |
if (containmentFeature.getEcoreFeature().isMany()) { |
2347 |
|
3475 |
|
2348 |
stringBuffer.append(TEXT_469); |
3476 |
stringBuffer.append(TEXT_737); |
2349 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3477 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
2350 |
stringBuffer.append(TEXT_470); |
3478 |
stringBuffer.append(TEXT_738); |
2351 |
|
3479 |
|
2352 |
} else { |
3480 |
} else { |
2353 |
|
3481 |
|
2354 |
stringBuffer.append(TEXT_471); |
3482 |
stringBuffer.append(TEXT_739); |
2355 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3483 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2356 |
stringBuffer.append(TEXT_472); |
3484 |
stringBuffer.append(TEXT_740); |
2357 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3485 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2358 |
stringBuffer.append(TEXT_473); |
3486 |
stringBuffer.append(TEXT_741); |
2359 |
|
3487 |
|
2360 |
} |
3488 |
} |
2361 |
|
3489 |
|
2362 |
stringBuffer.append(TEXT_474); |
3490 |
stringBuffer.append(TEXT_742); |
2363 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
3491 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
2364 |
stringBuffer.append(TEXT_475); |
3492 |
stringBuffer.append(TEXT_743); |
2365 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3493 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2366 |
stringBuffer.append(TEXT_476); |
3494 |
stringBuffer.append(TEXT_744); |
2367 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
3495 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
2368 |
stringBuffer.append(TEXT_477); |
3496 |
stringBuffer.append(TEXT_745); |
2369 |
|
3497 |
|
2370 |
} |
3498 |
} |
2371 |
if (setChild) { |
3499 |
if (setChild) { |
2372 |
if (childFeature.getEcoreFeature().isMany()) { |
3500 |
if (childFeature.getEcoreFeature().isMany()) { |
2373 |
|
3501 |
|
2374 |
stringBuffer.append(TEXT_478); |
3502 |
stringBuffer.append(TEXT_746); |
2375 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3503 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
2376 |
stringBuffer.append(TEXT_479); |
3504 |
stringBuffer.append(TEXT_747); |
2377 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3505 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2378 |
stringBuffer.append(TEXT_480); |
3506 |
stringBuffer.append(TEXT_748); |
2379 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
3507 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
2380 |
stringBuffer.append(TEXT_481); |
3508 |
stringBuffer.append(TEXT_749); |
2381 |
|
3509 |
|
2382 |
} else { |
3510 |
} else { |
2383 |
|
3511 |
|
2384 |
stringBuffer.append(TEXT_482); |
3512 |
stringBuffer.append(TEXT_750); |
2385 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3513 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2386 |
stringBuffer.append(TEXT_483); |
3514 |
stringBuffer.append(TEXT_751); |
2387 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3515 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2388 |
stringBuffer.append(TEXT_484); |
3516 |
stringBuffer.append(TEXT_752); |
2389 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
3517 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
2390 |
stringBuffer.append(TEXT_485); |
3518 |
stringBuffer.append(TEXT_753); |
2391 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3519 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2392 |
stringBuffer.append(TEXT_486); |
3520 |
stringBuffer.append(TEXT_754); |
2393 |
|
3521 |
|
2394 |
} |
3522 |
} |
2395 |
|
3523 |
|
2396 |
stringBuffer.append(TEXT_487); |
3524 |
stringBuffer.append(TEXT_755); |
2397 |
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
3525 |
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
2398 |
stringBuffer.append(TEXT_488); |
3526 |
stringBuffer.append(TEXT_756); |
2399 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3527 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2400 |
stringBuffer.append(TEXT_489); |
3528 |
stringBuffer.append(TEXT_757); |
2401 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
3529 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
2402 |
stringBuffer.append(TEXT_490); |
3530 |
stringBuffer.append(TEXT_758); |
2403 |
|
3531 |
|
2404 |
} |
3532 |
} |
2405 |
|
3533 |
|
2406 |
stringBuffer.append(TEXT_491); |
3534 |
stringBuffer.append(TEXT_759); |
2407 |
|
3535 |
|
2408 |
if (setSource) { |
3536 |
if (setSource) { |
2409 |
if (sourceFeature.getEcoreFeature().isMany()) { |
3537 |
if (sourceFeature.getEcoreFeature().isMany()) { |
2410 |
|
3538 |
|
2411 |
stringBuffer.append(TEXT_492); |
3539 |
stringBuffer.append(TEXT_760); |
2412 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3540 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
2413 |
stringBuffer.append(TEXT_493); |
3541 |
stringBuffer.append(TEXT_761); |
2414 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3542 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2415 |
stringBuffer.append(TEXT_494); |
3543 |
stringBuffer.append(TEXT_762); |
2416 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
3544 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
2417 |
stringBuffer.append(TEXT_495); |
3545 |
stringBuffer.append(TEXT_763); |
2418 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); |
3546 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); |
2419 |
stringBuffer.append(TEXT_496); |
3547 |
stringBuffer.append(TEXT_764); |
2420 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3548 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2421 |
stringBuffer.append(TEXT_497); |
3549 |
stringBuffer.append(TEXT_765); |
2422 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
3550 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
2423 |
stringBuffer.append(TEXT_498); |
3551 |
stringBuffer.append(TEXT_766); |
2424 |
|
3552 |
|
2425 |
} else { |
3553 |
} else { |
2426 |
|
3554 |
|
2427 |
stringBuffer.append(TEXT_499); |
3555 |
stringBuffer.append(TEXT_767); |
2428 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3556 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2429 |
stringBuffer.append(TEXT_500); |
3557 |
stringBuffer.append(TEXT_768); |
2430 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3558 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2431 |
stringBuffer.append(TEXT_501); |
3559 |
stringBuffer.append(TEXT_769); |
2432 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
3560 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
2433 |
stringBuffer.append(TEXT_502); |
3561 |
stringBuffer.append(TEXT_770); |
2434 |
|
3562 |
|
2435 |
} |
3563 |
} |
2436 |
} |
3564 |
} |
Lines 2438-2490
Link Here
|
2438 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
3566 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
2439 |
if (metaFeature.getEcoreFeature().isMany()) { |
3567 |
if (metaFeature.getEcoreFeature().isMany()) { |
2440 |
|
3568 |
|
2441 |
stringBuffer.append(TEXT_503); |
3569 |
stringBuffer.append(TEXT_771); |
2442 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3570 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
2443 |
stringBuffer.append(TEXT_504); |
3571 |
stringBuffer.append(TEXT_772); |
2444 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3572 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2445 |
stringBuffer.append(TEXT_505); |
3573 |
stringBuffer.append(TEXT_773); |
2446 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3574 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
2447 |
stringBuffer.append(TEXT_506); |
3575 |
stringBuffer.append(TEXT_774); |
2448 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); |
3576 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); |
2449 |
stringBuffer.append(TEXT_507); |
3577 |
stringBuffer.append(TEXT_775); |
2450 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3578 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2451 |
stringBuffer.append(TEXT_508); |
3579 |
stringBuffer.append(TEXT_776); |
2452 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3580 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
2453 |
stringBuffer.append(TEXT_509); |
3581 |
stringBuffer.append(TEXT_777); |
2454 |
|
3582 |
|
2455 |
} else { |
3583 |
} else { |
2456 |
|
3584 |
|
2457 |
stringBuffer.append(TEXT_510); |
3585 |
stringBuffer.append(TEXT_778); |
2458 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3586 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2459 |
stringBuffer.append(TEXT_511); |
3587 |
stringBuffer.append(TEXT_779); |
2460 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3588 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2461 |
stringBuffer.append(TEXT_512); |
3589 |
stringBuffer.append(TEXT_780); |
2462 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3590 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
2463 |
stringBuffer.append(TEXT_513); |
3591 |
stringBuffer.append(TEXT_781); |
2464 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3592 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2465 |
stringBuffer.append(TEXT_514); |
3593 |
stringBuffer.append(TEXT_782); |
2466 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3594 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2467 |
stringBuffer.append(TEXT_515); |
3595 |
stringBuffer.append(TEXT_783); |
2468 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3596 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2469 |
stringBuffer.append(TEXT_516); |
3597 |
stringBuffer.append(TEXT_784); |
2470 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3598 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
2471 |
stringBuffer.append(TEXT_517); |
3599 |
stringBuffer.append(TEXT_785); |
2472 |
|
3600 |
|
2473 |
} |
3601 |
} |
2474 |
} |
3602 |
} |
2475 |
|
3603 |
|
2476 |
stringBuffer.append(TEXT_518); |
3604 |
stringBuffer.append(TEXT_786); |
2477 |
stringBuffer.append(TEXT_519); |
3605 |
stringBuffer.append(TEXT_787); |
2478 |
|
3606 |
|
2479 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
3607 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
2480 |
|
3608 |
|
2481 |
stringBuffer.append(TEXT_520); |
3609 |
stringBuffer.append(TEXT_788); |
2482 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
3610 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2483 |
stringBuffer.append(TEXT_521); |
3611 |
stringBuffer.append(TEXT_789); |
2484 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
3612 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2485 |
stringBuffer.append(TEXT_522); |
3613 |
stringBuffer.append(TEXT_790); |
2486 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); |
3614 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); |
2487 |
stringBuffer.append(TEXT_523); |
3615 |
stringBuffer.append(TEXT_791); |
2488 |
|
3616 |
|
2489 |
} |
3617 |
} |
2490 |
|
3618 |
|
Lines 2492-2506
Link Here
|
2492 |
if (linkConstraints != null) { |
3620 |
if (linkConstraints != null) { |
2493 |
String _edge = "edge"; |
3621 |
String _edge = "edge"; |
2494 |
|
3622 |
|
2495 |
stringBuffer.append(TEXT_524); |
3623 |
stringBuffer.append(TEXT_792); |
2496 |
|
3624 |
|
2497 |
//input: _edge : String |
3625 |
//input: _edge : String |
2498 |
|
3626 |
|
2499 |
stringBuffer.append(TEXT_525); |
3627 |
stringBuffer.append(TEXT_793); |
2500 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
3628 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
2501 |
stringBuffer.append(TEXT_526); |
3629 |
stringBuffer.append(TEXT_794); |
2502 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
3630 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
2503 |
stringBuffer.append(TEXT_527); |
3631 |
stringBuffer.append(TEXT_795); |
2504 |
|
3632 |
|
2505 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
3633 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
2506 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
3634 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
Lines 2527-2776
Link Here
|
2527 |
} |
3655 |
} |
2528 |
} |
3656 |
} |
2529 |
|
3657 |
|
2530 |
stringBuffer.append(TEXT_528); |
3658 |
stringBuffer.append(TEXT_796); |
2531 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
3659 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
2532 |
stringBuffer.append(TEXT_529); |
3660 |
stringBuffer.append(TEXT_797); |
2533 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
3661 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
2534 |
stringBuffer.append(TEXT_530); |
3662 |
stringBuffer.append(TEXT_798); |
2535 |
|
3663 |
|
2536 |
if (containmentFeature.getEcoreFeature().isMany()) { |
3664 |
if (containmentFeature.getEcoreFeature().isMany()) { |
2537 |
|
3665 |
|
2538 |
stringBuffer.append(TEXT_531); |
3666 |
stringBuffer.append(TEXT_799); |
2539 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3667 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
2540 |
stringBuffer.append(TEXT_532); |
3668 |
stringBuffer.append(TEXT_800); |
2541 |
stringBuffer.append(_edge); |
3669 |
stringBuffer.append(_edge); |
2542 |
stringBuffer.append(TEXT_533); |
3670 |
stringBuffer.append(TEXT_801); |
2543 |
stringBuffer.append(_edge); |
3671 |
stringBuffer.append(_edge); |
2544 |
stringBuffer.append(TEXT_534); |
3672 |
stringBuffer.append(TEXT_802); |
2545 |
stringBuffer.append(_edge); |
3673 |
stringBuffer.append(_edge); |
2546 |
stringBuffer.append(TEXT_535); |
3674 |
stringBuffer.append(TEXT_803); |
2547 |
|
3675 |
|
2548 |
} else { |
3676 |
} else { |
2549 |
|
3677 |
|
2550 |
stringBuffer.append(TEXT_536); |
3678 |
stringBuffer.append(TEXT_804); |
2551 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3679 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2552 |
stringBuffer.append(TEXT_537); |
3680 |
stringBuffer.append(TEXT_805); |
2553 |
stringBuffer.append(_edge); |
3681 |
stringBuffer.append(_edge); |
2554 |
stringBuffer.append(TEXT_538); |
3682 |
stringBuffer.append(TEXT_806); |
2555 |
stringBuffer.append(_edge); |
3683 |
stringBuffer.append(_edge); |
2556 |
stringBuffer.append(TEXT_539); |
3684 |
stringBuffer.append(TEXT_807); |
2557 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3685 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2558 |
stringBuffer.append(TEXT_540); |
3686 |
stringBuffer.append(TEXT_808); |
2559 |
|
3687 |
|
2560 |
} |
3688 |
} |
2561 |
} else { |
3689 |
} else { |
2562 |
|
3690 |
|
2563 |
stringBuffer.append(TEXT_541); |
3691 |
stringBuffer.append(TEXT_809); |
2564 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); |
3692 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); |
2565 |
stringBuffer.append(TEXT_542); |
3693 |
stringBuffer.append(TEXT_810); |
2566 |
|
3694 |
|
2567 |
} |
3695 |
} |
2568 |
if (removeChild) { |
3696 |
if (removeChild) { |
2569 |
if (childFeature.getEcoreFeature().isMany()) { |
3697 |
if (childFeature.getEcoreFeature().isMany()) { |
2570 |
|
3698 |
|
2571 |
stringBuffer.append(TEXT_543); |
3699 |
stringBuffer.append(TEXT_811); |
2572 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3700 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
2573 |
stringBuffer.append(TEXT_544); |
3701 |
stringBuffer.append(TEXT_812); |
2574 |
stringBuffer.append(_edge); |
3702 |
stringBuffer.append(_edge); |
2575 |
stringBuffer.append(TEXT_545); |
3703 |
stringBuffer.append(TEXT_813); |
2576 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3704 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2577 |
stringBuffer.append(TEXT_546); |
3705 |
stringBuffer.append(TEXT_814); |
2578 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
3706 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
2579 |
stringBuffer.append(TEXT_547); |
3707 |
stringBuffer.append(TEXT_815); |
2580 |
stringBuffer.append(_edge); |
3708 |
stringBuffer.append(_edge); |
2581 |
stringBuffer.append(TEXT_548); |
3709 |
stringBuffer.append(TEXT_816); |
2582 |
|
3710 |
|
2583 |
} else { |
3711 |
} else { |
2584 |
|
3712 |
|
2585 |
stringBuffer.append(TEXT_549); |
3713 |
stringBuffer.append(TEXT_817); |
2586 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3714 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2587 |
stringBuffer.append(TEXT_550); |
3715 |
stringBuffer.append(TEXT_818); |
2588 |
stringBuffer.append(_edge); |
3716 |
stringBuffer.append(_edge); |
2589 |
stringBuffer.append(TEXT_551); |
3717 |
stringBuffer.append(TEXT_819); |
2590 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3718 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2591 |
stringBuffer.append(TEXT_552); |
3719 |
stringBuffer.append(TEXT_820); |
2592 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
3720 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
2593 |
stringBuffer.append(TEXT_553); |
3721 |
stringBuffer.append(TEXT_821); |
2594 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3722 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2595 |
stringBuffer.append(TEXT_554); |
3723 |
stringBuffer.append(TEXT_822); |
2596 |
|
3724 |
|
2597 |
} |
3725 |
} |
2598 |
} |
3726 |
} |
2599 |
if (removeSource) { |
3727 |
if (removeSource) { |
2600 |
if (sourceFeature.getEcoreFeature().isMany()) { |
3728 |
if (sourceFeature.getEcoreFeature().isMany()) { |
2601 |
|
3729 |
|
2602 |
stringBuffer.append(TEXT_555); |
3730 |
stringBuffer.append(TEXT_823); |
2603 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3731 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
2604 |
stringBuffer.append(TEXT_556); |
3732 |
stringBuffer.append(TEXT_824); |
2605 |
stringBuffer.append(_edge); |
3733 |
stringBuffer.append(_edge); |
2606 |
stringBuffer.append(TEXT_557); |
3734 |
stringBuffer.append(TEXT_825); |
2607 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3735 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2608 |
stringBuffer.append(TEXT_558); |
3736 |
stringBuffer.append(TEXT_826); |
2609 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
3737 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
2610 |
stringBuffer.append(TEXT_559); |
3738 |
stringBuffer.append(TEXT_827); |
2611 |
stringBuffer.append(_edge); |
3739 |
stringBuffer.append(_edge); |
2612 |
stringBuffer.append(TEXT_560); |
3740 |
stringBuffer.append(TEXT_828); |
2613 |
|
3741 |
|
2614 |
} else { |
3742 |
} else { |
2615 |
|
3743 |
|
2616 |
stringBuffer.append(TEXT_561); |
3744 |
stringBuffer.append(TEXT_829); |
2617 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3745 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2618 |
stringBuffer.append(TEXT_562); |
3746 |
stringBuffer.append(TEXT_830); |
2619 |
stringBuffer.append(_edge); |
3747 |
stringBuffer.append(_edge); |
2620 |
stringBuffer.append(TEXT_563); |
3748 |
stringBuffer.append(TEXT_831); |
2621 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3749 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2622 |
stringBuffer.append(TEXT_564); |
3750 |
stringBuffer.append(TEXT_832); |
2623 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
3751 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
2624 |
stringBuffer.append(TEXT_565); |
3752 |
stringBuffer.append(TEXT_833); |
2625 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3753 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2626 |
stringBuffer.append(TEXT_566); |
3754 |
stringBuffer.append(TEXT_834); |
2627 |
|
3755 |
|
2628 |
} |
3756 |
} |
2629 |
} |
3757 |
} |
2630 |
if (removeTarget) { |
3758 |
if (removeTarget) { |
2631 |
if (targetFeature.getEcoreFeature().isMany()) { |
3759 |
if (targetFeature.getEcoreFeature().isMany()) { |
2632 |
|
3760 |
|
2633 |
stringBuffer.append(TEXT_567); |
3761 |
stringBuffer.append(TEXT_835); |
2634 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3762 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
2635 |
stringBuffer.append(TEXT_568); |
3763 |
stringBuffer.append(TEXT_836); |
2636 |
stringBuffer.append(_edge); |
3764 |
stringBuffer.append(_edge); |
2637 |
stringBuffer.append(TEXT_569); |
3765 |
stringBuffer.append(TEXT_837); |
2638 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3766 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2639 |
stringBuffer.append(TEXT_570); |
3767 |
stringBuffer.append(TEXT_838); |
2640 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
3768 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
2641 |
stringBuffer.append(TEXT_571); |
3769 |
stringBuffer.append(TEXT_839); |
2642 |
stringBuffer.append(_edge); |
3770 |
stringBuffer.append(_edge); |
2643 |
stringBuffer.append(TEXT_572); |
3771 |
stringBuffer.append(TEXT_840); |
2644 |
|
3772 |
|
2645 |
} else { |
3773 |
} else { |
2646 |
|
3774 |
|
2647 |
stringBuffer.append(TEXT_573); |
3775 |
stringBuffer.append(TEXT_841); |
2648 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3776 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2649 |
stringBuffer.append(TEXT_574); |
3777 |
stringBuffer.append(TEXT_842); |
2650 |
stringBuffer.append(_edge); |
3778 |
stringBuffer.append(_edge); |
2651 |
stringBuffer.append(TEXT_575); |
3779 |
stringBuffer.append(TEXT_843); |
2652 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3780 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2653 |
stringBuffer.append(TEXT_576); |
3781 |
stringBuffer.append(TEXT_844); |
2654 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
3782 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
2655 |
stringBuffer.append(TEXT_577); |
3783 |
stringBuffer.append(TEXT_845); |
2656 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3784 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2657 |
stringBuffer.append(TEXT_578); |
3785 |
stringBuffer.append(TEXT_846); |
2658 |
|
3786 |
|
2659 |
} |
3787 |
} |
2660 |
} |
3788 |
} |
2661 |
|
3789 |
|
2662 |
stringBuffer.append(TEXT_579); |
3790 |
stringBuffer.append(TEXT_847); |
2663 |
|
3791 |
|
2664 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
3792 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
2665 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
3793 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
2666 |
if (metaFeature.getEcoreFeature().isMany()) { |
3794 |
if (metaFeature.getEcoreFeature().isMany()) { |
2667 |
|
3795 |
|
2668 |
stringBuffer.append(TEXT_580); |
3796 |
stringBuffer.append(TEXT_848); |
2669 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3797 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
2670 |
stringBuffer.append(TEXT_581); |
3798 |
stringBuffer.append(TEXT_849); |
2671 |
stringBuffer.append(_edge); |
3799 |
stringBuffer.append(_edge); |
2672 |
stringBuffer.append(TEXT_582); |
3800 |
stringBuffer.append(TEXT_850); |
2673 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3801 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2674 |
stringBuffer.append(TEXT_583); |
3802 |
stringBuffer.append(TEXT_851); |
2675 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3803 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
2676 |
stringBuffer.append(TEXT_584); |
3804 |
stringBuffer.append(TEXT_852); |
2677 |
stringBuffer.append(_edge); |
3805 |
stringBuffer.append(_edge); |
2678 |
stringBuffer.append(TEXT_585); |
3806 |
stringBuffer.append(TEXT_853); |
2679 |
|
3807 |
|
2680 |
} else { |
3808 |
} else { |
2681 |
|
3809 |
|
2682 |
stringBuffer.append(TEXT_586); |
3810 |
stringBuffer.append(TEXT_854); |
2683 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3811 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2684 |
stringBuffer.append(TEXT_587); |
3812 |
stringBuffer.append(TEXT_855); |
2685 |
stringBuffer.append(_edge); |
3813 |
stringBuffer.append(_edge); |
2686 |
stringBuffer.append(TEXT_588); |
3814 |
stringBuffer.append(TEXT_856); |
2687 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3815 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
2688 |
stringBuffer.append(TEXT_589); |
3816 |
stringBuffer.append(TEXT_857); |
2689 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3817 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
2690 |
stringBuffer.append(TEXT_590); |
3818 |
stringBuffer.append(TEXT_858); |
2691 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3819 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
2692 |
stringBuffer.append(TEXT_591); |
3820 |
stringBuffer.append(TEXT_859); |
2693 |
|
3821 |
|
2694 |
} |
3822 |
} |
2695 |
|
3823 |
|
2696 |
|
3824 |
|
2697 |
} |
3825 |
} |
2698 |
|
3826 |
|
2699 |
stringBuffer.append(TEXT_592); |
3827 |
stringBuffer.append(TEXT_860); |
2700 |
|
3828 |
|
2701 |
} |
3829 |
} |
2702 |
|
3830 |
|
2703 |
stringBuffer.append(TEXT_593); |
3831 |
stringBuffer.append(TEXT_861); |
2704 |
|
3832 |
|
2705 |
if (palette != null) { |
3833 |
if (palette != null) { |
2706 |
|
3834 |
|
2707 |
stringBuffer.append(TEXT_594); |
3835 |
stringBuffer.append(TEXT_862); |
2708 |
stringBuffer.append(createCommandNameInfix); |
3836 |
stringBuffer.append(createCommandNameInfix); |
2709 |
stringBuffer.append(genLink.getVisualID()); |
3837 |
stringBuffer.append(genLink.getVisualID()); |
2710 |
stringBuffer.append(TEXT_595); |
3838 |
stringBuffer.append(TEXT_863); |
2711 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
3839 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
2712 |
stringBuffer.append(TEXT_596); |
3840 |
stringBuffer.append(TEXT_864); |
2713 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3841 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2714 |
stringBuffer.append(TEXT_597); |
3842 |
stringBuffer.append(TEXT_865); |
2715 |
stringBuffer.append(createCommandNameInfix); |
3843 |
stringBuffer.append(createCommandNameInfix); |
2716 |
stringBuffer.append(genLink.getVisualID()); |
3844 |
stringBuffer.append(genLink.getVisualID()); |
2717 |
stringBuffer.append(TEXT_598); |
3845 |
stringBuffer.append(TEXT_866); |
2718 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
3846 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
2719 |
stringBuffer.append(TEXT_599); |
3847 |
stringBuffer.append(TEXT_867); |
2720 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3848 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2721 |
stringBuffer.append(TEXT_600); |
3849 |
stringBuffer.append(TEXT_868); |
2722 |
|
3850 |
|
2723 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
3851 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
2724 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
3852 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
2725 |
GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); |
3853 |
GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); |
2726 |
if (containmentFeature == null) { |
3854 |
if (containmentFeature == null) { |
2727 |
|
3855 |
|
2728 |
stringBuffer.append(TEXT_601); |
3856 |
stringBuffer.append(TEXT_869); |
2729 |
|
3857 |
|
2730 |
} else { |
3858 |
} else { |
2731 |
|
3859 |
|
2732 |
stringBuffer.append(TEXT_602); |
3860 |
stringBuffer.append(TEXT_870); |
2733 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); |
3861 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); |
2734 |
stringBuffer.append(TEXT_603); |
3862 |
stringBuffer.append(TEXT_871); |
2735 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); |
3863 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); |
2736 |
stringBuffer.append(TEXT_604); |
3864 |
stringBuffer.append(TEXT_872); |
2737 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); |
3865 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); |
2738 |
stringBuffer.append(TEXT_605); |
3866 |
stringBuffer.append(TEXT_873); |
2739 |
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); |
3867 |
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); |
2740 |
stringBuffer.append(TEXT_606); |
3868 |
stringBuffer.append(TEXT_874); |
2741 |
|
3869 |
|
2742 |
{ |
3870 |
{ |
2743 |
GenFeature _feature = containmentFeature; |
3871 |
GenFeature _feature = containmentFeature; |
2744 |
String _ownerInstance = "container"; |
3872 |
String _ownerInstance = "container"; |
2745 |
String _exceedsUpperBound = "return false;"; |
3873 |
String _exceedsUpperBound = "return false;"; |
2746 |
|
3874 |
|
2747 |
stringBuffer.append(TEXT_607); |
3875 |
stringBuffer.append(TEXT_875); |
2748 |
|
3876 |
|
2749 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
3877 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
2750 |
if (upperBound > 0) { |
3878 |
if (upperBound > 0) { |
2751 |
if (upperBound == 1) { |
3879 |
if (upperBound == 1) { |
2752 |
|
3880 |
|
2753 |
stringBuffer.append(TEXT_608); |
3881 |
stringBuffer.append(TEXT_876); |
2754 |
stringBuffer.append(_ownerInstance); |
3882 |
stringBuffer.append(_ownerInstance); |
2755 |
stringBuffer.append(TEXT_609); |
3883 |
stringBuffer.append(TEXT_877); |
2756 |
stringBuffer.append(_feature.getGetAccessor()); |
3884 |
stringBuffer.append(_feature.getGetAccessor()); |
2757 |
stringBuffer.append(TEXT_610); |
3885 |
stringBuffer.append(TEXT_878); |
2758 |
stringBuffer.append(_exceedsUpperBound); |
3886 |
stringBuffer.append(_exceedsUpperBound); |
2759 |
stringBuffer.append(TEXT_611); |
3887 |
stringBuffer.append(TEXT_879); |
2760 |
|
3888 |
|
2761 |
} else { |
3889 |
} else { |
2762 |
|
3890 |
|
2763 |
stringBuffer.append(TEXT_612); |
3891 |
stringBuffer.append(TEXT_880); |
2764 |
stringBuffer.append(_ownerInstance); |
3892 |
stringBuffer.append(_ownerInstance); |
2765 |
stringBuffer.append(TEXT_613); |
3893 |
stringBuffer.append(TEXT_881); |
2766 |
stringBuffer.append(_feature.getGetAccessor()); |
3894 |
stringBuffer.append(_feature.getGetAccessor()); |
2767 |
stringBuffer.append(TEXT_614); |
3895 |
stringBuffer.append(TEXT_882); |
2768 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
3896 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
2769 |
stringBuffer.append(TEXT_615); |
3897 |
stringBuffer.append(TEXT_883); |
2770 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
3898 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
2771 |
stringBuffer.append(TEXT_616); |
3899 |
stringBuffer.append(TEXT_884); |
2772 |
stringBuffer.append(_exceedsUpperBound); |
3900 |
stringBuffer.append(_exceedsUpperBound); |
2773 |
stringBuffer.append(TEXT_617); |
3901 |
stringBuffer.append(TEXT_885); |
2774 |
|
3902 |
|
2775 |
} |
3903 |
} |
2776 |
} |
3904 |
} |
Lines 2784-2816
Link Here
|
2784 |
String _ownerInstance = "container"; |
3912 |
String _ownerInstance = "container"; |
2785 |
String _exceedsUpperBound = "return false;"; |
3913 |
String _exceedsUpperBound = "return false;"; |
2786 |
|
3914 |
|
2787 |
stringBuffer.append(TEXT_618); |
3915 |
stringBuffer.append(TEXT_886); |
2788 |
|
3916 |
|
2789 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
3917 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
2790 |
if (upperBound > 0) { |
3918 |
if (upperBound > 0) { |
2791 |
if (upperBound == 1) { |
3919 |
if (upperBound == 1) { |
2792 |
|
3920 |
|
2793 |
stringBuffer.append(TEXT_619); |
3921 |
stringBuffer.append(TEXT_887); |
2794 |
stringBuffer.append(_ownerInstance); |
3922 |
stringBuffer.append(_ownerInstance); |
2795 |
stringBuffer.append(TEXT_620); |
3923 |
stringBuffer.append(TEXT_888); |
2796 |
stringBuffer.append(_feature.getGetAccessor()); |
3924 |
stringBuffer.append(_feature.getGetAccessor()); |
2797 |
stringBuffer.append(TEXT_621); |
3925 |
stringBuffer.append(TEXT_889); |
2798 |
stringBuffer.append(_exceedsUpperBound); |
3926 |
stringBuffer.append(_exceedsUpperBound); |
2799 |
stringBuffer.append(TEXT_622); |
3927 |
stringBuffer.append(TEXT_890); |
2800 |
|
3928 |
|
2801 |
} else { |
3929 |
} else { |
2802 |
|
3930 |
|
2803 |
stringBuffer.append(TEXT_623); |
3931 |
stringBuffer.append(TEXT_891); |
2804 |
stringBuffer.append(_ownerInstance); |
3932 |
stringBuffer.append(_ownerInstance); |
2805 |
stringBuffer.append(TEXT_624); |
3933 |
stringBuffer.append(TEXT_892); |
2806 |
stringBuffer.append(_feature.getGetAccessor()); |
3934 |
stringBuffer.append(_feature.getGetAccessor()); |
2807 |
stringBuffer.append(TEXT_625); |
3935 |
stringBuffer.append(TEXT_893); |
2808 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
3936 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
2809 |
stringBuffer.append(TEXT_626); |
3937 |
stringBuffer.append(TEXT_894); |
2810 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
3938 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
2811 |
stringBuffer.append(TEXT_627); |
3939 |
stringBuffer.append(TEXT_895); |
2812 |
stringBuffer.append(_exceedsUpperBound); |
3940 |
stringBuffer.append(_exceedsUpperBound); |
2813 |
stringBuffer.append(TEXT_628); |
3941 |
stringBuffer.append(TEXT_896); |
2814 |
|
3942 |
|
2815 |
} |
3943 |
} |
2816 |
} |
3944 |
} |
Lines 2822-2845
Link Here
|
2822 |
String _source = "source.getElement()"; |
3950 |
String _source = "source.getElement()"; |
2823 |
String _target = "null"; |
3951 |
String _target = "null"; |
2824 |
|
3952 |
|
2825 |
stringBuffer.append(TEXT_629); |
3953 |
stringBuffer.append(TEXT_897); |
2826 |
|
3954 |
|
2827 |
if (linkConstraints != null) { |
3955 |
if (linkConstraints != null) { |
2828 |
|
3956 |
|
2829 |
stringBuffer.append(TEXT_630); |
3957 |
stringBuffer.append(TEXT_898); |
2830 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
3958 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
2831 |
stringBuffer.append(TEXT_631); |
3959 |
stringBuffer.append(TEXT_899); |
2832 |
stringBuffer.append(_source); |
3960 |
stringBuffer.append(_source); |
2833 |
stringBuffer.append(TEXT_632); |
3961 |
stringBuffer.append(TEXT_900); |
2834 |
stringBuffer.append(_target); |
3962 |
stringBuffer.append(_target); |
2835 |
stringBuffer.append(TEXT_633); |
3963 |
stringBuffer.append(TEXT_901); |
2836 |
|
3964 |
|
2837 |
} |
3965 |
} |
2838 |
|
3966 |
|
2839 |
|
3967 |
|
2840 |
} //local declarations for linkConstraints.jetinc |
3968 |
} //local declarations for linkConstraints.jetinc |
2841 |
|
3969 |
|
2842 |
stringBuffer.append(TEXT_634); |
3970 |
stringBuffer.append(TEXT_902); |
2843 |
|
3971 |
|
2844 |
} |
3972 |
} |
2845 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
3973 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
Lines 2849-2881
Link Here
|
2849 |
String _ownerInstance = "((" + importManager.getImportedName(outgoingClass.getQualifiedInterfaceName()) + ") source.getElement())"; |
3977 |
String _ownerInstance = "((" + importManager.getImportedName(outgoingClass.getQualifiedInterfaceName()) + ") source.getElement())"; |
2850 |
String _exceedsUpperBound = "return false;"; |
3978 |
String _exceedsUpperBound = "return false;"; |
2851 |
|
3979 |
|
2852 |
stringBuffer.append(TEXT_635); |
3980 |
stringBuffer.append(TEXT_903); |
2853 |
|
3981 |
|
2854 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
3982 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
2855 |
if (upperBound > 0) { |
3983 |
if (upperBound > 0) { |
2856 |
if (upperBound == 1) { |
3984 |
if (upperBound == 1) { |
2857 |
|
3985 |
|
2858 |
stringBuffer.append(TEXT_636); |
3986 |
stringBuffer.append(TEXT_904); |
2859 |
stringBuffer.append(_ownerInstance); |
3987 |
stringBuffer.append(_ownerInstance); |
2860 |
stringBuffer.append(TEXT_637); |
3988 |
stringBuffer.append(TEXT_905); |
2861 |
stringBuffer.append(_feature.getGetAccessor()); |
3989 |
stringBuffer.append(_feature.getGetAccessor()); |
2862 |
stringBuffer.append(TEXT_638); |
3990 |
stringBuffer.append(TEXT_906); |
2863 |
stringBuffer.append(_exceedsUpperBound); |
3991 |
stringBuffer.append(_exceedsUpperBound); |
2864 |
stringBuffer.append(TEXT_639); |
3992 |
stringBuffer.append(TEXT_907); |
2865 |
|
3993 |
|
2866 |
} else { |
3994 |
} else { |
2867 |
|
3995 |
|
2868 |
stringBuffer.append(TEXT_640); |
3996 |
stringBuffer.append(TEXT_908); |
2869 |
stringBuffer.append(_ownerInstance); |
3997 |
stringBuffer.append(_ownerInstance); |
2870 |
stringBuffer.append(TEXT_641); |
3998 |
stringBuffer.append(TEXT_909); |
2871 |
stringBuffer.append(_feature.getGetAccessor()); |
3999 |
stringBuffer.append(_feature.getGetAccessor()); |
2872 |
stringBuffer.append(TEXT_642); |
4000 |
stringBuffer.append(TEXT_910); |
2873 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
4001 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
2874 |
stringBuffer.append(TEXT_643); |
4002 |
stringBuffer.append(TEXT_911); |
2875 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
4003 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
2876 |
stringBuffer.append(TEXT_644); |
4004 |
stringBuffer.append(TEXT_912); |
2877 |
stringBuffer.append(_exceedsUpperBound); |
4005 |
stringBuffer.append(_exceedsUpperBound); |
2878 |
stringBuffer.append(TEXT_645); |
4006 |
stringBuffer.append(TEXT_913); |
2879 |
|
4007 |
|
2880 |
} |
4008 |
} |
2881 |
} |
4009 |
} |
Lines 2886-2932
Link Here
|
2886 |
String _source = "source.getElement()"; |
4014 |
String _source = "source.getElement()"; |
2887 |
String _target = "null"; |
4015 |
String _target = "null"; |
2888 |
|
4016 |
|
2889 |
stringBuffer.append(TEXT_646); |
4017 |
stringBuffer.append(TEXT_914); |
2890 |
|
4018 |
|
2891 |
if (linkConstraints != null) { |
4019 |
if (linkConstraints != null) { |
2892 |
|
4020 |
|
2893 |
stringBuffer.append(TEXT_647); |
4021 |
stringBuffer.append(TEXT_915); |
2894 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
4022 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
2895 |
stringBuffer.append(TEXT_648); |
4023 |
stringBuffer.append(TEXT_916); |
2896 |
stringBuffer.append(_source); |
4024 |
stringBuffer.append(_source); |
2897 |
stringBuffer.append(TEXT_649); |
4025 |
stringBuffer.append(TEXT_917); |
2898 |
stringBuffer.append(_target); |
4026 |
stringBuffer.append(_target); |
2899 |
stringBuffer.append(TEXT_650); |
4027 |
stringBuffer.append(TEXT_918); |
2900 |
|
4028 |
|
2901 |
} |
4029 |
} |
2902 |
|
4030 |
|
2903 |
|
4031 |
|
2904 |
} //local declarations for linkConstraints.jetinc |
4032 |
} //local declarations for linkConstraints.jetinc |
2905 |
|
4033 |
|
2906 |
stringBuffer.append(TEXT_651); |
4034 |
stringBuffer.append(TEXT_919); |
2907 |
|
4035 |
|
2908 |
} else { |
4036 |
} else { |
2909 |
|
4037 |
|
2910 |
stringBuffer.append(TEXT_652); |
4038 |
stringBuffer.append(TEXT_920); |
2911 |
|
4039 |
|
2912 |
} |
4040 |
} |
2913 |
|
4041 |
|
2914 |
stringBuffer.append(TEXT_653); |
4042 |
stringBuffer.append(TEXT_921); |
2915 |
stringBuffer.append(TEXT_654); |
4043 |
stringBuffer.append(TEXT_922); |
2916 |
|
4044 |
|
2917 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
4045 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
2918 |
|
4046 |
|
2919 |
stringBuffer.append(TEXT_655); |
4047 |
stringBuffer.append(TEXT_923); |
2920 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
4048 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2921 |
stringBuffer.append(TEXT_656); |
4049 |
stringBuffer.append(TEXT_924); |
2922 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
4050 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
2923 |
stringBuffer.append(TEXT_657); |
4051 |
stringBuffer.append(TEXT_925); |
2924 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); |
4052 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); |
2925 |
stringBuffer.append(TEXT_658); |
4053 |
stringBuffer.append(TEXT_926); |
2926 |
|
4054 |
|
2927 |
} |
4055 |
} |
2928 |
|
4056 |
|
2929 |
stringBuffer.append(TEXT_659); |
4057 |
stringBuffer.append(TEXT_927); |
2930 |
|
4058 |
|
2931 |
} //if there's palette |
4059 |
} //if there's palette |
2932 |
} //outgoing links |
4060 |
} //outgoing links |
Lines 2956-3157
Link Here
|
2956 |
} |
4084 |
} |
2957 |
GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); |
4085 |
GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); |
2958 |
|
4086 |
|
2959 |
stringBuffer.append(TEXT_660); |
4087 |
stringBuffer.append(TEXT_928); |
2960 |
stringBuffer.append(reconnectCommandNameInfix); |
4088 |
stringBuffer.append(reconnectCommandNameInfix); |
2961 |
stringBuffer.append(genLink.getVisualID()); |
4089 |
stringBuffer.append(genLink.getVisualID()); |
2962 |
stringBuffer.append(TEXT_661); |
4090 |
stringBuffer.append(TEXT_929); |
2963 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
4091 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
2964 |
stringBuffer.append(TEXT_662); |
4092 |
stringBuffer.append(TEXT_930); |
2965 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
4093 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2966 |
stringBuffer.append(TEXT_663); |
4094 |
stringBuffer.append(TEXT_931); |
2967 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
4095 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2968 |
stringBuffer.append(TEXT_664); |
4096 |
stringBuffer.append(TEXT_932); |
2969 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
4097 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2970 |
stringBuffer.append(TEXT_665); |
4098 |
stringBuffer.append(TEXT_933); |
2971 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
4099 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
2972 |
stringBuffer.append(TEXT_666); |
4100 |
stringBuffer.append(TEXT_934); |
2973 |
stringBuffer.append(reconnectCommandNameInfix); |
4101 |
stringBuffer.append(reconnectCommandNameInfix); |
2974 |
stringBuffer.append(genLink.getVisualID()); |
4102 |
stringBuffer.append(genLink.getVisualID()); |
2975 |
stringBuffer.append(TEXT_667); |
4103 |
stringBuffer.append(TEXT_935); |
2976 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); |
4104 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); |
2977 |
stringBuffer.append(TEXT_668); |
4105 |
stringBuffer.append(TEXT_936); |
2978 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
4106 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2979 |
stringBuffer.append(TEXT_669); |
4107 |
stringBuffer.append(TEXT_937); |
2980 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
4108 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2981 |
stringBuffer.append(TEXT_670); |
4109 |
stringBuffer.append(TEXT_938); |
2982 |
stringBuffer.append(reconnectCommandNameInfix); |
4110 |
stringBuffer.append(reconnectCommandNameInfix); |
2983 |
stringBuffer.append(genLink.getVisualID()); |
4111 |
stringBuffer.append(genLink.getVisualID()); |
2984 |
stringBuffer.append(TEXT_671); |
4112 |
stringBuffer.append(TEXT_939); |
2985 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
4113 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
2986 |
stringBuffer.append(TEXT_672); |
4114 |
stringBuffer.append(TEXT_940); |
2987 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
4115 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
2988 |
stringBuffer.append(TEXT_673); |
4116 |
stringBuffer.append(TEXT_941); |
2989 |
|
4117 |
|
2990 |
if (linkConstraints != null) { |
4118 |
if (linkConstraints != null) { |
2991 |
|
4119 |
|
2992 |
stringBuffer.append(TEXT_674); |
4120 |
stringBuffer.append(TEXT_942); |
2993 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
4121 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
2994 |
stringBuffer.append(TEXT_675); |
4122 |
stringBuffer.append(TEXT_943); |
2995 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
4123 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
2996 |
stringBuffer.append(TEXT_676); |
4124 |
stringBuffer.append(TEXT_944); |
2997 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
4125 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
2998 |
stringBuffer.append(TEXT_677); |
4126 |
stringBuffer.append(TEXT_945); |
2999 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
4127 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
3000 |
stringBuffer.append(TEXT_678); |
4128 |
stringBuffer.append(TEXT_946); |
3001 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
4129 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
3002 |
stringBuffer.append(TEXT_679); |
4130 |
stringBuffer.append(TEXT_947); |
3003 |
|
4131 |
|
3004 |
} else { |
4132 |
} else { |
3005 |
|
4133 |
|
3006 |
stringBuffer.append(TEXT_680); |
4134 |
stringBuffer.append(TEXT_948); |
3007 |
|
4135 |
|
3008 |
} |
4136 |
} |
3009 |
|
4137 |
|
3010 |
stringBuffer.append(TEXT_681); |
4138 |
stringBuffer.append(TEXT_949); |
3011 |
|
4139 |
|
3012 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
4140 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
3013 |
{ |
4141 |
{ |
3014 |
String _source = "edge.getSource().getElement()"; |
4142 |
String _source = "edge.getSource().getElement()"; |
3015 |
String _target = "newTarget.getElement()"; |
4143 |
String _target = "newTarget.getElement()"; |
3016 |
|
4144 |
|
3017 |
stringBuffer.append(TEXT_682); |
4145 |
stringBuffer.append(TEXT_950); |
3018 |
|
4146 |
|
3019 |
if (linkConstraints != null) { |
4147 |
if (linkConstraints != null) { |
3020 |
|
4148 |
|
3021 |
stringBuffer.append(TEXT_683); |
4149 |
stringBuffer.append(TEXT_951); |
3022 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
4150 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
3023 |
stringBuffer.append(TEXT_684); |
4151 |
stringBuffer.append(TEXT_952); |
3024 |
stringBuffer.append(_source); |
4152 |
stringBuffer.append(_source); |
3025 |
stringBuffer.append(TEXT_685); |
4153 |
stringBuffer.append(TEXT_953); |
3026 |
stringBuffer.append(_target); |
4154 |
stringBuffer.append(_target); |
3027 |
stringBuffer.append(TEXT_686); |
4155 |
stringBuffer.append(TEXT_954); |
3028 |
|
4156 |
|
3029 |
} |
4157 |
} |
3030 |
|
4158 |
|
3031 |
|
4159 |
|
3032 |
} //local declarations for linkConstraints.jetinc |
4160 |
} //local declarations for linkConstraints.jetinc |
3033 |
|
4161 |
|
3034 |
stringBuffer.append(TEXT_687); |
4162 |
stringBuffer.append(TEXT_955); |
3035 |
|
4163 |
|
3036 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
4164 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
3037 |
{ |
4165 |
{ |
3038 |
String _source = "edge.getSource().getElement()"; |
4166 |
String _source = "edge.getSource().getElement()"; |
3039 |
String _target = "newTarget.getElement()"; |
4167 |
String _target = "newTarget.getElement()"; |
3040 |
|
4168 |
|
3041 |
stringBuffer.append(TEXT_688); |
4169 |
stringBuffer.append(TEXT_956); |
3042 |
|
4170 |
|
3043 |
if (linkConstraints != null) { |
4171 |
if (linkConstraints != null) { |
3044 |
|
4172 |
|
3045 |
stringBuffer.append(TEXT_689); |
4173 |
stringBuffer.append(TEXT_957); |
3046 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
4174 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
3047 |
stringBuffer.append(TEXT_690); |
4175 |
stringBuffer.append(TEXT_958); |
3048 |
stringBuffer.append(_source); |
4176 |
stringBuffer.append(_source); |
3049 |
stringBuffer.append(TEXT_691); |
4177 |
stringBuffer.append(TEXT_959); |
3050 |
stringBuffer.append(_target); |
4178 |
stringBuffer.append(_target); |
3051 |
stringBuffer.append(TEXT_692); |
4179 |
stringBuffer.append(TEXT_960); |
3052 |
|
4180 |
|
3053 |
} |
4181 |
} |
3054 |
|
4182 |
|
3055 |
|
4183 |
|
3056 |
} //local declarations for linkConstraints.jetinc |
4184 |
} //local declarations for linkConstraints.jetinc |
3057 |
|
4185 |
|
3058 |
stringBuffer.append(TEXT_693); |
4186 |
stringBuffer.append(TEXT_961); |
3059 |
|
4187 |
|
3060 |
} else { |
4188 |
} else { |
3061 |
|
4189 |
|
3062 |
stringBuffer.append(TEXT_694); |
4190 |
stringBuffer.append(TEXT_962); |
3063 |
|
4191 |
|
3064 |
} |
4192 |
} |
3065 |
|
4193 |
|
3066 |
stringBuffer.append(TEXT_695); |
4194 |
stringBuffer.append(TEXT_963); |
3067 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
4195 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
3068 |
stringBuffer.append(TEXT_696); |
4196 |
stringBuffer.append(TEXT_964); |
3069 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
4197 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
3070 |
stringBuffer.append(TEXT_697); |
4198 |
stringBuffer.append(TEXT_965); |
3071 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
4199 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
3072 |
stringBuffer.append(TEXT_698); |
4200 |
stringBuffer.append(TEXT_966); |
3073 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
4201 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
3074 |
stringBuffer.append(TEXT_699); |
4202 |
stringBuffer.append(TEXT_967); |
3075 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
4203 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
3076 |
stringBuffer.append(TEXT_700); |
4204 |
stringBuffer.append(TEXT_968); |
3077 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".ReconnectNotationalEdgeTargetCommand")); |
4205 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".ReconnectNotationalEdgeTargetCommand")); |
3078 |
stringBuffer.append(TEXT_701); |
4206 |
stringBuffer.append(TEXT_969); |
3079 |
|
4207 |
|
3080 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
4208 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
3081 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
4209 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
3082 |
GenFeature targetFeature = modelFacet.getTargetMetaFeature(); |
4210 |
GenFeature targetFeature = modelFacet.getTargetMetaFeature(); |
3083 |
if (targetFeature.getEcoreFeature().isMany()) { |
4211 |
if (targetFeature.getEcoreFeature().isMany()) { |
3084 |
|
4212 |
|
3085 |
stringBuffer.append(TEXT_702); |
4213 |
stringBuffer.append(TEXT_970); |
3086 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
4214 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3087 |
stringBuffer.append(TEXT_703); |
4215 |
stringBuffer.append(TEXT_971); |
3088 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4216 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3089 |
stringBuffer.append(TEXT_704); |
4217 |
stringBuffer.append(TEXT_972); |
3090 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
4218 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
3091 |
stringBuffer.append(TEXT_705); |
4219 |
stringBuffer.append(TEXT_973); |
3092 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); |
4220 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); |
3093 |
stringBuffer.append(TEXT_706); |
4221 |
stringBuffer.append(TEXT_974); |
3094 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4222 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3095 |
stringBuffer.append(TEXT_707); |
4223 |
stringBuffer.append(TEXT_975); |
3096 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
4224 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
3097 |
stringBuffer.append(TEXT_708); |
4225 |
stringBuffer.append(TEXT_976); |
3098 |
|
4226 |
|
3099 |
} else { |
4227 |
} else { |
3100 |
|
4228 |
|
3101 |
stringBuffer.append(TEXT_709); |
4229 |
stringBuffer.append(TEXT_977); |
3102 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4230 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3103 |
stringBuffer.append(TEXT_710); |
4231 |
stringBuffer.append(TEXT_978); |
3104 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4232 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3105 |
stringBuffer.append(TEXT_711); |
4233 |
stringBuffer.append(TEXT_979); |
3106 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
4234 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
3107 |
stringBuffer.append(TEXT_712); |
4235 |
stringBuffer.append(TEXT_980); |
3108 |
|
4236 |
|
3109 |
} |
4237 |
} |
3110 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
4238 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
3111 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
4239 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
3112 |
if (metaFeature.getEcoreFeature().isMany()) { |
4240 |
if (metaFeature.getEcoreFeature().isMany()) { |
3113 |
|
4241 |
|
3114 |
stringBuffer.append(TEXT_713); |
4242 |
stringBuffer.append(TEXT_981); |
3115 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
4243 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3116 |
stringBuffer.append(TEXT_714); |
4244 |
stringBuffer.append(TEXT_982); |
3117 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4245 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3118 |
stringBuffer.append(TEXT_715); |
4246 |
stringBuffer.append(TEXT_983); |
3119 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
4247 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3120 |
stringBuffer.append(TEXT_716); |
4248 |
stringBuffer.append(TEXT_984); |
3121 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); |
4249 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); |
3122 |
stringBuffer.append(TEXT_717); |
4250 |
stringBuffer.append(TEXT_985); |
3123 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4251 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3124 |
stringBuffer.append(TEXT_718); |
4252 |
stringBuffer.append(TEXT_986); |
3125 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
4253 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3126 |
stringBuffer.append(TEXT_719); |
4254 |
stringBuffer.append(TEXT_987); |
3127 |
|
4255 |
|
3128 |
} else { |
4256 |
} else { |
3129 |
|
4257 |
|
3130 |
stringBuffer.append(TEXT_720); |
4258 |
stringBuffer.append(TEXT_988); |
3131 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4259 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3132 |
stringBuffer.append(TEXT_721); |
4260 |
stringBuffer.append(TEXT_989); |
3133 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4261 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3134 |
stringBuffer.append(TEXT_722); |
4262 |
stringBuffer.append(TEXT_990); |
3135 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
4263 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3136 |
stringBuffer.append(TEXT_723); |
4264 |
stringBuffer.append(TEXT_991); |
3137 |
|
4265 |
|
3138 |
} |
4266 |
} |
3139 |
} |
4267 |
} |
3140 |
|
4268 |
|
3141 |
stringBuffer.append(TEXT_724); |
4269 |
stringBuffer.append(TEXT_992); |
3142 |
|
4270 |
|
3143 |
if (linkConstraints != null) { |
4271 |
if (linkConstraints != null) { |
3144 |
String _edge = "edge"; |
4272 |
String _edge = "edge"; |
3145 |
|
4273 |
|
3146 |
stringBuffer.append(TEXT_725); |
4274 |
stringBuffer.append(TEXT_993); |
3147 |
|
4275 |
|
3148 |
//input: _edge : String |
4276 |
//input: _edge : String |
3149 |
|
4277 |
|
3150 |
stringBuffer.append(TEXT_726); |
4278 |
stringBuffer.append(TEXT_994); |
3151 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
4279 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); |
3152 |
stringBuffer.append(TEXT_727); |
4280 |
stringBuffer.append(TEXT_995); |
3153 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
4281 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
3154 |
stringBuffer.append(TEXT_728); |
4282 |
stringBuffer.append(TEXT_996); |
3155 |
|
4283 |
|
3156 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
4284 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
3157 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
4285 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
Lines 3178-3425
Link Here
|
3178 |
} |
4306 |
} |
3179 |
} |
4307 |
} |
3180 |
|
4308 |
|
3181 |
stringBuffer.append(TEXT_729); |
4309 |
stringBuffer.append(TEXT_997); |
3182 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
4310 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
3183 |
stringBuffer.append(TEXT_730); |
4311 |
stringBuffer.append(TEXT_998); |
3184 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
4312 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
3185 |
stringBuffer.append(TEXT_731); |
4313 |
stringBuffer.append(TEXT_999); |
3186 |
|
4314 |
|
3187 |
if (containmentFeature.getEcoreFeature().isMany()) { |
4315 |
if (containmentFeature.getEcoreFeature().isMany()) { |
3188 |
|
4316 |
|
3189 |
stringBuffer.append(TEXT_732); |
4317 |
stringBuffer.append(TEXT_1000); |
3190 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
4318 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3191 |
stringBuffer.append(TEXT_733); |
4319 |
stringBuffer.append(TEXT_1001); |
3192 |
stringBuffer.append(_edge); |
4320 |
stringBuffer.append(_edge); |
3193 |
stringBuffer.append(TEXT_734); |
4321 |
stringBuffer.append(TEXT_1002); |
3194 |
stringBuffer.append(_edge); |
4322 |
stringBuffer.append(_edge); |
3195 |
stringBuffer.append(TEXT_735); |
4323 |
stringBuffer.append(TEXT_1003); |
3196 |
stringBuffer.append(_edge); |
4324 |
stringBuffer.append(_edge); |
3197 |
stringBuffer.append(TEXT_736); |
4325 |
stringBuffer.append(TEXT_1004); |
3198 |
|
4326 |
|
3199 |
} else { |
4327 |
} else { |
3200 |
|
4328 |
|
3201 |
stringBuffer.append(TEXT_737); |
4329 |
stringBuffer.append(TEXT_1005); |
3202 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4330 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3203 |
stringBuffer.append(TEXT_738); |
4331 |
stringBuffer.append(TEXT_1006); |
3204 |
stringBuffer.append(_edge); |
4332 |
stringBuffer.append(_edge); |
3205 |
stringBuffer.append(TEXT_739); |
4333 |
stringBuffer.append(TEXT_1007); |
3206 |
stringBuffer.append(_edge); |
4334 |
stringBuffer.append(_edge); |
3207 |
stringBuffer.append(TEXT_740); |
4335 |
stringBuffer.append(TEXT_1008); |
3208 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4336 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3209 |
stringBuffer.append(TEXT_741); |
4337 |
stringBuffer.append(TEXT_1009); |
3210 |
|
4338 |
|
3211 |
} |
4339 |
} |
3212 |
} else { |
4340 |
} else { |
3213 |
|
4341 |
|
3214 |
stringBuffer.append(TEXT_742); |
4342 |
stringBuffer.append(TEXT_1010); |
3215 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); |
4343 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); |
3216 |
stringBuffer.append(TEXT_743); |
4344 |
stringBuffer.append(TEXT_1011); |
3217 |
|
4345 |
|
3218 |
} |
4346 |
} |
3219 |
if (removeChild) { |
4347 |
if (removeChild) { |
3220 |
if (childFeature.getEcoreFeature().isMany()) { |
4348 |
if (childFeature.getEcoreFeature().isMany()) { |
3221 |
|
4349 |
|
3222 |
stringBuffer.append(TEXT_744); |
4350 |
stringBuffer.append(TEXT_1012); |
3223 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
4351 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3224 |
stringBuffer.append(TEXT_745); |
4352 |
stringBuffer.append(TEXT_1013); |
3225 |
stringBuffer.append(_edge); |
4353 |
stringBuffer.append(_edge); |
3226 |
stringBuffer.append(TEXT_746); |
4354 |
stringBuffer.append(TEXT_1014); |
3227 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4355 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3228 |
stringBuffer.append(TEXT_747); |
4356 |
stringBuffer.append(TEXT_1015); |
3229 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
4357 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
3230 |
stringBuffer.append(TEXT_748); |
4358 |
stringBuffer.append(TEXT_1016); |
3231 |
stringBuffer.append(_edge); |
4359 |
stringBuffer.append(_edge); |
3232 |
stringBuffer.append(TEXT_749); |
4360 |
stringBuffer.append(TEXT_1017); |
3233 |
|
4361 |
|
3234 |
} else { |
4362 |
} else { |
3235 |
|
4363 |
|
3236 |
stringBuffer.append(TEXT_750); |
4364 |
stringBuffer.append(TEXT_1018); |
3237 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4365 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3238 |
stringBuffer.append(TEXT_751); |
4366 |
stringBuffer.append(TEXT_1019); |
3239 |
stringBuffer.append(_edge); |
4367 |
stringBuffer.append(_edge); |
3240 |
stringBuffer.append(TEXT_752); |
4368 |
stringBuffer.append(TEXT_1020); |
3241 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4369 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3242 |
stringBuffer.append(TEXT_753); |
4370 |
stringBuffer.append(TEXT_1021); |
3243 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
4371 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
3244 |
stringBuffer.append(TEXT_754); |
4372 |
stringBuffer.append(TEXT_1022); |
3245 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4373 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3246 |
stringBuffer.append(TEXT_755); |
4374 |
stringBuffer.append(TEXT_1023); |
3247 |
|
4375 |
|
3248 |
} |
4376 |
} |
3249 |
} |
4377 |
} |
3250 |
if (removeSource) { |
4378 |
if (removeSource) { |
3251 |
if (sourceFeature.getEcoreFeature().isMany()) { |
4379 |
if (sourceFeature.getEcoreFeature().isMany()) { |
3252 |
|
4380 |
|
3253 |
stringBuffer.append(TEXT_756); |
4381 |
stringBuffer.append(TEXT_1024); |
3254 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
4382 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3255 |
stringBuffer.append(TEXT_757); |
4383 |
stringBuffer.append(TEXT_1025); |
3256 |
stringBuffer.append(_edge); |
4384 |
stringBuffer.append(_edge); |
3257 |
stringBuffer.append(TEXT_758); |
4385 |
stringBuffer.append(TEXT_1026); |
3258 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4386 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3259 |
stringBuffer.append(TEXT_759); |
4387 |
stringBuffer.append(TEXT_1027); |
3260 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
4388 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
3261 |
stringBuffer.append(TEXT_760); |
4389 |
stringBuffer.append(TEXT_1028); |
3262 |
stringBuffer.append(_edge); |
4390 |
stringBuffer.append(_edge); |
3263 |
stringBuffer.append(TEXT_761); |
4391 |
stringBuffer.append(TEXT_1029); |
3264 |
|
4392 |
|
3265 |
} else { |
4393 |
} else { |
3266 |
|
4394 |
|
3267 |
stringBuffer.append(TEXT_762); |
4395 |
stringBuffer.append(TEXT_1030); |
3268 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4396 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3269 |
stringBuffer.append(TEXT_763); |
4397 |
stringBuffer.append(TEXT_1031); |
3270 |
stringBuffer.append(_edge); |
4398 |
stringBuffer.append(_edge); |
3271 |
stringBuffer.append(TEXT_764); |
4399 |
stringBuffer.append(TEXT_1032); |
3272 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4400 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3273 |
stringBuffer.append(TEXT_765); |
4401 |
stringBuffer.append(TEXT_1033); |
3274 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
4402 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
3275 |
stringBuffer.append(TEXT_766); |
4403 |
stringBuffer.append(TEXT_1034); |
3276 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4404 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3277 |
stringBuffer.append(TEXT_767); |
4405 |
stringBuffer.append(TEXT_1035); |
3278 |
|
4406 |
|
3279 |
} |
4407 |
} |
3280 |
} |
4408 |
} |
3281 |
if (removeTarget) { |
4409 |
if (removeTarget) { |
3282 |
if (targetFeature.getEcoreFeature().isMany()) { |
4410 |
if (targetFeature.getEcoreFeature().isMany()) { |
3283 |
|
4411 |
|
3284 |
stringBuffer.append(TEXT_768); |
4412 |
stringBuffer.append(TEXT_1036); |
3285 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
4413 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3286 |
stringBuffer.append(TEXT_769); |
4414 |
stringBuffer.append(TEXT_1037); |
3287 |
stringBuffer.append(_edge); |
4415 |
stringBuffer.append(_edge); |
3288 |
stringBuffer.append(TEXT_770); |
4416 |
stringBuffer.append(TEXT_1038); |
3289 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4417 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3290 |
stringBuffer.append(TEXT_771); |
4418 |
stringBuffer.append(TEXT_1039); |
3291 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
4419 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
3292 |
stringBuffer.append(TEXT_772); |
4420 |
stringBuffer.append(TEXT_1040); |
3293 |
stringBuffer.append(_edge); |
4421 |
stringBuffer.append(_edge); |
3294 |
stringBuffer.append(TEXT_773); |
4422 |
stringBuffer.append(TEXT_1041); |
3295 |
|
4423 |
|
3296 |
} else { |
4424 |
} else { |
3297 |
|
4425 |
|
3298 |
stringBuffer.append(TEXT_774); |
4426 |
stringBuffer.append(TEXT_1042); |
3299 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4427 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3300 |
stringBuffer.append(TEXT_775); |
4428 |
stringBuffer.append(TEXT_1043); |
3301 |
stringBuffer.append(_edge); |
4429 |
stringBuffer.append(_edge); |
3302 |
stringBuffer.append(TEXT_776); |
4430 |
stringBuffer.append(TEXT_1044); |
3303 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4431 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3304 |
stringBuffer.append(TEXT_777); |
4432 |
stringBuffer.append(TEXT_1045); |
3305 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
4433 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
3306 |
stringBuffer.append(TEXT_778); |
4434 |
stringBuffer.append(TEXT_1046); |
3307 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4435 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3308 |
stringBuffer.append(TEXT_779); |
4436 |
stringBuffer.append(TEXT_1047); |
3309 |
|
4437 |
|
3310 |
} |
4438 |
} |
3311 |
} |
4439 |
} |
3312 |
|
4440 |
|
3313 |
stringBuffer.append(TEXT_780); |
4441 |
stringBuffer.append(TEXT_1048); |
3314 |
|
4442 |
|
3315 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
4443 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
3316 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
4444 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
3317 |
if (metaFeature.getEcoreFeature().isMany()) { |
4445 |
if (metaFeature.getEcoreFeature().isMany()) { |
3318 |
|
4446 |
|
3319 |
stringBuffer.append(TEXT_781); |
4447 |
stringBuffer.append(TEXT_1049); |
3320 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
4448 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
3321 |
stringBuffer.append(TEXT_782); |
4449 |
stringBuffer.append(TEXT_1050); |
3322 |
stringBuffer.append(_edge); |
4450 |
stringBuffer.append(_edge); |
3323 |
stringBuffer.append(TEXT_783); |
4451 |
stringBuffer.append(TEXT_1051); |
3324 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4452 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3325 |
stringBuffer.append(TEXT_784); |
4453 |
stringBuffer.append(TEXT_1052); |
3326 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
4454 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3327 |
stringBuffer.append(TEXT_785); |
4455 |
stringBuffer.append(TEXT_1053); |
3328 |
stringBuffer.append(_edge); |
4456 |
stringBuffer.append(_edge); |
3329 |
stringBuffer.append(TEXT_786); |
4457 |
stringBuffer.append(TEXT_1054); |
3330 |
|
4458 |
|
3331 |
} else { |
4459 |
} else { |
3332 |
|
4460 |
|
3333 |
stringBuffer.append(TEXT_787); |
4461 |
stringBuffer.append(TEXT_1055); |
3334 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4462 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3335 |
stringBuffer.append(TEXT_788); |
4463 |
stringBuffer.append(TEXT_1056); |
3336 |
stringBuffer.append(_edge); |
4464 |
stringBuffer.append(_edge); |
3337 |
stringBuffer.append(TEXT_789); |
4465 |
stringBuffer.append(TEXT_1057); |
3338 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4466 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3339 |
stringBuffer.append(TEXT_790); |
4467 |
stringBuffer.append(TEXT_1058); |
3340 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
4468 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3341 |
stringBuffer.append(TEXT_791); |
4469 |
stringBuffer.append(TEXT_1059); |
3342 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
4470 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
3343 |
stringBuffer.append(TEXT_792); |
4471 |
stringBuffer.append(TEXT_1060); |
3344 |
|
4472 |
|
3345 |
} |
4473 |
} |
3346 |
|
4474 |
|
3347 |
|
4475 |
|
3348 |
} |
4476 |
} |
3349 |
|
4477 |
|
3350 |
stringBuffer.append(TEXT_793); |
4478 |
stringBuffer.append(TEXT_1061); |
3351 |
|
4479 |
|
3352 |
} |
4480 |
} |
3353 |
|
4481 |
|
3354 |
stringBuffer.append(TEXT_794); |
4482 |
stringBuffer.append(TEXT_1062); |
3355 |
|
4483 |
|
3356 |
if (palette != null) { |
4484 |
if (palette != null) { |
3357 |
|
4485 |
|
3358 |
stringBuffer.append(TEXT_795); |
4486 |
stringBuffer.append(TEXT_1063); |
3359 |
stringBuffer.append(createCommandNameInfix); |
4487 |
stringBuffer.append(createCommandNameInfix); |
3360 |
stringBuffer.append(genLink.getVisualID()); |
4488 |
stringBuffer.append(genLink.getVisualID()); |
3361 |
stringBuffer.append(TEXT_796); |
4489 |
stringBuffer.append(TEXT_1064); |
3362 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
4490 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
3363 |
stringBuffer.append(TEXT_797); |
4491 |
stringBuffer.append(TEXT_1065); |
3364 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
4492 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3365 |
stringBuffer.append(TEXT_798); |
4493 |
stringBuffer.append(TEXT_1066); |
3366 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
4494 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3367 |
stringBuffer.append(TEXT_799); |
4495 |
stringBuffer.append(TEXT_1067); |
3368 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
4496 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
3369 |
stringBuffer.append(TEXT_800); |
4497 |
stringBuffer.append(TEXT_1068); |
3370 |
stringBuffer.append(createCommandNameInfix); |
4498 |
stringBuffer.append(createCommandNameInfix); |
3371 |
stringBuffer.append(genLink.getVisualID()); |
4499 |
stringBuffer.append(genLink.getVisualID()); |
3372 |
stringBuffer.append(TEXT_801); |
4500 |
stringBuffer.append(TEXT_1069); |
3373 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
4501 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
3374 |
stringBuffer.append(TEXT_802); |
4502 |
stringBuffer.append(TEXT_1070); |
3375 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
4503 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3376 |
stringBuffer.append(TEXT_803); |
4504 |
stringBuffer.append(TEXT_1071); |
3377 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
4505 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3378 |
stringBuffer.append(TEXT_804); |
4506 |
stringBuffer.append(TEXT_1072); |
3379 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
4507 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3380 |
stringBuffer.append(TEXT_805); |
4508 |
stringBuffer.append(TEXT_1073); |
3381 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
4509 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
3382 |
stringBuffer.append(TEXT_806); |
4510 |
stringBuffer.append(TEXT_1074); |
3383 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); |
4511 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); |
3384 |
stringBuffer.append(TEXT_807); |
4512 |
stringBuffer.append(TEXT_1075); |
3385 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
4513 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
3386 |
stringBuffer.append(TEXT_808); |
4514 |
stringBuffer.append(TEXT_1076); |
3387 |
|
4515 |
|
3388 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
4516 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
3389 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
4517 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
3390 |
GenClass linkClass = modelFacet.getMetaClass(); |
4518 |
GenClass linkClass = modelFacet.getMetaClass(); |
3391 |
|
4519 |
|
3392 |
stringBuffer.append(TEXT_809); |
4520 |
stringBuffer.append(TEXT_1077); |
3393 |
stringBuffer.append(importManager.getImportedName(importManager.getImportedName(linkClass.getQualifiedInterfaceName()))); |
4521 |
stringBuffer.append(importManager.getImportedName(importManager.getImportedName(linkClass.getQualifiedInterfaceName()))); |
3394 |
stringBuffer.append(TEXT_810); |
4522 |
stringBuffer.append(TEXT_1078); |
3395 |
stringBuffer.append(importManager.getImportedName(linkClass.getGenPackage().getQualifiedFactoryInterfaceName())); |
4523 |
stringBuffer.append(importManager.getImportedName(linkClass.getGenPackage().getQualifiedFactoryInterfaceName())); |
3396 |
stringBuffer.append(TEXT_811); |
4524 |
stringBuffer.append(TEXT_1079); |
3397 |
stringBuffer.append(linkClass.getClassifierAccessorName()); |
4525 |
stringBuffer.append(linkClass.getClassifierAccessorName()); |
3398 |
stringBuffer.append(TEXT_812); |
4526 |
stringBuffer.append(TEXT_1080); |
3399 |
/*XXX: Class name DomainElementInitializer should be user-customizable*/ |
4527 |
/*XXX: Class name DomainElementInitializer should be user-customizable*/ |
3400 |
stringBuffer.append(TEXT_813); |
4528 |
stringBuffer.append(TEXT_1081); |
3401 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); |
4529 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); |
3402 |
stringBuffer.append(TEXT_814); |
4530 |
stringBuffer.append(TEXT_1082); |
3403 |
stringBuffer.append(genLink.getUniqueIdentifier()); |
4531 |
stringBuffer.append(genLink.getUniqueIdentifier()); |
3404 |
stringBuffer.append(TEXT_815); |
4532 |
stringBuffer.append(TEXT_1083); |
3405 |
|
4533 |
|
3406 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
4534 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
3407 |
|
4535 |
|
3408 |
stringBuffer.append(TEXT_816); |
4536 |
stringBuffer.append(TEXT_1084); |
3409 |
|
4537 |
|
3410 |
} |
4538 |
} |
3411 |
|
4539 |
|
3412 |
stringBuffer.append(TEXT_817); |
4540 |
stringBuffer.append(TEXT_1085); |
3413 |
stringBuffer.append(importManager.getImportedName(genLink.getNotationViewFactoryQualifiedClassName())); |
4541 |
stringBuffer.append(importManager.getImportedName(genLink.getNotationViewFactoryQualifiedClassName())); |
3414 |
stringBuffer.append(TEXT_818); |
4542 |
stringBuffer.append(TEXT_1086); |
3415 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
4543 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
3416 |
stringBuffer.append(TEXT_819); |
4544 |
stringBuffer.append(TEXT_1087); |
3417 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
4545 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
3418 |
stringBuffer.append(TEXT_820); |
4546 |
stringBuffer.append(TEXT_1088); |
3419 |
|
4547 |
|
3420 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
4548 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
3421 |
|
4549 |
|
3422 |
stringBuffer.append(TEXT_821); |
4550 |
stringBuffer.append(TEXT_1089); |
3423 |
|
4551 |
|
3424 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
4552 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
3425 |
GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); |
4553 |
GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); |
Lines 3446-3475
Link Here
|
3446 |
} |
4574 |
} |
3447 |
} |
4575 |
} |
3448 |
|
4576 |
|
3449 |
stringBuffer.append(TEXT_822); |
4577 |
stringBuffer.append(TEXT_1090); |
3450 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
4578 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
3451 |
stringBuffer.append(TEXT_823); |
4579 |
stringBuffer.append(TEXT_1091); |
3452 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); |
4580 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); |
3453 |
stringBuffer.append(TEXT_824); |
4581 |
stringBuffer.append(TEXT_1092); |
3454 |
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); |
4582 |
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); |
3455 |
stringBuffer.append(TEXT_825); |
4583 |
stringBuffer.append(TEXT_1093); |
3456 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
4584 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
3457 |
stringBuffer.append(TEXT_826); |
4585 |
stringBuffer.append(TEXT_1094); |
3458 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4586 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3459 |
stringBuffer.append(TEXT_827); |
4587 |
stringBuffer.append(TEXT_1095); |
3460 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
4588 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
3461 |
stringBuffer.append(TEXT_828); |
4589 |
stringBuffer.append(TEXT_1096); |
3462 |
|
4590 |
|
3463 |
} |
4591 |
} |
3464 |
if (addChild) { |
4592 |
if (addChild) { |
3465 |
|
4593 |
|
3466 |
stringBuffer.append(TEXT_829); |
4594 |
stringBuffer.append(TEXT_1097); |
3467 |
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
4595 |
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
3468 |
stringBuffer.append(TEXT_830); |
4596 |
stringBuffer.append(TEXT_1098); |
3469 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4597 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3470 |
stringBuffer.append(TEXT_831); |
4598 |
stringBuffer.append(TEXT_1099); |
3471 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
4599 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
3472 |
stringBuffer.append(TEXT_832); |
4600 |
stringBuffer.append(TEXT_1100); |
3473 |
|
4601 |
|
3474 |
} |
4602 |
} |
3475 |
if (addSource) { |
4603 |
if (addSource) { |
Lines 3478-3510
Link Here
|
3478 |
String _ownerInstance = "createdDomainElement"; |
4606 |
String _ownerInstance = "createdDomainElement"; |
3479 |
String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; |
4607 |
String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; |
3480 |
|
4608 |
|
3481 |
stringBuffer.append(TEXT_833); |
4609 |
stringBuffer.append(TEXT_1101); |
3482 |
|
4610 |
|
3483 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
4611 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
3484 |
if (upperBound > 0) { |
4612 |
if (upperBound > 0) { |
3485 |
if (upperBound == 1) { |
4613 |
if (upperBound == 1) { |
3486 |
|
4614 |
|
3487 |
stringBuffer.append(TEXT_834); |
4615 |
stringBuffer.append(TEXT_1102); |
3488 |
stringBuffer.append(_ownerInstance); |
4616 |
stringBuffer.append(_ownerInstance); |
3489 |
stringBuffer.append(TEXT_835); |
4617 |
stringBuffer.append(TEXT_1103); |
3490 |
stringBuffer.append(_feature.getGetAccessor()); |
4618 |
stringBuffer.append(_feature.getGetAccessor()); |
3491 |
stringBuffer.append(TEXT_836); |
4619 |
stringBuffer.append(TEXT_1104); |
3492 |
stringBuffer.append(_exceedsUpperBound); |
4620 |
stringBuffer.append(_exceedsUpperBound); |
3493 |
stringBuffer.append(TEXT_837); |
4621 |
stringBuffer.append(TEXT_1105); |
3494 |
|
4622 |
|
3495 |
} else { |
4623 |
} else { |
3496 |
|
4624 |
|
3497 |
stringBuffer.append(TEXT_838); |
4625 |
stringBuffer.append(TEXT_1106); |
3498 |
stringBuffer.append(_ownerInstance); |
4626 |
stringBuffer.append(_ownerInstance); |
3499 |
stringBuffer.append(TEXT_839); |
4627 |
stringBuffer.append(TEXT_1107); |
3500 |
stringBuffer.append(_feature.getGetAccessor()); |
4628 |
stringBuffer.append(_feature.getGetAccessor()); |
3501 |
stringBuffer.append(TEXT_840); |
4629 |
stringBuffer.append(TEXT_1108); |
3502 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
4630 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
3503 |
stringBuffer.append(TEXT_841); |
4631 |
stringBuffer.append(TEXT_1109); |
3504 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
4632 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
3505 |
stringBuffer.append(TEXT_842); |
4633 |
stringBuffer.append(TEXT_1110); |
3506 |
stringBuffer.append(_exceedsUpperBound); |
4634 |
stringBuffer.append(_exceedsUpperBound); |
3507 |
stringBuffer.append(TEXT_843); |
4635 |
stringBuffer.append(TEXT_1111); |
3508 |
|
4636 |
|
3509 |
} |
4637 |
} |
3510 |
} |
4638 |
} |
Lines 3512-3524
Link Here
|
3512 |
|
4640 |
|
3513 |
} |
4641 |
} |
3514 |
|
4642 |
|
3515 |
stringBuffer.append(TEXT_844); |
4643 |
stringBuffer.append(TEXT_1112); |
3516 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
4644 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
3517 |
stringBuffer.append(TEXT_845); |
4645 |
stringBuffer.append(TEXT_1113); |
3518 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4646 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3519 |
stringBuffer.append(TEXT_846); |
4647 |
stringBuffer.append(TEXT_1114); |
3520 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
4648 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
3521 |
stringBuffer.append(TEXT_847); |
4649 |
stringBuffer.append(TEXT_1115); |
3522 |
|
4650 |
|
3523 |
} |
4651 |
} |
3524 |
if (addTarget) { |
4652 |
if (addTarget) { |
Lines 3527-3559
Link Here
|
3527 |
String _ownerInstance = "createdDomainElement"; |
4655 |
String _ownerInstance = "createdDomainElement"; |
3528 |
String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; |
4656 |
String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; |
3529 |
|
4657 |
|
3530 |
stringBuffer.append(TEXT_848); |
4658 |
stringBuffer.append(TEXT_1116); |
3531 |
|
4659 |
|
3532 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
4660 |
int upperBound = _feature.getEcoreFeature().getUpperBound(); |
3533 |
if (upperBound > 0) { |
4661 |
if (upperBound > 0) { |
3534 |
if (upperBound == 1) { |
4662 |
if (upperBound == 1) { |
3535 |
|
4663 |
|
3536 |
stringBuffer.append(TEXT_849); |
4664 |
stringBuffer.append(TEXT_1117); |
3537 |
stringBuffer.append(_ownerInstance); |
4665 |
stringBuffer.append(_ownerInstance); |
3538 |
stringBuffer.append(TEXT_850); |
4666 |
stringBuffer.append(TEXT_1118); |
3539 |
stringBuffer.append(_feature.getGetAccessor()); |
4667 |
stringBuffer.append(_feature.getGetAccessor()); |
3540 |
stringBuffer.append(TEXT_851); |
4668 |
stringBuffer.append(TEXT_1119); |
3541 |
stringBuffer.append(_exceedsUpperBound); |
4669 |
stringBuffer.append(_exceedsUpperBound); |
3542 |
stringBuffer.append(TEXT_852); |
4670 |
stringBuffer.append(TEXT_1120); |
3543 |
|
4671 |
|
3544 |
} else { |
4672 |
} else { |
3545 |
|
4673 |
|
3546 |
stringBuffer.append(TEXT_853); |
4674 |
stringBuffer.append(TEXT_1121); |
3547 |
stringBuffer.append(_ownerInstance); |
4675 |
stringBuffer.append(_ownerInstance); |
3548 |
stringBuffer.append(TEXT_854); |
4676 |
stringBuffer.append(TEXT_1122); |
3549 |
stringBuffer.append(_feature.getGetAccessor()); |
4677 |
stringBuffer.append(_feature.getGetAccessor()); |
3550 |
stringBuffer.append(TEXT_855); |
4678 |
stringBuffer.append(TEXT_1123); |
3551 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
4679 |
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); |
3552 |
stringBuffer.append(TEXT_856); |
4680 |
stringBuffer.append(TEXT_1124); |
3553 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
4681 |
stringBuffer.append(_feature.getFeatureAccessorName()); |
3554 |
stringBuffer.append(TEXT_857); |
4682 |
stringBuffer.append(TEXT_1125); |
3555 |
stringBuffer.append(_exceedsUpperBound); |
4683 |
stringBuffer.append(_exceedsUpperBound); |
3556 |
stringBuffer.append(TEXT_858); |
4684 |
stringBuffer.append(TEXT_1126); |
3557 |
|
4685 |
|
3558 |
} |
4686 |
} |
3559 |
} |
4687 |
} |
Lines 3561-3630
Link Here
|
3561 |
|
4689 |
|
3562 |
} |
4690 |
} |
3563 |
|
4691 |
|
3564 |
stringBuffer.append(TEXT_859); |
4692 |
stringBuffer.append(TEXT_1127); |
3565 |
stringBuffer.append(importManager.getImportedName(targetFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
4693 |
stringBuffer.append(importManager.getImportedName(targetFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
3566 |
stringBuffer.append(TEXT_860); |
4694 |
stringBuffer.append(TEXT_1128); |
3567 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4695 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3568 |
stringBuffer.append(TEXT_861); |
4696 |
stringBuffer.append(TEXT_1129); |
3569 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
4697 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
3570 |
stringBuffer.append(TEXT_862); |
4698 |
stringBuffer.append(TEXT_1130); |
3571 |
|
4699 |
|
3572 |
} |
4700 |
} |
3573 |
|
4701 |
|
3574 |
stringBuffer.append(TEXT_863); |
4702 |
stringBuffer.append(TEXT_1131); |
3575 |
|
4703 |
|
3576 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
4704 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
3577 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
4705 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
3578 |
|
4706 |
|
3579 |
stringBuffer.append(TEXT_864); |
4707 |
stringBuffer.append(TEXT_1132); |
3580 |
stringBuffer.append(importManager.getImportedName(metaFeature.getEcoreFeature().isMany()? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
4708 |
stringBuffer.append(importManager.getImportedName(metaFeature.getEcoreFeature().isMany()? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
3581 |
stringBuffer.append(TEXT_865); |
4709 |
stringBuffer.append(TEXT_1133); |
3582 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
4710 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
3583 |
stringBuffer.append(TEXT_866); |
4711 |
stringBuffer.append(TEXT_1134); |
3584 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
4712 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
3585 |
stringBuffer.append(TEXT_867); |
4713 |
stringBuffer.append(TEXT_1135); |
3586 |
|
4714 |
|
3587 |
} |
4715 |
} |
3588 |
|
4716 |
|
3589 |
stringBuffer.append(TEXT_868); |
4717 |
stringBuffer.append(TEXT_1136); |
3590 |
stringBuffer.append(TEXT_869); |
4718 |
stringBuffer.append(TEXT_1137); |
3591 |
|
4719 |
|
3592 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
4720 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
3593 |
|
4721 |
|
3594 |
stringBuffer.append(TEXT_870); |
4722 |
stringBuffer.append(TEXT_1138); |
3595 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
4723 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
3596 |
stringBuffer.append(TEXT_871); |
4724 |
stringBuffer.append(TEXT_1139); |
3597 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
4725 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
3598 |
stringBuffer.append(TEXT_872); |
4726 |
stringBuffer.append(TEXT_1140); |
3599 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); |
4727 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); |
3600 |
stringBuffer.append(TEXT_873); |
4728 |
stringBuffer.append(TEXT_1141); |
3601 |
|
4729 |
|
3602 |
} |
4730 |
} |
3603 |
|
4731 |
|
3604 |
stringBuffer.append(TEXT_874); |
4732 |
stringBuffer.append(TEXT_1142); |
3605 |
|
4733 |
|
3606 |
{ |
4734 |
{ |
3607 |
String _source = "source.getElement()"; |
4735 |
String _source = "source.getElement()"; |
3608 |
String _target = "target.getElement()"; |
4736 |
String _target = "target.getElement()"; |
3609 |
|
4737 |
|
3610 |
stringBuffer.append(TEXT_875); |
4738 |
stringBuffer.append(TEXT_1143); |
3611 |
|
4739 |
|
3612 |
if (linkConstraints != null) { |
4740 |
if (linkConstraints != null) { |
3613 |
|
4741 |
|
3614 |
stringBuffer.append(TEXT_876); |
4742 |
stringBuffer.append(TEXT_1144); |
3615 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
4743 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); |
3616 |
stringBuffer.append(TEXT_877); |
4744 |
stringBuffer.append(TEXT_1145); |
3617 |
stringBuffer.append(_source); |
4745 |
stringBuffer.append(_source); |
3618 |
stringBuffer.append(TEXT_878); |
4746 |
stringBuffer.append(TEXT_1146); |
3619 |
stringBuffer.append(_target); |
4747 |
stringBuffer.append(_target); |
3620 |
stringBuffer.append(TEXT_879); |
4748 |
stringBuffer.append(TEXT_1147); |
3621 |
|
4749 |
|
3622 |
} |
4750 |
} |
3623 |
|
4751 |
|
3624 |
|
4752 |
|
3625 |
} //local declarations for linkConstraints.jetinc |
4753 |
} //local declarations for linkConstraints.jetinc |
3626 |
|
4754 |
|
3627 |
stringBuffer.append(TEXT_880); |
4755 |
stringBuffer.append(TEXT_1148); |
3628 |
|
4756 |
|
3629 |
} |
4757 |
} |
3630 |
|
4758 |
|
Lines 3633-3654
Link Here
|
3633 |
if (genNode.getViewmap() instanceof InnerClassViewmap) { |
4761 |
if (genNode.getViewmap() instanceof InnerClassViewmap) { |
3634 |
String classBody = ((InnerClassViewmap) genNode.getViewmap()).getClassBody(); |
4762 |
String classBody = ((InnerClassViewmap) genNode.getViewmap()).getClassBody(); |
3635 |
|
4763 |
|
3636 |
stringBuffer.append(TEXT_881); |
4764 |
stringBuffer.append(TEXT_1149); |
3637 |
stringBuffer.append(classBody); |
4765 |
stringBuffer.append(classBody); |
3638 |
stringBuffer.append(TEXT_882); |
4766 |
stringBuffer.append(TEXT_1150); |
3639 |
|
4767 |
|
3640 |
if (classBody.indexOf("DPtoLP") != -1) { |
4768 |
if (classBody.indexOf("DPtoLP") != -1) { |
3641 |
|
4769 |
|
3642 |
stringBuffer.append(TEXT_883); |
4770 |
stringBuffer.append(TEXT_1151); |
3643 |
|
4771 |
|
3644 |
} |
4772 |
} |
3645 |
|
4773 |
|
3646 |
|
4774 |
|
3647 |
} |
4775 |
} |
3648 |
|
4776 |
|
3649 |
stringBuffer.append(TEXT_884); |
4777 |
stringBuffer.append(TEXT_1152); |
3650 |
importManager.emitSortedImports(); |
4778 |
importManager.emitSortedImports(); |
3651 |
stringBuffer.append(TEXT_885); |
4779 |
stringBuffer.append(TEXT_1153); |
3652 |
return stringBuffer.toString(); |
4780 |
return stringBuffer.toString(); |
3653 |
} |
4781 |
} |
3654 |
} |
4782 |
} |