Lines 41-392
Link Here
|
41 |
protected final String TEXT_20 = ".COMPONENT_ROLE, new "; |
41 |
protected final String TEXT_20 = ".COMPONENT_ROLE, new "; |
42 |
protected final String TEXT_21 = "() {" + NL + "\t\t\tprotected "; |
42 |
protected final String TEXT_21 = "() {" + NL + "\t\t\tprotected "; |
43 |
protected final String TEXT_22 = " createDeleteCommand("; |
43 |
protected final String TEXT_22 = " createDeleteCommand("; |
44 |
protected final String TEXT_23 = " deleteRequest) {" + NL + "\t\t\t\treturn new "; |
44 |
protected final String TEXT_23 = " deleteRequest) {" + NL + "\t\t\t\t"; |
45 |
protected final String TEXT_24 = "() {"; |
45 |
protected final String TEXT_24 = " editingDomain = "; |
46 |
protected final String TEXT_25 = NL + "\t\t\t\t\tprivate final org.eclipse.emf.common.command.Command domainModelRemoveCommand = getDomainModelRemoveCommand();" + NL + "\t\t\t\t\tprivate org.eclipse.emf.common.command.Command getDomainModelRemoveCommand() {" + NL + "\t\t\t\t\t\t"; |
46 |
protected final String TEXT_25 = ".getEditingDomain(getDiagramNode().getDiagram().getElement());" + NL + "\t\t\t\t"; |
47 |
protected final String TEXT_26 = " result = new "; |
47 |
protected final String TEXT_26 = " cc = new "; |
48 |
protected final String TEXT_27 = "();"; |
48 |
protected final String TEXT_27 = "();" + NL + "\t\t\t\tcc.append(getDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append("; |
49 |
protected final String TEXT_28 = NL + "\t\t\t\t\t\tresult.append("; |
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("; |
50 |
protected final String TEXT_29 = ".create(" + NL + "\t\t\t\t\t\t\t"; |
50 |
protected final String TEXT_29 = " editingDomain) {"; |
51 |
protected final String TEXT_30 = ".getEditingDomainFor(getDiagramNode().getDiagram().getElement()), " + NL + "\t\t\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
51 |
protected final String TEXT_30 = NL + "\t\t\t\t"; |
52 |
protected final String TEXT_31 = ".eINSTANCE.get"; |
52 |
protected final String TEXT_31 = " result = new "; |
53 |
protected final String TEXT_32 = "()," + NL + "\t\t\t\t\t\t\tgetDiagramNode().getElement()));"; |
53 |
protected final String TEXT_32 = "();"; |
54 |
protected final String TEXT_33 = NL + "\t\t\t\t\t\tresult.append("; |
54 |
protected final String TEXT_33 = NL + "\t\t\t\tresult.append("; |
55 |
protected final String TEXT_34 = ".create(" + NL + "\t\t\t\t\t\t\t"; |
55 |
protected final String TEXT_34 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
56 |
protected final String TEXT_35 = ".getEditingDomainFor(getDiagramNode().getDiagram().getElement()), " + NL + "\t\t\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
56 |
protected final String TEXT_35 = ".eINSTANCE.get"; |
57 |
protected final String TEXT_36 = ".eINSTANCE.get"; |
57 |
protected final String TEXT_36 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));"; |
58 |
protected final String TEXT_37 = "()," + NL + "\t\t\t\t\t\t\t"; |
58 |
protected final String TEXT_37 = NL + "\t\t\t\tresult.append("; |
59 |
protected final String TEXT_38 = ".UNSET_VALUE));"; |
59 |
protected final String TEXT_38 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
60 |
protected final String TEXT_39 = NL + "\t\t\t\t\t\tresult.append("; |
60 |
protected final String TEXT_39 = ".eINSTANCE.get"; |
61 |
protected final String TEXT_40 = ".create(" + NL + "\t\t\t\t\t\t\t"; |
61 |
protected final String TEXT_40 = "()," + NL + "\t\t\t\t\t"; |
62 |
protected final String TEXT_41 = ".getEditingDomainFor(getDiagramNode().getDiagram().getElement()), " + NL + "\t\t\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
62 |
protected final String TEXT_41 = ".UNSET_VALUE));"; |
63 |
protected final String TEXT_42 = ".eINSTANCE.get"; |
63 |
protected final String TEXT_42 = NL + "\t\t\t\tresult.append("; |
64 |
protected final String TEXT_43 = "()," + NL + "\t\t\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(), "; |
65 |
protected final String TEXT_44 = NL + "\t\t\t\t\t\tresult.append("; |
65 |
protected final String TEXT_44 = ".eINSTANCE.get"; |
66 |
protected final String TEXT_45 = ".create(" + NL + "\t\t\t\t\t\t\t"; |
66 |
protected final String TEXT_45 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));"; |
67 |
protected final String TEXT_46 = ".getEditingDomainFor(getDiagramNode().getDiagram().getElement()), " + NL + "\t\t\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
67 |
protected final String TEXT_46 = NL + "\t\t\t\tresult.append("; |
68 |
protected final String TEXT_47 = ".eINSTANCE.get"; |
68 |
protected final String TEXT_47 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
69 |
protected final String TEXT_48 = "()," + NL + "\t\t\t\t\t\t\t"; |
69 |
protected final String TEXT_48 = ".eINSTANCE.get"; |
70 |
protected final String TEXT_49 = ".UNSET_VALUE));"; |
70 |
protected final String TEXT_49 = "()," + NL + "\t\t\t\t\t"; |
71 |
protected final String TEXT_50 = NL + "\t\t\t\t\t\treturn result;" + NL + "\t\t\t\t\t}"; |
71 |
protected final String TEXT_50 = ".UNSET_VALUE));"; |
72 |
protected final String TEXT_51 = NL + "\t\t\t\t\t\tprivate final org.eclipse.emf.common.command.Command domainModelRemoveCommand = "; |
72 |
protected final String TEXT_51 = NL + "\t\t\t\treturn result;"; |
73 |
protected final String TEXT_52 = ".create(" + NL + "\t\t\t\t\t\t\t"; |
73 |
protected final String TEXT_52 = NL + "\t\t\t\treturn "; |
74 |
protected final String TEXT_53 = ".getEditingDomainFor(getDiagramNode().getDiagram().getElement()), " + NL + "\t\t\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\t\t\tgetDiagramNode().getElement());"; |
76 |
protected final String TEXT_55 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement());"; |
77 |
protected final String TEXT_56 = NL + "\t\t\t\t\t\tprivate final org.eclipse.emf.common.command.Command domainModelRemoveCommand = "; |
77 |
protected final String TEXT_56 = NL + "\t\t\t\treturn "; |
78 |
protected final String TEXT_57 = ".create(" + NL + "\t\t\t\t\t\t\t"; |
78 |
protected final String TEXT_57 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
79 |
protected final String TEXT_58 = ".getEditingDomainFor(getDiagramNode().getDiagram().getElement()), " + NL + "\t\t\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; |
79 |
protected final String TEXT_58 = ".eINSTANCE.get"; |
80 |
protected final String TEXT_59 = ".eINSTANCE.get"; |
80 |
protected final String TEXT_59 = "()," + NL + "\t\t\t\t\t"; |
81 |
protected final String TEXT_60 = "()," + NL + "\t\t\t\t\t\t\t"; |
81 |
protected final String TEXT_60 = ".UNSET_VALUE);"; |
82 |
protected final String TEXT_61 = ".UNSET_VALUE);"; |
82 |
protected final String TEXT_61 = NL + "\t\t\t}" + NL + "\t\t});"; |
83 |
protected final String TEXT_62 = NL + "\t\t\t\t\tprivate final org.eclipse.emf.common.command.Command viewRemoveCommand = "; |
83 |
protected final String TEXT_62 = NL + "\t\tinstallEditPolicy("; |
84 |
protected final String TEXT_63 = ".create(" + NL + "\t\t\t\t\t\t"; |
84 |
protected final String TEXT_63 = ".LAYOUT_ROLE, new "; |
85 |
protected final String TEXT_64 = ".getEditingDomainFor(getDiagramNode().getDiagram()), " + NL + "\t\t\t\t\t\tgetDiagramNode());" + NL + "\t\t\t\t\tpublic boolean canExecute() {" + NL + "\t\t\t\t\t\treturn domainModelRemoveCommand != null && domainModelRemoveCommand.canExecute() && viewRemoveCommand != null && viewRemoveCommand.canExecute();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\t\tdomainModelRemoveCommand.execute();" + NL + "\t\t\t\t\t\tviewRemoveCommand.execute();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic boolean canUndo() {" + NL + "\t\t\t\t\t\treturn domainModelRemoveCommand != null && domainModelRemoveCommand.canUndo() && viewRemoveCommand != null && viewRemoveCommand.canUndo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t\t\tdomainModelRemoveCommand.undo();" + NL + "\t\t\t\t\t\tviewRemoveCommand.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t}" + NL + "\t\t});"; |
85 |
protected final String TEXT_64 = "() {" + NL + "\t\t\tprotected "; |
86 |
protected final String TEXT_65 = NL + "\t\tinstallEditPolicy("; |
86 |
protected final String TEXT_65 = " getCreateCommand("; |
87 |
protected final String TEXT_66 = ".LAYOUT_ROLE, new "; |
87 |
protected final String TEXT_66 = " request) {" + NL + "\t\t\t\treturn "; |
88 |
protected final String TEXT_67 = "() {" + NL + "\t\t\tprotected "; |
88 |
protected final String TEXT_67 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor("; |
89 |
protected final String TEXT_68 = " getCreateCommand("; |
89 |
protected final String TEXT_68 = " rect) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor("; |
90 |
protected final String TEXT_69 = " request) {" + NL + "\t\t\t\treturn "; |
90 |
protected final String TEXT_69 = " point) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
91 |
protected final String TEXT_70 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor("; |
91 |
protected final String TEXT_70 = " createChangeConstraintCommand("; |
92 |
protected final String TEXT_71 = " rect) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor("; |
92 |
protected final String TEXT_71 = " child, Object constraint) {" + NL + "\t\t\t\treturn "; |
93 |
protected final String TEXT_72 = " point) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
93 |
protected final String TEXT_72 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
94 |
protected final String TEXT_73 = " createChangeConstraintCommand("; |
94 |
protected final String TEXT_73 = " createChildEditPolicy("; |
95 |
protected final String TEXT_74 = " child, Object constraint) {" + NL + "\t\t\t\treturn "; |
95 |
protected final String TEXT_74 = " child) {" + NL + "\t\t\t\treturn new "; |
96 |
protected final String TEXT_75 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
96 |
protected final String TEXT_75 = "() {" + NL + "\t\t\t\t\tpublic "; |
97 |
protected final String TEXT_76 = " createChildEditPolicy("; |
97 |
protected final String TEXT_76 = " getTargetEditPart("; |
98 |
protected final String TEXT_77 = " child) {" + NL + "\t\t\t\treturn new "; |
98 |
protected final String TEXT_77 = " request) {" + NL + "\t\t\t\t\t\tif ("; |
99 |
protected final String TEXT_78 = "() {" + NL + "\t\t\t\t\tpublic "; |
99 |
protected final String TEXT_78 = ".REQ_SELECTION.equals(request.getType())) {" + NL + "\t\t\t\t\t\t\treturn "; |
100 |
protected final String TEXT_79 = " getTargetEditPart("; |
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("; |
101 |
protected final String TEXT_80 = " request) {" + NL + "\t\t\t\t\t\tif ("; |
101 |
protected final String TEXT_80 = ".GRAPHICAL_NODE_ROLE, new "; |
102 |
protected final String TEXT_81 = ".REQ_SELECTION.equals(request.getType())) {" + NL + "\t\t\t\t\t\t\treturn "; |
102 |
protected final String TEXT_81 = "() {" + NL + "\t\t\tprotected "; |
103 |
protected final String TEXT_82 = ".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("; |
103 |
protected final String TEXT_82 = " getReconnectTargetCommand("; |
104 |
protected final String TEXT_83 = ".GRAPHICAL_NODE_ROLE, new "; |
104 |
protected final String TEXT_83 = " request) {" + NL + "\t\t\t\t//XXX: reconnect command" + NL + "\t\t\t\treturn "; |
105 |
protected final String TEXT_84 = "() {" + NL + "\t\t\tprotected "; |
105 |
protected final String TEXT_84 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
106 |
protected final String TEXT_85 = " getReconnectTargetCommand("; |
106 |
protected final String TEXT_85 = " getReconnectSourceCommand("; |
107 |
protected final String TEXT_86 = " request) {" + NL + "\t\t\t\t//XXX: reconnect command" + NL + "\t\t\t\treturn "; |
107 |
protected final String TEXT_86 = " request) {" + NL + "\t\t\t\t//XXX: reconnect command" + NL + "\t\t\t\treturn "; |
108 |
protected final String TEXT_87 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
108 |
protected final String TEXT_87 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
109 |
protected final String TEXT_88 = " getReconnectSourceCommand("; |
109 |
protected final String TEXT_88 = " getConnectionCreateCommand("; |
110 |
protected final String TEXT_89 = " request) {" + NL + "\t\t\t\t//XXX: reconnect command" + NL + "\t\t\t\treturn "; |
110 |
protected final String TEXT_89 = " request) {"; |
111 |
protected final String TEXT_90 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
111 |
protected final String TEXT_90 = NL + "\t\t\t\tif (request instanceof "; |
112 |
protected final String TEXT_91 = " getConnectionCreateCommand("; |
112 |
protected final String TEXT_91 = ".CreateConnectionRequestEx) {" + NL + "\t\t\t\t\t"; |
113 |
protected final String TEXT_92 = " request) {"; |
113 |
protected final String TEXT_92 = ".CreateConnectionRequestEx requestEx = ("; |
114 |
protected final String TEXT_93 = NL + "\t\t\t\tif (request instanceof "; |
114 |
protected final String TEXT_93 = ".CreateConnectionRequestEx) request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\tint matchingVisualIdsCount = 0;" + 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) {"; |
115 |
protected final String TEXT_94 = ".CreateConnectionRequestEx) {" + NL + "\t\t\t\t\t"; |
115 |
protected final String TEXT_94 = NL + "\t\t\t\t\t\tcase "; |
116 |
protected final String TEXT_95 = ".CreateConnectionRequestEx requestEx = ("; |
116 |
protected final String TEXT_95 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tmatchingVisualIdsCount++;" + NL + "\t\t\t\t\t\t\tbreak;"; |
117 |
protected final String TEXT_96 = ".CreateConnectionRequestEx) request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\tint matchingVisualIdsCount = 0;" + 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) {"; |
117 |
protected final String TEXT_96 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (matchingVisualIdsCount != 1) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\treturn "; |
118 |
protected final String TEXT_97 = NL + "\t\t\t\t\t\tcase "; |
118 |
protected final String TEXT_97 = ".INSTANCE;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t"; |
119 |
protected final String TEXT_98 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tmatchingVisualIdsCount++;" + NL + "\t\t\t\t\t\t\tbreak;"; |
119 |
protected final String TEXT_98 = " result = new "; |
120 |
protected final String TEXT_99 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (matchingVisualIdsCount != 1) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\treturn "; |
120 |
protected final String TEXT_99 = "() {" + NL + "\t\t\t\t\t\t//XXX: check multiplicity requirements etc." + NL + "\t\t\t\t\t};" + NL + "\t\t\t\t\trequest.setStartCommand(result);" + NL + "\t\t\t\t\treturn result;" + NL + "\t\t\t\t}"; |
121 |
protected final String TEXT_100 = ".INSTANCE;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t"; |
121 |
protected final String TEXT_100 = NL + "\t\t\t\treturn "; |
122 |
protected final String TEXT_101 = " result = new "; |
122 |
protected final String TEXT_101 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
123 |
protected final String TEXT_102 = "() {" + NL + "\t\t\t\t\t\t//XXX: check multiplicity requirements etc." + NL + "\t\t\t\t\t};" + NL + "\t\t\t\t\trequest.setStartCommand(result);" + NL + "\t\t\t\t\treturn result;" + NL + "\t\t\t\t}"; |
123 |
protected final String TEXT_102 = " getConnectionCompleteCommand("; |
124 |
protected final String TEXT_103 = NL + "\t\t\t\treturn "; |
124 |
protected final String TEXT_103 = " request) {"; |
125 |
protected final String TEXT_104 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; |
125 |
protected final String TEXT_104 = NL + "\t\t\t\tif (request.getStartCommand() == null || !request.getStartCommand().canExecute()) {" + NL + "\t\t\t\t\treturn "; |
126 |
protected final String TEXT_105 = " getConnectionCompleteCommand("; |
126 |
protected final String TEXT_105 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tif (request instanceof "; |
127 |
protected final String TEXT_106 = " request) {"; |
127 |
protected final String TEXT_106 = ".CreateConnectionRequestEx) {" + NL + "\t\t\t\t\t"; |
128 |
protected final String TEXT_107 = NL + "\t\t\t\tif (request.getStartCommand() == null || !request.getStartCommand().canExecute()) {" + NL + "\t\t\t\t\treturn "; |
128 |
protected final String TEXT_107 = ".CreateConnectionRequestEx requestEx = ("; |
129 |
protected final String TEXT_108 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tif (request instanceof "; |
129 |
protected final String TEXT_108 = ".CreateConnectionRequestEx) request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; |
130 |
protected final String TEXT_109 = ".CreateConnectionRequestEx) {" + NL + "\t\t\t\t\t"; |
130 |
protected final String TEXT_109 = " result = new "; |
131 |
protected final String TEXT_110 = ".CreateConnectionRequestEx requestEx = ("; |
131 |
protected final String TEXT_110 = "();" + 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) {"; |
132 |
protected final String TEXT_111 = ".CreateConnectionRequestEx) request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; |
132 |
protected final String TEXT_111 = NL + "\t\t\t\t\t\tcase "; |
133 |
protected final String TEXT_112 = " result = new "; |
133 |
protected final String TEXT_112 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new Create"; |
134 |
protected final String TEXT_113 = "();" + 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) {"; |
134 |
protected final String TEXT_113 = "Command(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;"; |
135 |
protected final String TEXT_114 = NL + "\t\t\t\t\t\tcase "; |
135 |
protected final String TEXT_114 = 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 "; |
136 |
protected final String TEXT_115 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.add(new Create"; |
136 |
protected final String TEXT_115 = ".INSTANCE;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new WrappingCommand("; |
137 |
protected final String TEXT_116 = "Command(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;"; |
137 |
protected final String TEXT_116 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t}"; |
138 |
protected final String TEXT_117 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (result.getChildren().length != 1) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\treturn "; |
138 |
protected final String TEXT_117 = NL + "\t\t\t\treturn "; |
139 |
protected final String TEXT_118 = ".INSTANCE;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn result.unwrap();" + NL + "\t\t\t\t}"; |
139 |
protected final String TEXT_118 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
140 |
protected final String TEXT_119 = NL + "\t\t\t\treturn "; |
140 |
protected final String TEXT_119 = " createFigure() {" + NL + "\t\t"; |
141 |
protected final String TEXT_120 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
141 |
protected final String TEXT_120 = " invisibleRectangle = new "; |
142 |
protected final String TEXT_121 = " createFigure() {" + NL + "\t\t"; |
142 |
protected final String TEXT_121 = "();" + NL + "\t\tinvisibleRectangle.setLayoutManager(new "; |
143 |
protected final String TEXT_122 = " invisibleRectangle = new "; |
143 |
protected final String TEXT_122 = "());" + NL + "\t\t"; |
144 |
protected final String TEXT_123 = "();" + NL + "\t\tinvisibleRectangle.setLayoutManager(new "; |
144 |
protected final String TEXT_123 = " shape = createNodeShape();" + NL + "\t\tinvisibleRectangle.add(shape);" + NL + "\t\tcontentPane = setupContentPane(shape);" + NL + "\t\t" + NL + "\t\t"; |
145 |
protected final String TEXT_124 = "());" + NL + "\t\t"; |
145 |
protected final String TEXT_124 = " 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 "; |
146 |
protected final String TEXT_125 = " shape = createNodeShape();" + NL + "\t\tinvisibleRectangle.add(shape);" + NL + "\t\tcontentPane = setupContentPane(shape);" + NL + "\t\t" + NL + "\t\t"; |
146 |
protected final String TEXT_125 = " createNodeShape() {"; |
147 |
protected final String TEXT_126 = " 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 "; |
147 |
protected final String TEXT_126 = NL + "\t\tprimaryShape = new "; |
148 |
protected final String TEXT_127 = " createNodeShape() {"; |
148 |
protected final String TEXT_127 = "()"; |
149 |
protected final String TEXT_128 = NL + "\t\tprimaryShape = new "; |
149 |
protected final String TEXT_128 = " {" + NL + "\t\t\tprotected boolean useLocalCoordinates() {" + NL + "\t\t\t\treturn true;" + NL + "\t\t\t}" + NL + "\t\t}"; |
150 |
protected final String TEXT_129 = "()"; |
150 |
protected final String TEXT_129 = ";"; |
151 |
protected final String TEXT_130 = " {" + NL + "\t\t\tprotected boolean useLocalCoordinates() {" + NL + "\t\t\t\treturn true;" + NL + "\t\t\t}" + NL + "\t\t}"; |
151 |
protected final String TEXT_130 = NL + "\t\tprimaryShape = "; |
152 |
protected final String TEXT_131 = ";"; |
152 |
protected final String TEXT_131 = ";"; |
153 |
protected final String TEXT_132 = NL + "\t\tprimaryShape = "; |
153 |
protected final String TEXT_132 = NL + "\t\t"; |
154 |
protected final String TEXT_133 = ";"; |
154 |
protected final String TEXT_133 = " figure = new "; |
155 |
protected final String TEXT_134 = NL + "\t\t"; |
155 |
protected final String TEXT_134 = "();" + NL + " \t\tfigure.setUseLocalCoordinates("; |
156 |
protected final String TEXT_135 = " figure = new "; |
156 |
protected final String TEXT_135 = ");" + NL + " \t\tprimaryShape = figure;"; |
157 |
protected final String TEXT_136 = "();" + NL + " \t\tfigure.setUseLocalCoordinates("; |
157 |
protected final String TEXT_136 = NL + "\t\treturn primaryShape;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
158 |
protected final String TEXT_137 = ");" + NL + " \t\tprimaryShape = figure;"; |
158 |
protected final String TEXT_137 = " createDecorationPane() {" + NL + "\t\t"; |
159 |
protected final String TEXT_138 = NL + "\t\treturn primaryShape;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
159 |
protected final String TEXT_138 = " view = ("; |
160 |
protected final String TEXT_139 = " createDecorationPane() {" + NL + "\t\t"; |
160 |
protected final String TEXT_139 = ") getModel();" + NL + "\t\t"; |
161 |
protected final String TEXT_140 = " view = ("; |
161 |
protected final String TEXT_140 = " 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"; |
162 |
protected final String TEXT_141 = ") getModel();" + NL + "\t\t"; |
162 |
protected final String TEXT_141 = " decorationPane = new "; |
163 |
protected final String TEXT_142 = " 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"; |
163 |
protected final String TEXT_142 = "();" + NL + "\t\tdecorationPane.setLayoutManager(new "; |
164 |
protected final String TEXT_143 = " decorationPane = new "; |
164 |
protected final String TEXT_143 = "());" + NL + "" + NL + "\t\t"; |
165 |
protected final String TEXT_144 = "();" + NL + "\t\tdecorationPane.setLayoutManager(new "; |
165 |
protected final String TEXT_144 = " imageFigure = new "; |
166 |
protected final String TEXT_145 = "());" + NL + "" + NL + "\t\t"; |
166 |
protected final String TEXT_145 = "("; |
167 |
protected final String TEXT_146 = " imageFigure = new "; |
167 |
protected final String TEXT_146 = ".getInstance().getBundledImage(\"icons/shortcut.gif\"), "; |
168 |
protected final String TEXT_147 = "("; |
168 |
protected final String TEXT_147 = ".EAST);" + NL + "\t\tdecorationPane.add(imageFigure, "; |
169 |
protected final String TEXT_148 = ".getInstance().getBundledImage(\"icons/shortcut.gif\"), "; |
169 |
protected final String TEXT_148 = ".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 "; |
170 |
protected final String TEXT_149 = ".EAST);" + NL + "\t\tdecorationPane.add(imageFigure, "; |
170 |
protected final String TEXT_149 = " setupContentPane("; |
171 |
protected final String TEXT_150 = ".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 "; |
171 |
protected final String TEXT_150 = " nodeShape) {" + NL + "\t\tif (nodeShape.getLayoutManager() == null) {"; |
172 |
protected final String TEXT_151 = " setupContentPane("; |
172 |
protected final String TEXT_151 = NL + "\t\t\t"; |
173 |
protected final String TEXT_152 = " nodeShape) {" + NL + "\t\tif (nodeShape.getLayoutManager() == null) {"; |
173 |
protected final String TEXT_152 = " layout = new "; |
174 |
protected final String TEXT_153 = NL + "\t\t\t"; |
174 |
protected final String TEXT_153 = "();" + NL + "\t\t\tlayout.setSpacing(5);" + NL + "\t\t\tnodeShape.setLayoutManager(layout);"; |
175 |
protected final String TEXT_154 = " layout = new "; |
175 |
protected final String TEXT_154 = NL + "\t\tnodeShape.setLayoutManager(new "; |
176 |
protected final String TEXT_155 = "();" + NL + "\t\t\tlayout.setSpacing(5);" + NL + "\t\t\tnodeShape.setLayoutManager(layout);"; |
176 |
protected final String TEXT_155 = "() {" + NL + "" + NL + "\t\t\tpublic Object getConstraint("; |
177 |
protected final String TEXT_156 = NL + "\t\tnodeShape.setLayoutManager(new "; |
177 |
protected final String TEXT_156 = " figure) {" + NL + "\t\t\t\tObject result = constraints.get(figure);" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\tresult = new "; |
178 |
protected final String TEXT_157 = "() {" + NL + "" + NL + "\t\t\tpublic Object getConstraint("; |
178 |
protected final String TEXT_157 = "(0, 0, -1, -1);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn result;" + NL + "\t\t\t}" + NL + "\t\t});"; |
179 |
protected final String TEXT_158 = " figure) {" + NL + "\t\t\t\tObject result = constraints.get(figure);" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\tresult = new "; |
179 |
protected final String TEXT_158 = NL + "\t\t}" + NL + "\t\treturn nodeShape; // use nodeShape itself as contentPane" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
180 |
protected final String TEXT_159 = "(0, 0, -1, -1);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn result;" + NL + "\t\t\t}" + NL + "\t\t});"; |
180 |
protected final String TEXT_159 = " 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 "; |
181 |
protected final String TEXT_160 = NL + "\t\t}" + NL + "\t\treturn nodeShape; // use nodeShape itself as contentPane" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
181 |
protected final String TEXT_160 = " getDiagramNode() {" + NL + "\t\treturn ("; |
182 |
protected final String TEXT_161 = " 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 "; |
182 |
protected final String TEXT_161 = ") getModel();" + NL + "\t}" + NL; |
183 |
protected final String TEXT_162 = " getDiagramNode() {" + NL + "\t\treturn ("; |
183 |
protected final String TEXT_162 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean addFixedChild("; |
184 |
protected final String TEXT_163 = ") getModel();" + NL + "\t}" + NL; |
184 |
protected final String TEXT_163 = " childEditPart) {"; |
185 |
protected final String TEXT_164 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean addFixedChild("; |
185 |
protected final String TEXT_164 = NL + "\t\tif (childEditPart instanceof "; |
186 |
protected final String TEXT_165 = " childEditPart) {"; |
186 |
protected final String TEXT_165 = ") {"; |
187 |
protected final String TEXT_166 = NL + "\t\tif (childEditPart instanceof "; |
187 |
protected final String TEXT_166 = NL + "\t\t\t(("; |
188 |
protected final String TEXT_167 = ") {"; |
188 |
protected final String TEXT_167 = ") childEditPart).setLabel((("; |
189 |
protected final String TEXT_168 = NL + "\t\t\t(("; |
189 |
protected final String TEXT_168 = ") primaryShape).getFigure"; |
190 |
protected final String TEXT_169 = ") childEditPart).setLabel((("; |
190 |
protected final String TEXT_169 = "());"; |
191 |
protected final String TEXT_170 = ") primaryShape).getFigure"; |
191 |
protected final String TEXT_170 = NL + "\t\t\t(("; |
192 |
protected final String TEXT_171 = "());"; |
192 |
protected final String TEXT_171 = ") childEditPart).setLabel(new "; |
193 |
protected final String TEXT_172 = NL + "\t\t\t(("; |
193 |
protected final String TEXT_172 = "());"; |
194 |
protected final String TEXT_173 = ") childEditPart).setLabel(new "; |
194 |
protected final String TEXT_173 = NL + "\t\t\treturn true;" + NL + "\t\t}"; |
195 |
protected final String TEXT_174 = "());"; |
195 |
protected final String TEXT_174 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns the label which should be direct-edited by default." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
196 |
protected final String TEXT_175 = NL + "\t\t\treturn true;" + NL + "\t\t}"; |
196 |
protected final String TEXT_175 = " getPrimaryLabelEditPart() {" + NL + "\t\tfor("; |
197 |
protected final String TEXT_176 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns the label which should be direct-edited by default." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
197 |
protected final String TEXT_176 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; |
198 |
protected final String TEXT_177 = " getPrimaryLabelEditPart() {" + NL + "\t\tfor("; |
198 |
protected final String TEXT_177 = " nextChild = ("; |
199 |
protected final String TEXT_178 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; |
199 |
protected final String TEXT_178 = ")it.next();" + NL + "\t\t\tif ("; |
200 |
protected final String TEXT_179 = " nextChild = ("; |
200 |
protected final String TEXT_179 = ".getVisualID(nextChild) == "; |
201 |
protected final String TEXT_180 = ")it.next();" + NL + "\t\t\tif ("; |
201 |
protected final String TEXT_180 = ".VISUAL_ID) {" + NL + "\t\t\t\treturn ("; |
202 |
protected final String TEXT_181 = ".getVisualID(nextChild) == "; |
202 |
protected final String TEXT_181 = ") getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest("; |
203 |
protected final String TEXT_182 = ".VISUAL_ID) {" + NL + "\t\t\t\treturn ("; |
203 |
protected final String TEXT_182 = " req) {" + NL + "\t\tif ("; |
204 |
protected final String TEXT_183 = ") getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest("; |
204 |
protected final String TEXT_183 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\t"; |
205 |
protected final String TEXT_184 = " req) {" + NL + "\t\tif ("; |
205 |
protected final String TEXT_184 = " primaryLabel = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabel != null) {" + NL + "\t\t\t\tprimaryLabel.performRequest(req);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL; |
206 |
protected final String TEXT_185 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\t"; |
206 |
protected final String TEXT_185 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void addChildVisual("; |
207 |
protected final String TEXT_186 = " primaryLabel = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabel != null) {" + NL + "\t\t\t\tprimaryLabel.performRequest(req);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL; |
207 |
protected final String TEXT_186 = " childEditPart, int index) {" + NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; |
208 |
protected final String TEXT_187 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void addChildVisual("; |
208 |
protected final String TEXT_187 = " labelFigure = (("; |
209 |
protected final String TEXT_188 = " childEditPart, int index) {" + NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; |
209 |
protected final String TEXT_188 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().add(labelFigure);" + NL + "\t\t} else {"; |
210 |
protected final String TEXT_189 = " labelFigure = (("; |
210 |
protected final String TEXT_189 = NL + "\t\t\tif (!addFixedChild(childEditPart)) {" + NL + "\t\t\t\tsuper.addChildVisual(childEditPart, -1);" + NL + "\t\t\t}"; |
211 |
protected final String TEXT_190 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().add(labelFigure);" + NL + "\t\t} else {"; |
211 |
protected final String TEXT_190 = NL + "\t\t\tsuper.addChildVisual(childEditPart, -1);"; |
212 |
protected final String TEXT_191 = NL + "\t\t\tif (!addFixedChild(childEditPart)) {" + NL + "\t\t\t\tsuper.addChildVisual(childEditPart, -1);" + NL + "\t\t\t}"; |
212 |
protected final String TEXT_191 = NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void removeChildVisual("; |
213 |
protected final String TEXT_192 = NL + "\t\t\tsuper.addChildVisual(childEditPart, -1);"; |
213 |
protected final String TEXT_192 = " childEditPart) {" + NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; |
214 |
protected final String TEXT_193 = NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void removeChildVisual("; |
214 |
protected final String TEXT_193 = " labelFigure = (("; |
215 |
protected final String TEXT_194 = " childEditPart) {" + NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; |
215 |
protected final String TEXT_194 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t} else {" + NL + "\t\t\tsuper.removeChildVisual(childEditPart);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isExternalLabel("; |
216 |
protected final String TEXT_195 = " labelFigure = (("; |
216 |
protected final String TEXT_195 = " childEditPart) {"; |
217 |
protected final String TEXT_196 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t} else {" + NL + "\t\t\tsuper.removeChildVisual(childEditPart);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isExternalLabel("; |
217 |
protected final String TEXT_196 = NL + "\t\tif (childEditPart instanceof "; |
218 |
protected final String TEXT_197 = " childEditPart) {"; |
218 |
protected final String TEXT_197 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}"; |
219 |
protected final String TEXT_198 = NL + "\t\tif (childEditPart instanceof "; |
219 |
protected final String TEXT_198 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
220 |
protected final String TEXT_199 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}"; |
220 |
protected final String TEXT_199 = " getExternalLabelsContainer() {" + NL + "\t\t"; |
221 |
protected final String TEXT_200 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
221 |
protected final String TEXT_200 = " root = ("; |
222 |
protected final String TEXT_201 = " getExternalLabelsContainer() {" + NL + "\t\t"; |
222 |
protected final String TEXT_201 = ") getRoot();" + NL + "\t\treturn root.getLayer("; |
223 |
protected final String TEXT_202 = " root = ("; |
223 |
protected final String TEXT_202 = ".EXTERNAL_NODE_LABELS_LAYER);" + NL + "\t}" + NL; |
224 |
protected final String TEXT_203 = ") getRoot();" + NL + "\t\treturn root.getLayer("; |
224 |
protected final String TEXT_203 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void addChildVisual("; |
225 |
protected final String TEXT_204 = ".EXTERNAL_NODE_LABELS_LAYER);" + NL + "\t}" + NL; |
225 |
protected final String TEXT_204 = " childEditPart, int index) {" + NL + "\t\tif (!addFixedChild(childEditPart)) {" + NL + "\t\t\tsuper.addChildVisual(childEditPart, -1);" + NL + "\t\t}" + NL + "\t}"; |
226 |
protected final String TEXT_205 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void addChildVisual("; |
226 |
protected final String TEXT_205 = 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"; |
227 |
protected final String TEXT_206 = " childEditPart, int index) {" + NL + "\t\tif (!addFixedChild(childEditPart)) {" + NL + "\t\t\tsuper.addChildVisual(childEditPart, -1);" + NL + "\t\t}" + NL + "\t}"; |
227 |
protected final String TEXT_206 = " node = getDiagramNode();" + NL + "\t\tassert node.getLayoutConstraint() instanceof "; |
228 |
protected final String TEXT_207 = 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"; |
228 |
protected final String TEXT_207 = ";" + NL + "\t\t"; |
229 |
protected final String TEXT_208 = " node = getDiagramNode();" + NL + "\t\tassert node.getLayoutConstraint() instanceof "; |
229 |
protected final String TEXT_208 = " bounds = ("; |
230 |
protected final String TEXT_209 = ";" + NL + "\t\t"; |
230 |
protected final String TEXT_209 = ") node.getLayoutConstraint();" + NL + "\t\t(("; |
231 |
protected final String TEXT_210 = " bounds = ("; |
231 |
protected final String TEXT_210 = ") getParent()).setLayoutConstraint(this, getFigure(), " + NL + "\t\t\tnew "; |
232 |
protected final String TEXT_211 = ") node.getLayoutConstraint();" + NL + "\t\t(("; |
232 |
protected final String TEXT_211 = "(bounds.getX(), bounds.getY(), bounds.getWidth(), bounds.getHeight()));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
233 |
protected final String TEXT_212 = ") getParent()).setLayoutConstraint(this, getFigure(), " + NL + "\t\t\tnew "; |
233 |
protected final String TEXT_212 = " getModelChildren() {" + NL + "\t\treturn getDiagramNode().getVisibleChildren();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
234 |
protected final String TEXT_213 = "(bounds.getX(), bounds.getY(), bounds.getWidth(), bounds.getHeight()));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
234 |
protected final String TEXT_213 = " getModelSourceConnections() {" + NL + "\t\treturn getDiagramNode().getSourceEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
235 |
protected final String TEXT_214 = " getModelChildren() {" + NL + "\t\treturn getDiagramNode().getVisibleChildren();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
235 |
protected final String TEXT_214 = " getModelTargetConnections() {" + NL + "\t\treturn getDiagramNode().getTargetEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
236 |
protected final String TEXT_215 = " getModelSourceConnections() {" + NL + "\t\treturn getDiagramNode().getSourceEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
236 |
protected final String TEXT_215 = " getSourceConnectionAnchor("; |
237 |
protected final String TEXT_216 = " getModelTargetConnections() {" + NL + "\t\treturn getDiagramNode().getTargetEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
237 |
protected final String TEXT_216 = " connection) {" + NL + "\t\treturn new "; |
238 |
protected final String TEXT_217 = " getSourceConnectionAnchor("; |
238 |
protected final String TEXT_217 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
239 |
protected final String TEXT_218 = " connection) {" + NL + "\t\treturn new "; |
239 |
protected final String TEXT_218 = " getSourceConnectionAnchor("; |
240 |
protected final String TEXT_219 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
240 |
protected final String TEXT_219 = " request) {" + NL + "\t\treturn new "; |
241 |
protected final String TEXT_220 = " getSourceConnectionAnchor("; |
241 |
protected final String TEXT_220 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
242 |
protected final String TEXT_221 = " request) {" + NL + "\t\treturn new "; |
242 |
protected final String TEXT_221 = " getTargetConnectionAnchor("; |
243 |
protected final String TEXT_222 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
243 |
protected final String TEXT_222 = " connection) {" + NL + "\t\treturn new "; |
244 |
protected final String TEXT_223 = " getTargetConnectionAnchor("; |
244 |
protected final String TEXT_223 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
245 |
protected final String TEXT_224 = " connection) {" + NL + "\t\treturn new "; |
245 |
protected final String TEXT_224 = " getTargetConnectionAnchor("; |
246 |
protected final String TEXT_225 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; |
246 |
protected final String TEXT_225 = " request) {" + NL + "\t\treturn new "; |
247 |
protected final String TEXT_226 = " getTargetConnectionAnchor("; |
247 |
protected final String TEXT_226 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {"; |
248 |
protected final String TEXT_227 = " request) {" + NL + "\t\treturn new "; |
248 |
protected final String TEXT_227 = 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; |
249 |
protected final String TEXT_228 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {"; |
249 |
protected final String TEXT_228 = NL; |
250 |
protected final String TEXT_229 = 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; |
250 |
protected final String TEXT_229 = "\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 "; |
251 |
protected final String TEXT_230 = NL; |
251 |
protected final String TEXT_230 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void notifyChanged("; |
252 |
protected final String TEXT_231 = "\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 "; |
252 |
protected final String TEXT_231 = " 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(("; |
253 |
protected final String TEXT_232 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void notifyChanged("; |
253 |
protected final String TEXT_232 = ") 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; |
254 |
protected final String TEXT_233 = " 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(("; |
254 |
protected final String TEXT_233 = NL; |
255 |
protected final String TEXT_234 = ") 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; |
255 |
protected final String TEXT_234 = "\tpublic void addRefresher("; |
256 |
protected final String TEXT_235 = NL; |
256 |
protected final String TEXT_235 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\tpublic void removeRefresher("; |
257 |
protected final String TEXT_236 = "\tpublic void addRefresher("; |
257 |
protected final String TEXT_236 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\tprivate CompositeRefresher getCompositeRefresher("; |
258 |
protected final String TEXT_237 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\tpublic void removeRefresher("; |
258 |
protected final String TEXT_237 = " 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; |
259 |
protected final String TEXT_238 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\tprivate CompositeRefresher getCompositeRefresher("; |
259 |
protected final String TEXT_238 = NL; |
260 |
protected final String TEXT_239 = " 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; |
260 |
protected final String TEXT_239 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshFont() {" + NL + "\t\t"; |
261 |
protected final String TEXT_240 = NL; |
261 |
protected final String TEXT_240 = " style =" + NL + "\t\t\t("; |
262 |
protected final String TEXT_241 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshFont() {" + NL + "\t\t"; |
262 |
protected final String TEXT_241 = ") "; |
263 |
protected final String TEXT_242 = " style =" + NL + "\t\t\t("; |
263 |
protected final String TEXT_242 = ".getStyle(" + NL + "\t\t\t\t"; |
264 |
protected final String TEXT_243 = ") "; |
264 |
protected final String TEXT_243 = ".eINSTANCE.getFontStyle());" + NL + "\t\t"; |
265 |
protected final String TEXT_244 = ".getStyle(" + NL + "\t\t\t\t"; |
265 |
protected final String TEXT_244 = " 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 = "; |
266 |
protected final String TEXT_245 = ".eINSTANCE.getFontStyle());" + NL + "\t\t"; |
266 |
protected final String TEXT_245 = ".NORMAL;" + NL + "\t\t\tif (style.isBold()) {" + NL + "\t\t\t\tfontStyle |= "; |
267 |
protected final String TEXT_246 = " 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 = "; |
267 |
protected final String TEXT_246 = ".BOLD;" + NL + "\t\t\t}" + NL + "\t\t\tif (style.isItalic()) {" + NL + "\t\t\t\tfontStyle |= "; |
268 |
protected final String TEXT_247 = ".NORMAL;" + NL + "\t\t\tif (style.isBold()) {" + NL + "\t\t\t\tfontStyle |= "; |
268 |
protected final String TEXT_247 = ".ITALIC;" + NL + "\t\t\t}" + NL + "\t\t\t"; |
269 |
protected final String TEXT_248 = ".BOLD;" + NL + "\t\t\t}" + NL + "\t\t\tif (style.isItalic()) {" + NL + "\t\t\t\tfontStyle |= "; |
269 |
protected final String TEXT_248 = " currentFont = getFigure().getFont();" + NL + "\t\t\tif (currentFont != null) {" + NL + "\t\t\t\t"; |
270 |
protected final String TEXT_249 = ".ITALIC;" + NL + "\t\t\t}" + NL + "\t\t\t"; |
270 |
protected final String TEXT_249 = " 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 "; |
271 |
protected final String TEXT_250 = " currentFont = getFigure().getFont();" + NL + "\t\t\tif (currentFont != null) {" + NL + "\t\t\t\t"; |
271 |
protected final String TEXT_250 = "(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}" + NL + "\t}" + 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 "; |
272 |
protected final String TEXT_251 = " 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 "; |
272 |
protected final String TEXT_251 = " createdFont;" + NL; |
273 |
protected final String TEXT_252 = "(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}" + NL + "\t}" + 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 "; |
273 |
protected final String TEXT_252 = NL; |
274 |
protected final String TEXT_253 = " createdFont;" + NL; |
274 |
protected final String TEXT_253 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshForegroundColor() {" + NL + "\t\t"; |
275 |
protected final String TEXT_254 = NL; |
275 |
protected final String TEXT_254 = " style = ("; |
276 |
protected final String TEXT_255 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshForegroundColor() {" + NL + "\t\t"; |
276 |
protected final String TEXT_255 = ") "; |
277 |
protected final String TEXT_256 = " style = ("; |
277 |
protected final String TEXT_256 = ".getStyle("; |
278 |
protected final String TEXT_257 = ") "; |
278 |
protected final String TEXT_257 = ".eINSTANCE.getLineStyle());" + NL + "\t\t"; |
279 |
protected final String TEXT_258 = ".getStyle("; |
279 |
protected final String TEXT_258 = " 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"; |
280 |
protected final String TEXT_259 = ".eINSTANCE.getLineStyle());" + NL + "\t\t"; |
280 |
protected final String TEXT_259 = " 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 "; |
281 |
protected final String TEXT_260 = " 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"; |
281 |
protected final String TEXT_260 = "(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 "; |
282 |
protected final String TEXT_261 = " 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 "; |
282 |
protected final String TEXT_261 = " createdForegroundColor;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBackgroundColor() {" + NL + "\t\t"; |
283 |
protected final String TEXT_262 = "(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 "; |
283 |
protected final String TEXT_262 = " style = ("; |
284 |
protected final String TEXT_263 = " createdForegroundColor;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBackgroundColor() {" + NL + "\t\t"; |
284 |
protected final String TEXT_263 = ") "; |
285 |
protected final String TEXT_264 = " style = ("; |
285 |
protected final String TEXT_264 = ".getStyle("; |
286 |
protected final String TEXT_265 = ") "; |
286 |
protected final String TEXT_265 = ".eINSTANCE.getFillStyle());" + NL + "\t\t"; |
287 |
protected final String TEXT_266 = ".getStyle("; |
287 |
protected final String TEXT_266 = " 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"; |
288 |
protected final String TEXT_267 = ".eINSTANCE.getFillStyle());" + NL + "\t\t"; |
288 |
protected final String TEXT_267 = " 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 "; |
289 |
protected final String TEXT_268 = " 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"; |
289 |
protected final String TEXT_268 = "(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 "; |
290 |
protected final String TEXT_269 = " 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 "; |
290 |
protected final String TEXT_269 = " createdBackgroundColor;" + NL; |
291 |
protected final String TEXT_270 = "(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 "; |
291 |
protected final String TEXT_270 = NL; |
292 |
protected final String TEXT_271 = " createdBackgroundColor;" + NL; |
292 |
protected final String TEXT_271 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
293 |
protected final String TEXT_272 = NL; |
293 |
protected final String TEXT_272 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; |
294 |
protected final String TEXT_273 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
294 |
protected final String TEXT_273 = " feature, "; |
295 |
protected final String TEXT_274 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; |
295 |
protected final String TEXT_274 = " 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 "; |
296 |
protected final String TEXT_275 = " feature, "; |
296 |
protected final String TEXT_275 = "();"; |
297 |
protected final String TEXT_276 = " 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 "; |
297 |
protected final String TEXT_276 = NL; |
298 |
protected final String TEXT_277 = "();"; |
298 |
protected final String TEXT_277 = "\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("; |
299 |
protected final String TEXT_278 = NL; |
299 |
protected final String TEXT_278 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
300 |
protected final String TEXT_279 = "\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("; |
300 |
protected final String TEXT_279 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);"; |
301 |
protected final String TEXT_280 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
301 |
protected final String TEXT_280 = NL; |
302 |
protected final String TEXT_281 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);"; |
302 |
protected final String TEXT_281 = "\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("; |
303 |
protected final String TEXT_282 = NL; |
303 |
protected final String TEXT_282 = ".eINSTANCE.getNode_LayoutConstraint(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
304 |
protected final String TEXT_283 = "\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("; |
304 |
protected final String TEXT_283 = ".eINSTANCE.getSize_Width(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
305 |
protected final String TEXT_284 = ".eINSTANCE.getNode_LayoutConstraint(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
305 |
protected final String TEXT_284 = ".eINSTANCE.getSize_Height(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
306 |
protected final String TEXT_285 = ".eINSTANCE.getSize_Width(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
306 |
protected final String TEXT_285 = ".eINSTANCE.getLocation_X(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
307 |
protected final String TEXT_286 = ".eINSTANCE.getSize_Height(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
307 |
protected final String TEXT_286 = ".eINSTANCE.getLocation_Y(), boundsRefresher);"; |
308 |
protected final String TEXT_287 = ".eINSTANCE.getLocation_X(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
308 |
protected final String TEXT_287 = NL; |
309 |
protected final String TEXT_288 = ".eINSTANCE.getLocation_Y(), boundsRefresher);"; |
309 |
protected final String TEXT_288 = "\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("; |
310 |
protected final String TEXT_289 = NL; |
310 |
protected final String TEXT_289 = ".eINSTANCE.getView_Visible(), visibilityRefresher);"; |
311 |
protected final String TEXT_290 = "\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("; |
311 |
protected final String TEXT_290 = NL; |
312 |
protected final String TEXT_291 = ".eINSTANCE.getView_Visible(), visibilityRefresher);"; |
312 |
protected final String TEXT_291 = "\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("; |
313 |
protected final String TEXT_292 = NL; |
313 |
protected final String TEXT_292 = ".eINSTANCE.getView_SourceEdges(), sourceEdgesRefresher);"; |
314 |
protected final String TEXT_293 = "\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("; |
314 |
protected final String TEXT_293 = NL; |
315 |
protected final String TEXT_294 = ".eINSTANCE.getView_SourceEdges(), sourceEdgesRefresher);"; |
315 |
protected final String TEXT_294 = "\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("; |
316 |
protected final String TEXT_295 = NL; |
316 |
protected final String TEXT_295 = ".eINSTANCE.getView_TargetEdges(), targetEdgesRefresher);"; |
317 |
protected final String TEXT_296 = "\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("; |
317 |
protected final String TEXT_296 = NL; |
318 |
protected final String TEXT_297 = ".eINSTANCE.getView_TargetEdges(), targetEdgesRefresher);"; |
318 |
protected final String TEXT_297 = "\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("; |
319 |
protected final String TEXT_298 = NL; |
319 |
protected final String TEXT_298 = ".eINSTANCE.getFontStyle_FontHeight(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
320 |
protected final String TEXT_299 = "\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("; |
320 |
protected final String TEXT_299 = ".eINSTANCE.getFontStyle_FontName(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
321 |
protected final String TEXT_300 = ".eINSTANCE.getFontStyle_FontHeight(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
321 |
protected final String TEXT_300 = ".eINSTANCE.getFontStyle_Bold(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
322 |
protected final String TEXT_301 = ".eINSTANCE.getFontStyle_FontName(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
322 |
protected final String TEXT_301 = ".eINSTANCE.getFontStyle_Italic(), fontRefresher);" + NL + "\t\t"; |
323 |
protected final String TEXT_302 = ".eINSTANCE.getFontStyle_Bold(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
323 |
protected final String TEXT_302 = NL; |
324 |
protected final String TEXT_303 = ".eINSTANCE.getFontStyle_Italic(), fontRefresher);" + NL + "\t\t"; |
324 |
protected final String TEXT_303 = "\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("; |
325 |
protected final String TEXT_304 = NL; |
325 |
protected final String TEXT_304 = ".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("; |
326 |
protected final String TEXT_305 = "\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("; |
326 |
protected final String TEXT_305 = ".eINSTANCE.getLineStyle_LineColor(), foregroundColorRefresher);" + NL + "\t}" + NL; |
327 |
protected final String TEXT_306 = ".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("; |
327 |
protected final String TEXT_306 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create"; |
328 |
protected final String TEXT_307 = ".eINSTANCE.getLineStyle_LineColor(), foregroundColorRefresher);" + NL + "\t}" + NL; |
328 |
protected final String TEXT_307 = "Command extends "; |
329 |
protected final String TEXT_308 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create"; |
329 |
protected final String TEXT_308 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
330 |
protected final String TEXT_309 = "Command extends "; |
330 |
protected final String TEXT_309 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
331 |
protected final String TEXT_310 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
331 |
protected final String TEXT_310 = " target;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
332 |
protected final String TEXT_311 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
332 |
protected final String TEXT_311 = " 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"; |
333 |
protected final String TEXT_312 = " target;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; |
333 |
protected final String TEXT_312 = "Command("; |
334 |
protected final String TEXT_313 = " 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"; |
334 |
protected final String TEXT_313 = ".CreateConnectionRequestEx requestEx) {" + NL + "\t\t\tif (requestEx.getSourceEditPart().getModel() instanceof "; |
335 |
protected final String TEXT_314 = "Command("; |
335 |
protected final String TEXT_314 = ") {" + NL + "\t\t\t\tsource = ("; |
336 |
protected final String TEXT_315 = ".CreateConnectionRequestEx requestEx) {" + NL + "\t\t\tif (requestEx.getSourceEditPart().getModel() instanceof "; |
336 |
protected final String TEXT_315 = ")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 "; |
337 |
protected final String TEXT_316 = ") {" + NL + "\t\t\t\tsource = ("; |
337 |
protected final String TEXT_316 = ") {" + NL + "\t\t\t\ttarget = ("; |
338 |
protected final String TEXT_317 = ")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 "; |
338 |
protected final String TEXT_317 = ")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 = "; |
339 |
protected final String TEXT_318 = ") {" + NL + "\t\t\t\ttarget = ("; |
339 |
protected final String TEXT_318 = ".INSTANCE;" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedEdge = "; |
340 |
protected final String TEXT_319 = ")requestEx.getTargetEditPart().getModel();" + NL + "\t\t\t} else {" + NL + "\t\t\t\ttarget = null;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedEdge = "; |
340 |
protected final String TEXT_319 = ".eINSTANCE.createEdge();"; |
341 |
protected final String TEXT_320 = ".eINSTANCE.createEdge();"; |
341 |
protected final String TEXT_320 = NL + "\t\t\t"; |
342 |
protected final String TEXT_321 = NL + "\t\t\t"; |
342 |
protected final String TEXT_321 = " createdDomainElement = "; |
343 |
protected final String TEXT_322 = " createdDomainElement = "; |
343 |
protected final String TEXT_322 = ".eINSTANCE.create"; |
344 |
protected final String TEXT_323 = ".eINSTANCE.create"; |
344 |
protected final String TEXT_323 = "();" + NL + "\t\t\tcreatedEdge.setElement(createdDomainElement);" + NL + "\t\t\t"; |
345 |
protected final String TEXT_324 = "();" + NL + "\t\t\tcreatedEdge.setElement(createdDomainElement);" + NL + "\t\t\t"; |
345 |
protected final String TEXT_324 = NL + "\t\t\t"; |
346 |
protected final String TEXT_325 = NL + "\t\t\t"; |
346 |
protected final String TEXT_325 = "."; |
347 |
protected final String TEXT_326 = "."; |
347 |
protected final String TEXT_326 = ".initializeElement(createdDomainElement);"; |
348 |
protected final String TEXT_327 = ".initializeElement(createdDomainElement);"; |
348 |
protected final String TEXT_327 = NL + "\t\t\tcreatedEdge.setElement(target.getElement());\t\t//XXX: is this correct?"; |
349 |
protected final String TEXT_328 = NL + "\t\t\tcreatedEdge.setElement(target.getElement());\t\t//XXX: is this correct?"; |
349 |
protected final String TEXT_328 = NL + "\t\t\t"; |
350 |
protected final String TEXT_329 = NL + "\t\t\t"; |
350 |
protected final String TEXT_329 = ".decorateView(createdEdge);" + NL + "\t\t\t"; |
351 |
protected final String TEXT_330 = ".decorateView(createdEdge);" + NL + "\t\t\t"; |
351 |
protected final String TEXT_330 = " domainModelEditDomain = "; |
352 |
protected final String TEXT_331 = " domainModelEditDomain = "; |
352 |
protected final String TEXT_331 = ".getEditingDomain(source.getDiagram().getElement());"; |
353 |
protected final String TEXT_332 = ".getEditingDomainFor(source.getDiagram().getElement());"; |
353 |
protected final String TEXT_332 = NL + "\t\t\torg.eclipse.emf.common.command.CompoundCommand addLinkEndsCommand = new org.eclipse.emf.common.command.CompoundCommand();"; |
354 |
protected final String TEXT_333 = NL + "\t\t\torg.eclipse.emf.common.command.CompoundCommand addLinkEndsCommand = new org.eclipse.emf.common.command.CompoundCommand();"; |
354 |
protected final String TEXT_333 = NL + "\t\t\t"; |
355 |
protected final String TEXT_334 = NL + "\t\t\t"; |
355 |
protected final String TEXT_334 = " container = getRelationshipContainer(source.getElement(), "; |
356 |
protected final String TEXT_335 = " container = getRelationshipContainer(source.getElement(), "; |
356 |
protected final String TEXT_335 = ".eINSTANCE.get"; |
357 |
protected final String TEXT_336 = ".eINSTANCE.get"; |
357 |
protected final String TEXT_336 = "());" + 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("; |
358 |
protected final String TEXT_337 = "());" + 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("; |
358 |
protected final String TEXT_337 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcontainer, "; |
359 |
protected final String TEXT_338 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcontainer, "; |
359 |
protected final String TEXT_338 = ".eINSTANCE.get"; |
360 |
protected final String TEXT_339 = ".eINSTANCE.get"; |
360 |
protected final String TEXT_339 = "(), createdDomainElement));"; |
361 |
protected final String TEXT_340 = "(), createdDomainElement));"; |
361 |
protected final String TEXT_340 = NL + "\t\t\taddLinkEndsCommand.append("; |
362 |
protected final String TEXT_341 = NL + "\t\t\taddLinkEndsCommand.append("; |
362 |
protected final String TEXT_341 = ".create(domainModelEditDomain," + NL + "\t\t\t\tcontainer, "; |
363 |
protected final String TEXT_342 = ".create(domainModelEditDomain," + NL + "\t\t\t\tcontainer, "; |
363 |
protected final String TEXT_342 = ".eINSTANCE.get"; |
364 |
protected final String TEXT_343 = ".eINSTANCE.get"; |
364 |
protected final String TEXT_343 = "(), createdDomainElement));"; |
365 |
protected final String TEXT_344 = "(), createdDomainElement));"; |
365 |
protected final String TEXT_344 = NL + "\t\t\taddLinkEndsCommand.append("; |
366 |
protected final String TEXT_345 = NL + "\t\t\taddLinkEndsCommand.append("; |
366 |
protected final String TEXT_345 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; |
367 |
protected final String TEXT_346 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; |
367 |
protected final String TEXT_346 = ".eINSTANCE.get"; |
368 |
protected final String TEXT_347 = ".eINSTANCE.get"; |
368 |
protected final String TEXT_347 = "(), source.getElement()));"; |
369 |
protected final String TEXT_348 = "(), source.getElement()));"; |
369 |
protected final String TEXT_348 = NL + "\t\t\taddLinkEndsCommand.append("; |
370 |
protected final String TEXT_349 = NL + "\t\t\taddLinkEndsCommand.append("; |
370 |
protected final String TEXT_349 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; |
371 |
protected final String TEXT_350 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; |
371 |
protected final String TEXT_350 = ".eINSTANCE.get"; |
372 |
protected final String TEXT_351 = ".eINSTANCE.get"; |
372 |
protected final String TEXT_351 = "(), target.getElement()));"; |
373 |
protected final String TEXT_352 = "(), target.getElement()));"; |
373 |
protected final String TEXT_352 = NL + "\t\tdomainModelAddCommand = addLinkEndsCommand;"; |
374 |
protected final String TEXT_353 = NL + "\t\tdomainModelAddCommand = addLinkEndsCommand;"; |
374 |
protected final String TEXT_353 = NL + "\t\t\tdomainModelAddCommand = "; |
375 |
protected final String TEXT_354 = NL + "\t\t\tdomainModelAddCommand = "; |
375 |
protected final String TEXT_354 = ".create(domainModelEditDomain, source.getElement(), " + NL + "\t\t\t\t"; |
376 |
protected final String TEXT_355 = ".create(domainModelEditDomain, source.getElement(), " + NL + "\t\t\t\t"; |
376 |
protected final String TEXT_355 = ".eINSTANCE.get"; |
377 |
protected final String TEXT_356 = ".eINSTANCE.get"; |
377 |
protected final String TEXT_356 = "(), target.getElement());"; |
378 |
protected final String TEXT_357 = "(), target.getElement());"; |
378 |
protected final String TEXT_357 = NL + "\t\t}" + NL; |
379 |
protected final String TEXT_358 = NL + "\t\t}" + NL; |
379 |
protected final String TEXT_358 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the new 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 "; |
380 |
protected final String TEXT_359 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the new 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 "; |
380 |
protected final String TEXT_359 = " getRelationshipContainer("; |
381 |
protected final String TEXT_360 = " getRelationshipContainer("; |
381 |
protected final String TEXT_360 = " element, "; |
382 |
protected final String TEXT_361 = " element, "; |
382 |
protected final String TEXT_361 = " 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}"; |
383 |
protected final String TEXT_362 = " 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}"; |
383 |
protected final String TEXT_362 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn source != null && target != null && createdEdge != null && domainModelAddCommand != null && domainModelAddCommand.canExecute();" + 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}"; |
384 |
protected final String TEXT_363 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn source != null && target != null && createdEdge != null && domainModelAddCommand != null && domainModelAddCommand.canExecute();" + 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}"; |
384 |
protected final String TEXT_363 = NL; |
385 |
protected final String TEXT_364 = NL; |
385 |
protected final String TEXT_364 = NL; |
386 |
protected final String TEXT_365 = NL; |
386 |
protected final String TEXT_365 = 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}"; |
387 |
protected final String TEXT_366 = 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}"; |
387 |
protected final String TEXT_366 = NL + "}"; |
388 |
protected final String TEXT_367 = NL + "}"; |
388 |
protected final String TEXT_367 = NL; |
389 |
protected final String TEXT_368 = NL; |
|
|
390 |
|
389 |
|
391 |
public String generate(Object argument) |
390 |
public String generate(Object argument) |
392 |
{ |
391 |
{ |
Lines 447-454
Link Here
|
447 |
stringBuffer.append(TEXT_22); |
446 |
stringBuffer.append(TEXT_22); |
448 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); |
447 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); |
449 |
stringBuffer.append(TEXT_23); |
448 |
stringBuffer.append(TEXT_23); |
450 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
449 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
451 |
stringBuffer.append(TEXT_24); |
450 |
stringBuffer.append(TEXT_24); |
|
|
451 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
452 |
stringBuffer.append(TEXT_25); |
453 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
454 |
stringBuffer.append(TEXT_26); |
455 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
456 |
stringBuffer.append(TEXT_27); |
457 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
458 |
stringBuffer.append(TEXT_28); |
459 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
460 |
stringBuffer.append(TEXT_29); |
452 |
|
461 |
|
453 |
{ |
462 |
{ |
454 |
TypeModelFacet facet = genNode.getModelFacet(); |
463 |
TypeModelFacet facet = genNode.getModelFacet(); |
Lines 456-533
Link Here
|
456 |
GenFeature containmentFeature = facet.getContainmentMetaFeature(); |
465 |
GenFeature containmentFeature = facet.getContainmentMetaFeature(); |
457 |
if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { |
466 |
if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { |
458 |
|
467 |
|
459 |
stringBuffer.append(TEXT_25); |
468 |
stringBuffer.append(TEXT_30); |
460 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
469 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
461 |
stringBuffer.append(TEXT_26); |
470 |
stringBuffer.append(TEXT_31); |
462 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
471 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
463 |
stringBuffer.append(TEXT_27); |
472 |
stringBuffer.append(TEXT_32); |
464 |
|
473 |
|
465 |
if (containmentFeature.getEcoreFeature().isMany()) { |
474 |
if (containmentFeature.getEcoreFeature().isMany()) { |
466 |
|
475 |
|
467 |
stringBuffer.append(TEXT_28); |
476 |
stringBuffer.append(TEXT_33); |
468 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
477 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
469 |
stringBuffer.append(TEXT_29); |
478 |
stringBuffer.append(TEXT_34); |
470 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain")); |
|
|
471 |
stringBuffer.append(TEXT_30); |
472 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
479 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
473 |
stringBuffer.append(TEXT_31); |
480 |
stringBuffer.append(TEXT_35); |
474 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
481 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
475 |
stringBuffer.append(TEXT_32); |
482 |
stringBuffer.append(TEXT_36); |
476 |
|
483 |
|
477 |
} else { |
484 |
} else { |
478 |
|
485 |
|
479 |
stringBuffer.append(TEXT_33); |
486 |
stringBuffer.append(TEXT_37); |
480 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
487 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
481 |
stringBuffer.append(TEXT_34); |
488 |
stringBuffer.append(TEXT_38); |
482 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain")); |
|
|
483 |
stringBuffer.append(TEXT_35); |
484 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
489 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
485 |
stringBuffer.append(TEXT_36); |
490 |
stringBuffer.append(TEXT_39); |
486 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
491 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
487 |
stringBuffer.append(TEXT_37); |
492 |
stringBuffer.append(TEXT_40); |
488 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
493 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
489 |
stringBuffer.append(TEXT_38); |
494 |
stringBuffer.append(TEXT_41); |
490 |
|
495 |
|
491 |
} |
496 |
} |
492 |
|
497 |
|
493 |
|
498 |
|
494 |
if (childFeature.getEcoreFeature().isMany()) { |
499 |
if (childFeature.getEcoreFeature().isMany()) { |
495 |
|
500 |
|
496 |
stringBuffer.append(TEXT_39); |
501 |
stringBuffer.append(TEXT_42); |
497 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
502 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
498 |
stringBuffer.append(TEXT_40); |
503 |
stringBuffer.append(TEXT_43); |
499 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain")); |
|
|
500 |
stringBuffer.append(TEXT_41); |
501 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
504 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
502 |
stringBuffer.append(TEXT_42); |
505 |
stringBuffer.append(TEXT_44); |
503 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
506 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
504 |
stringBuffer.append(TEXT_43); |
507 |
stringBuffer.append(TEXT_45); |
505 |
|
508 |
|
506 |
} else { |
509 |
} else { |
507 |
|
510 |
|
508 |
stringBuffer.append(TEXT_44); |
|
|
509 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
510 |
stringBuffer.append(TEXT_45); |
511 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain")); |
512 |
stringBuffer.append(TEXT_46); |
511 |
stringBuffer.append(TEXT_46); |
513 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
512 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
514 |
stringBuffer.append(TEXT_47); |
513 |
stringBuffer.append(TEXT_47); |
515 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
514 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
516 |
stringBuffer.append(TEXT_48); |
515 |
stringBuffer.append(TEXT_48); |
517 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
516 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
518 |
stringBuffer.append(TEXT_49); |
517 |
stringBuffer.append(TEXT_49); |
|
|
518 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
519 |
stringBuffer.append(TEXT_50); |
519 |
|
520 |
|
520 |
} |
521 |
} |
521 |
|
522 |
|
522 |
stringBuffer.append(TEXT_50); |
523 |
stringBuffer.append(TEXT_51); |
523 |
|
524 |
|
524 |
} else { |
525 |
} else { |
525 |
if (containmentFeature.getEcoreFeature().isMany()) { |
526 |
if (containmentFeature.getEcoreFeature().isMany()) { |
526 |
|
527 |
|
527 |
stringBuffer.append(TEXT_51); |
|
|
528 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
529 |
stringBuffer.append(TEXT_52); |
528 |
stringBuffer.append(TEXT_52); |
530 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain")); |
529 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
531 |
stringBuffer.append(TEXT_53); |
530 |
stringBuffer.append(TEXT_53); |
532 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
531 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
533 |
stringBuffer.append(TEXT_54); |
532 |
stringBuffer.append(TEXT_54); |
Lines 539-602
Link Here
|
539 |
stringBuffer.append(TEXT_56); |
538 |
stringBuffer.append(TEXT_56); |
540 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
539 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
541 |
stringBuffer.append(TEXT_57); |
540 |
stringBuffer.append(TEXT_57); |
542 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain")); |
|
|
543 |
stringBuffer.append(TEXT_58); |
544 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
541 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
545 |
stringBuffer.append(TEXT_59); |
542 |
stringBuffer.append(TEXT_58); |
546 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
543 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
547 |
stringBuffer.append(TEXT_60); |
544 |
stringBuffer.append(TEXT_59); |
548 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
545 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); |
549 |
stringBuffer.append(TEXT_61); |
546 |
stringBuffer.append(TEXT_60); |
550 |
|
547 |
|
551 |
} |
548 |
} |
552 |
} |
549 |
} |
553 |
|
550 |
|
554 |
stringBuffer.append(TEXT_62); |
551 |
stringBuffer.append(TEXT_61); |
555 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); |
|
|
556 |
stringBuffer.append(TEXT_63); |
557 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain")); |
558 |
stringBuffer.append(TEXT_64); |
559 |
|
552 |
|
560 |
} /*restrict local vars used in component edit policy*/ |
553 |
} /*restrict local vars used in component edit policy*/ |
561 |
|
554 |
|
562 |
stringBuffer.append(TEXT_65); |
555 |
stringBuffer.append(TEXT_62); |
563 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
556 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
564 |
stringBuffer.append(TEXT_66); |
557 |
stringBuffer.append(TEXT_63); |
565 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy")); |
558 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy")); |
566 |
stringBuffer.append(TEXT_67); |
559 |
stringBuffer.append(TEXT_64); |
567 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
560 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
568 |
stringBuffer.append(TEXT_68); |
561 |
stringBuffer.append(TEXT_65); |
569 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateRequest")); |
562 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateRequest")); |
570 |
stringBuffer.append(TEXT_69); |
563 |
stringBuffer.append(TEXT_66); |
571 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
564 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
572 |
stringBuffer.append(TEXT_70); |
565 |
stringBuffer.append(TEXT_67); |
573 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
566 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
574 |
stringBuffer.append(TEXT_71); |
567 |
stringBuffer.append(TEXT_68); |
575 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point")); |
568 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point")); |
576 |
stringBuffer.append(TEXT_72); |
569 |
stringBuffer.append(TEXT_69); |
577 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
570 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
|
|
571 |
stringBuffer.append(TEXT_70); |
572 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
573 |
stringBuffer.append(TEXT_71); |
574 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
575 |
stringBuffer.append(TEXT_72); |
576 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
578 |
stringBuffer.append(TEXT_73); |
577 |
stringBuffer.append(TEXT_73); |
579 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
578 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
580 |
stringBuffer.append(TEXT_74); |
579 |
stringBuffer.append(TEXT_74); |
581 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
580 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy")); |
582 |
stringBuffer.append(TEXT_75); |
581 |
stringBuffer.append(TEXT_75); |
583 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
|
|
584 |
stringBuffer.append(TEXT_76); |
585 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
582 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
|
|
583 |
stringBuffer.append(TEXT_76); |
584 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
586 |
stringBuffer.append(TEXT_77); |
585 |
stringBuffer.append(TEXT_77); |
587 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy")); |
586 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); |
588 |
stringBuffer.append(TEXT_78); |
587 |
stringBuffer.append(TEXT_78); |
589 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
588 |
stringBuffer.append(genNode.getEditPartClassName()); |
590 |
stringBuffer.append(TEXT_79); |
589 |
stringBuffer.append(TEXT_79); |
591 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
590 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
592 |
stringBuffer.append(TEXT_80); |
591 |
stringBuffer.append(TEXT_80); |
593 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); |
592 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy")); |
594 |
stringBuffer.append(TEXT_81); |
593 |
stringBuffer.append(TEXT_81); |
595 |
stringBuffer.append(genNode.getEditPartClassName()); |
594 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
596 |
stringBuffer.append(TEXT_82); |
595 |
stringBuffer.append(TEXT_82); |
597 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); |
596 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); |
598 |
stringBuffer.append(TEXT_83); |
597 |
stringBuffer.append(TEXT_83); |
599 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy")); |
598 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
600 |
stringBuffer.append(TEXT_84); |
599 |
stringBuffer.append(TEXT_84); |
601 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
600 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
602 |
stringBuffer.append(TEXT_85); |
601 |
stringBuffer.append(TEXT_85); |
Lines 606-627
Link Here
|
606 |
stringBuffer.append(TEXT_87); |
605 |
stringBuffer.append(TEXT_87); |
607 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
606 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
608 |
stringBuffer.append(TEXT_88); |
607 |
stringBuffer.append(TEXT_88); |
609 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); |
|
|
610 |
stringBuffer.append(TEXT_89); |
611 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
612 |
stringBuffer.append(TEXT_90); |
613 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
614 |
stringBuffer.append(TEXT_91); |
615 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); |
608 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); |
616 |
stringBuffer.append(TEXT_92); |
609 |
stringBuffer.append(TEXT_89); |
617 |
if (palette != null) { |
610 |
if (palette != null) { |
618 |
stringBuffer.append(TEXT_93); |
611 |
stringBuffer.append(TEXT_90); |
619 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
612 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
620 |
stringBuffer.append(TEXT_94); |
613 |
stringBuffer.append(TEXT_91); |
621 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
614 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
622 |
stringBuffer.append(TEXT_95); |
615 |
stringBuffer.append(TEXT_92); |
623 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
616 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
624 |
stringBuffer.append(TEXT_96); |
617 |
stringBuffer.append(TEXT_93); |
625 |
|
618 |
|
626 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
619 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
627 |
GenLink genLink = (GenLink)it.next(); |
620 |
GenLink genLink = (GenLink)it.next(); |
Lines 644-684
Link Here
|
644 |
continue; |
637 |
continue; |
645 |
} |
638 |
} |
646 |
|
639 |
|
647 |
stringBuffer.append(TEXT_97); |
640 |
stringBuffer.append(TEXT_94); |
648 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
641 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
649 |
stringBuffer.append(TEXT_98); |
642 |
stringBuffer.append(TEXT_95); |
650 |
|
643 |
|
651 |
} |
644 |
} |
652 |
|
645 |
|
653 |
stringBuffer.append(TEXT_99); |
646 |
stringBuffer.append(TEXT_96); |
654 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
647 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
655 |
stringBuffer.append(TEXT_100); |
648 |
stringBuffer.append(TEXT_97); |
656 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
649 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
|
|
650 |
stringBuffer.append(TEXT_98); |
651 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
652 |
stringBuffer.append(TEXT_99); |
653 |
}/*when there's palette*/ |
654 |
stringBuffer.append(TEXT_100); |
655 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
657 |
stringBuffer.append(TEXT_101); |
656 |
stringBuffer.append(TEXT_101); |
658 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
657 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
659 |
stringBuffer.append(TEXT_102); |
658 |
stringBuffer.append(TEXT_102); |
660 |
}/*when there's palette*/ |
659 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); |
661 |
stringBuffer.append(TEXT_103); |
660 |
stringBuffer.append(TEXT_103); |
662 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
661 |
if (palette != null) { |
663 |
stringBuffer.append(TEXT_104); |
662 |
stringBuffer.append(TEXT_104); |
664 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
663 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
665 |
stringBuffer.append(TEXT_105); |
664 |
stringBuffer.append(TEXT_105); |
666 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); |
665 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
667 |
stringBuffer.append(TEXT_106); |
666 |
stringBuffer.append(TEXT_106); |
668 |
if (palette != null) { |
667 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
669 |
stringBuffer.append(TEXT_107); |
668 |
stringBuffer.append(TEXT_107); |
670 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
|
|
671 |
stringBuffer.append(TEXT_108); |
672 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
669 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
|
|
670 |
stringBuffer.append(TEXT_108); |
671 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
673 |
stringBuffer.append(TEXT_109); |
672 |
stringBuffer.append(TEXT_109); |
674 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
673 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); |
675 |
stringBuffer.append(TEXT_110); |
674 |
stringBuffer.append(TEXT_110); |
676 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
|
|
677 |
stringBuffer.append(TEXT_111); |
678 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand")); |
679 |
stringBuffer.append(TEXT_112); |
680 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand")); |
681 |
stringBuffer.append(TEXT_113); |
682 |
|
675 |
|
683 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
676 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
684 |
GenLink genLink = (GenLink)it.next(); |
677 |
GenLink genLink = (GenLink)it.next(); |
Lines 702-737
Link Here
|
702 |
continue; |
695 |
continue; |
703 |
} |
696 |
} |
704 |
|
697 |
|
705 |
stringBuffer.append(TEXT_114); |
698 |
stringBuffer.append(TEXT_111); |
706 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
699 |
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); |
707 |
stringBuffer.append(TEXT_115); |
700 |
stringBuffer.append(TEXT_112); |
708 |
stringBuffer.append(createCommandNameInfix); |
701 |
stringBuffer.append(createCommandNameInfix); |
709 |
stringBuffer.append(genLink.getVisualID()); |
702 |
stringBuffer.append(genLink.getVisualID()); |
710 |
stringBuffer.append(TEXT_116); |
703 |
stringBuffer.append(TEXT_113); |
711 |
|
704 |
|
712 |
} |
705 |
} |
713 |
|
706 |
|
|
|
707 |
stringBuffer.append(TEXT_114); |
708 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
709 |
stringBuffer.append(TEXT_115); |
710 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
711 |
stringBuffer.append(TEXT_116); |
712 |
}/*when there's palette*/ |
714 |
stringBuffer.append(TEXT_117); |
713 |
stringBuffer.append(TEXT_117); |
715 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
714 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
716 |
stringBuffer.append(TEXT_118); |
715 |
stringBuffer.append(TEXT_118); |
717 |
}/*when there's palette*/ |
716 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
718 |
stringBuffer.append(TEXT_119); |
717 |
stringBuffer.append(TEXT_119); |
719 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); |
|
|
720 |
stringBuffer.append(TEXT_120); |
721 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
718 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
|
|
719 |
stringBuffer.append(TEXT_120); |
720 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
722 |
stringBuffer.append(TEXT_121); |
721 |
stringBuffer.append(TEXT_121); |
723 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
722 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.StackLayout")); |
724 |
stringBuffer.append(TEXT_122); |
723 |
stringBuffer.append(TEXT_122); |
725 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
724 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
726 |
stringBuffer.append(TEXT_123); |
725 |
stringBuffer.append(TEXT_123); |
727 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.StackLayout")); |
726 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
728 |
stringBuffer.append(TEXT_124); |
727 |
stringBuffer.append(TEXT_124); |
729 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
728 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
730 |
stringBuffer.append(TEXT_125); |
729 |
stringBuffer.append(TEXT_125); |
731 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
|
|
732 |
stringBuffer.append(TEXT_126); |
733 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
734 |
stringBuffer.append(TEXT_127); |
735 |
|
730 |
|
736 |
String figureQualifiedClassName = null; |
731 |
String figureQualifiedClassName = null; |
737 |
Viewmap viewmap = genNode.getViewmap(); |
732 |
Viewmap viewmap = genNode.getViewmap(); |
Lines 741-822
Link Here
|
741 |
figureQualifiedClassName = "org.eclipse.draw2d.RectangleFigure"; |
736 |
figureQualifiedClassName = "org.eclipse.draw2d.RectangleFigure"; |
742 |
} |
737 |
} |
743 |
|
738 |
|
744 |
stringBuffer.append(TEXT_128); |
739 |
stringBuffer.append(TEXT_126); |
745 |
stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); |
740 |
stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); |
746 |
stringBuffer.append(TEXT_129); |
741 |
stringBuffer.append(TEXT_127); |
747 |
if (useFlowLayout) { |
742 |
if (useFlowLayout) { |
748 |
stringBuffer.append(TEXT_130); |
743 |
stringBuffer.append(TEXT_128); |
749 |
} /* use flow layout*/ |
744 |
} /* use flow layout*/ |
750 |
stringBuffer.append(TEXT_131); |
745 |
stringBuffer.append(TEXT_129); |
751 |
} else if (viewmap instanceof SnippetViewmap) { |
746 |
} else if (viewmap instanceof SnippetViewmap) { |
752 |
stringBuffer.append(TEXT_132); |
747 |
stringBuffer.append(TEXT_130); |
753 |
stringBuffer.append(((SnippetViewmap) viewmap).getBody()); |
748 |
stringBuffer.append(((SnippetViewmap) viewmap).getBody()); |
754 |
stringBuffer.append(TEXT_133); |
749 |
stringBuffer.append(TEXT_131); |
755 |
} else if (viewmap instanceof InnerClassViewmap) { |
750 |
} else if (viewmap instanceof InnerClassViewmap) { |
756 |
figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName(); |
751 |
figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName(); |
757 |
|
752 |
|
758 |
stringBuffer.append(TEXT_134); |
753 |
stringBuffer.append(TEXT_132); |
759 |
stringBuffer.append(figureQualifiedClassName); |
754 |
stringBuffer.append(figureQualifiedClassName); |
760 |
stringBuffer.append(TEXT_135); |
755 |
stringBuffer.append(TEXT_133); |
761 |
stringBuffer.append(figureQualifiedClassName); |
756 |
stringBuffer.append(figureQualifiedClassName); |
762 |
stringBuffer.append(TEXT_136); |
757 |
stringBuffer.append(TEXT_134); |
763 |
stringBuffer.append(useFlowLayout ? "true" : "false"); |
758 |
stringBuffer.append(useFlowLayout ? "true" : "false"); |
764 |
stringBuffer.append(TEXT_137); |
759 |
stringBuffer.append(TEXT_135); |
765 |
} |
760 |
} |
766 |
stringBuffer.append(TEXT_138); |
761 |
stringBuffer.append(TEXT_136); |
767 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
762 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
768 |
stringBuffer.append(TEXT_139); |
763 |
stringBuffer.append(TEXT_137); |
769 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
764 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
770 |
stringBuffer.append(TEXT_140); |
765 |
stringBuffer.append(TEXT_138); |
771 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
766 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
772 |
stringBuffer.append(TEXT_141); |
767 |
stringBuffer.append(TEXT_139); |
773 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); |
768 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); |
774 |
stringBuffer.append(TEXT_142); |
769 |
stringBuffer.append(TEXT_140); |
775 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
770 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
776 |
stringBuffer.append(TEXT_143); |
771 |
stringBuffer.append(TEXT_141); |
777 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
772 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); |
778 |
stringBuffer.append(TEXT_144); |
773 |
stringBuffer.append(TEXT_142); |
779 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); |
774 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); |
780 |
stringBuffer.append(TEXT_145); |
775 |
stringBuffer.append(TEXT_143); |
781 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); |
776 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); |
782 |
stringBuffer.append(TEXT_146); |
777 |
stringBuffer.append(TEXT_144); |
783 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); |
778 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); |
784 |
stringBuffer.append(TEXT_147); |
779 |
stringBuffer.append(TEXT_145); |
785 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); |
780 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); |
786 |
stringBuffer.append(TEXT_148); |
781 |
stringBuffer.append(TEXT_146); |
787 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); |
782 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); |
788 |
stringBuffer.append(TEXT_149); |
783 |
stringBuffer.append(TEXT_147); |
789 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); |
784 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); |
790 |
stringBuffer.append(TEXT_150); |
785 |
stringBuffer.append(TEXT_148); |
791 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
786 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
792 |
stringBuffer.append(TEXT_151); |
787 |
stringBuffer.append(TEXT_149); |
793 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
788 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
794 |
stringBuffer.append(TEXT_152); |
789 |
stringBuffer.append(TEXT_150); |
795 |
|
790 |
|
796 |
if (!useFlowLayout) { |
791 |
if (!useFlowLayout) { |
797 |
String layoutClassName = importManager.getImportedName("org.eclipse.draw2d.ToolbarLayout"); |
792 |
String layoutClassName = importManager.getImportedName("org.eclipse.draw2d.ToolbarLayout"); |
798 |
|
793 |
|
799 |
stringBuffer.append(TEXT_153); |
794 |
stringBuffer.append(TEXT_151); |
800 |
stringBuffer.append(layoutClassName); |
795 |
stringBuffer.append(layoutClassName); |
801 |
stringBuffer.append(TEXT_154); |
796 |
stringBuffer.append(TEXT_152); |
802 |
stringBuffer.append(layoutClassName); |
797 |
stringBuffer.append(layoutClassName); |
803 |
stringBuffer.append(TEXT_155); |
798 |
stringBuffer.append(TEXT_153); |
804 |
} else { |
799 |
} else { |
805 |
stringBuffer.append(TEXT_156); |
800 |
stringBuffer.append(TEXT_154); |
806 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout")); |
801 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout")); |
807 |
stringBuffer.append(TEXT_157); |
802 |
stringBuffer.append(TEXT_155); |
808 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
803 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
809 |
stringBuffer.append(TEXT_158); |
804 |
stringBuffer.append(TEXT_156); |
810 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
805 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
811 |
stringBuffer.append(TEXT_159); |
806 |
stringBuffer.append(TEXT_157); |
812 |
} |
807 |
} |
813 |
stringBuffer.append(TEXT_160); |
808 |
stringBuffer.append(TEXT_158); |
814 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
809 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
815 |
stringBuffer.append(TEXT_161); |
810 |
stringBuffer.append(TEXT_159); |
816 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
811 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
817 |
stringBuffer.append(TEXT_162); |
812 |
stringBuffer.append(TEXT_160); |
818 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
813 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
819 |
stringBuffer.append(TEXT_163); |
814 |
stringBuffer.append(TEXT_161); |
820 |
|
815 |
|
821 |
boolean hasFixedChildren = false; |
816 |
boolean hasFixedChildren = false; |
822 |
List innerLabels = new ArrayList(genNode.getLabels().size()); |
817 |
List innerLabels = new ArrayList(genNode.getLabels().size()); |
Lines 829-837
Link Here
|
829 |
if (!innerLabels.isEmpty()) { |
824 |
if (!innerLabels.isEmpty()) { |
830 |
hasFixedChildren = true; |
825 |
hasFixedChildren = true; |
831 |
|
826 |
|
832 |
stringBuffer.append(TEXT_164); |
827 |
stringBuffer.append(TEXT_162); |
833 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
828 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
834 |
stringBuffer.append(TEXT_165); |
829 |
stringBuffer.append(TEXT_163); |
835 |
|
830 |
|
836 |
for (Iterator it = innerLabels.iterator(); it.hasNext(); ) { |
831 |
for (Iterator it = innerLabels.iterator(); it.hasNext(); ) { |
837 |
GenNodeLabel genLabel = (GenNodeLabel) it.next(); |
832 |
GenNodeLabel genLabel = (GenNodeLabel) it.next(); |
Lines 850-896
Link Here
|
850 |
isAccessor = false; |
845 |
isAccessor = false; |
851 |
} |
846 |
} |
852 |
|
847 |
|
853 |
stringBuffer.append(TEXT_166); |
848 |
stringBuffer.append(TEXT_164); |
854 |
stringBuffer.append(labelEditPart); |
849 |
stringBuffer.append(labelEditPart); |
855 |
stringBuffer.append(TEXT_167); |
850 |
stringBuffer.append(TEXT_165); |
856 |
if (isAccessor) { |
851 |
if (isAccessor) { |
857 |
stringBuffer.append(TEXT_168); |
852 |
stringBuffer.append(TEXT_166); |
858 |
stringBuffer.append(labelEditPart); |
853 |
stringBuffer.append(labelEditPart); |
859 |
stringBuffer.append(TEXT_169); |
854 |
stringBuffer.append(TEXT_167); |
860 |
stringBuffer.append(figureQualifiedClassName); |
855 |
stringBuffer.append(figureQualifiedClassName); |
861 |
stringBuffer.append(TEXT_170); |
856 |
stringBuffer.append(TEXT_168); |
862 |
stringBuffer.append(labelFigureClassName); |
857 |
stringBuffer.append(labelFigureClassName); |
863 |
stringBuffer.append(TEXT_171); |
858 |
stringBuffer.append(TEXT_169); |
864 |
} else { |
859 |
} else { |
865 |
stringBuffer.append(TEXT_172); |
860 |
stringBuffer.append(TEXT_170); |
866 |
stringBuffer.append(labelEditPart); |
861 |
stringBuffer.append(labelEditPart); |
867 |
stringBuffer.append(TEXT_173); |
862 |
stringBuffer.append(TEXT_171); |
868 |
stringBuffer.append(labelFigureClassName); |
863 |
stringBuffer.append(labelFigureClassName); |
869 |
stringBuffer.append(TEXT_174); |
864 |
stringBuffer.append(TEXT_172); |
870 |
} |
865 |
} |
871 |
stringBuffer.append(TEXT_175); |
866 |
stringBuffer.append(TEXT_173); |
872 |
} |
867 |
} |
873 |
stringBuffer.append(TEXT_176); |
868 |
stringBuffer.append(TEXT_174); |
874 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
869 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
875 |
stringBuffer.append(TEXT_177); |
870 |
stringBuffer.append(TEXT_175); |
876 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
871 |
stringBuffer.append(importManager.getImportedName("java.util.Iterator")); |
877 |
stringBuffer.append(TEXT_178); |
872 |
stringBuffer.append(TEXT_176); |
878 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
873 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
879 |
stringBuffer.append(TEXT_179); |
874 |
stringBuffer.append(TEXT_177); |
880 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
875 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
881 |
stringBuffer.append(TEXT_180); |
876 |
stringBuffer.append(TEXT_178); |
882 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
877 |
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); |
883 |
stringBuffer.append(TEXT_181); |
878 |
stringBuffer.append(TEXT_179); |
884 |
stringBuffer.append(importManager.getImportedName(((GenNodeLabel)innerLabels.get(0)).getEditPartQualifiedClassName())); |
879 |
stringBuffer.append(importManager.getImportedName(((GenNodeLabel)innerLabels.get(0)).getEditPartQualifiedClassName())); |
885 |
stringBuffer.append(TEXT_182); |
880 |
stringBuffer.append(TEXT_180); |
886 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
881 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
887 |
stringBuffer.append(TEXT_183); |
882 |
stringBuffer.append(TEXT_181); |
888 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
883 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
889 |
stringBuffer.append(TEXT_184); |
884 |
stringBuffer.append(TEXT_182); |
890 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); |
885 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); |
891 |
stringBuffer.append(TEXT_185); |
886 |
stringBuffer.append(TEXT_183); |
892 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
887 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
893 |
stringBuffer.append(TEXT_186); |
888 |
stringBuffer.append(TEXT_184); |
894 |
|
889 |
|
895 |
} |
890 |
} |
896 |
|
891 |
|
Lines 905-1103
Link Here
|
905 |
} |
900 |
} |
906 |
if (hasExternalLabels) { |
901 |
if (hasExternalLabels) { |
907 |
|
902 |
|
908 |
stringBuffer.append(TEXT_187); |
903 |
stringBuffer.append(TEXT_185); |
909 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
904 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
910 |
stringBuffer.append(TEXT_188); |
905 |
stringBuffer.append(TEXT_186); |
911 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
906 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
912 |
stringBuffer.append(TEXT_189); |
907 |
stringBuffer.append(TEXT_187); |
913 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
908 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
914 |
stringBuffer.append(TEXT_190); |
909 |
stringBuffer.append(TEXT_188); |
915 |
if (hasFixedChildren) { |
910 |
if (hasFixedChildren) { |
916 |
stringBuffer.append(TEXT_191); |
911 |
stringBuffer.append(TEXT_189); |
917 |
} else { |
912 |
} else { |
918 |
stringBuffer.append(TEXT_192); |
913 |
stringBuffer.append(TEXT_190); |
919 |
} |
914 |
} |
920 |
stringBuffer.append(TEXT_193); |
915 |
stringBuffer.append(TEXT_191); |
921 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
916 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
922 |
stringBuffer.append(TEXT_194); |
917 |
stringBuffer.append(TEXT_192); |
923 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
918 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
924 |
stringBuffer.append(TEXT_195); |
919 |
stringBuffer.append(TEXT_193); |
925 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
920 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
926 |
stringBuffer.append(TEXT_196); |
921 |
stringBuffer.append(TEXT_194); |
927 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
922 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
928 |
stringBuffer.append(TEXT_197); |
923 |
stringBuffer.append(TEXT_195); |
929 |
|
924 |
|
930 |
for (Iterator labels = genNode.getLabels().iterator(); labels.hasNext();) { |
925 |
for (Iterator labels = genNode.getLabels().iterator(); labels.hasNext();) { |
931 |
GenNodeLabel label = (GenNodeLabel) labels.next(); |
926 |
GenNodeLabel label = (GenNodeLabel) labels.next(); |
932 |
if (label instanceof GenExternalNodeLabel) { |
927 |
if (label instanceof GenExternalNodeLabel) { |
933 |
|
928 |
|
934 |
stringBuffer.append(TEXT_198); |
929 |
stringBuffer.append(TEXT_196); |
935 |
stringBuffer.append(importManager.getImportedName(label.getEditPartQualifiedClassName())); |
930 |
stringBuffer.append(importManager.getImportedName(label.getEditPartQualifiedClassName())); |
936 |
stringBuffer.append(TEXT_199); |
931 |
stringBuffer.append(TEXT_197); |
937 |
|
932 |
|
938 |
} |
933 |
} |
939 |
} |
934 |
} |
940 |
|
935 |
|
941 |
stringBuffer.append(TEXT_200); |
936 |
stringBuffer.append(TEXT_198); |
942 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
937 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
943 |
stringBuffer.append(TEXT_201); |
938 |
stringBuffer.append(TEXT_199); |
944 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart")); |
939 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart")); |
945 |
stringBuffer.append(TEXT_202); |
940 |
stringBuffer.append(TEXT_200); |
946 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart")); |
941 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart")); |
947 |
stringBuffer.append(TEXT_203); |
942 |
stringBuffer.append(TEXT_201); |
948 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); |
943 |
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); |
949 |
stringBuffer.append(TEXT_204); |
944 |
stringBuffer.append(TEXT_202); |
950 |
|
945 |
|
951 |
} else { |
946 |
} else { |
952 |
if (hasFixedChildren) { |
947 |
if (hasFixedChildren) { |
953 |
stringBuffer.append(TEXT_205); |
948 |
stringBuffer.append(TEXT_203); |
954 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
949 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); |
955 |
stringBuffer.append(TEXT_206); |
950 |
stringBuffer.append(TEXT_204); |
956 |
|
951 |
|
957 |
} |
952 |
} |
958 |
} |
953 |
} |
959 |
|
954 |
|
960 |
stringBuffer.append(TEXT_207); |
955 |
stringBuffer.append(TEXT_205); |
961 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
956 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); |
|
|
957 |
stringBuffer.append(TEXT_206); |
958 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
959 |
stringBuffer.append(TEXT_207); |
960 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
962 |
stringBuffer.append(TEXT_208); |
961 |
stringBuffer.append(TEXT_208); |
963 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
962 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
964 |
stringBuffer.append(TEXT_209); |
963 |
stringBuffer.append(TEXT_209); |
965 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
964 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
966 |
stringBuffer.append(TEXT_210); |
965 |
stringBuffer.append(TEXT_210); |
967 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); |
966 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
968 |
stringBuffer.append(TEXT_211); |
967 |
stringBuffer.append(TEXT_211); |
969 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); |
968 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
970 |
stringBuffer.append(TEXT_212); |
969 |
stringBuffer.append(TEXT_212); |
971 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); |
970 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
972 |
stringBuffer.append(TEXT_213); |
971 |
stringBuffer.append(TEXT_213); |
973 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
972 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
974 |
stringBuffer.append(TEXT_214); |
973 |
stringBuffer.append(TEXT_214); |
975 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
974 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
976 |
stringBuffer.append(TEXT_215); |
975 |
stringBuffer.append(TEXT_215); |
977 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
976 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
978 |
stringBuffer.append(TEXT_216); |
977 |
stringBuffer.append(TEXT_216); |
979 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
978 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
980 |
stringBuffer.append(TEXT_217); |
979 |
stringBuffer.append(TEXT_217); |
981 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
980 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
982 |
stringBuffer.append(TEXT_218); |
981 |
stringBuffer.append(TEXT_218); |
983 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
982 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
984 |
stringBuffer.append(TEXT_219); |
983 |
stringBuffer.append(TEXT_219); |
985 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
984 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
986 |
stringBuffer.append(TEXT_220); |
985 |
stringBuffer.append(TEXT_220); |
987 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
986 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
988 |
stringBuffer.append(TEXT_221); |
987 |
stringBuffer.append(TEXT_221); |
989 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
988 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
990 |
stringBuffer.append(TEXT_222); |
989 |
stringBuffer.append(TEXT_222); |
991 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
990 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
992 |
stringBuffer.append(TEXT_223); |
991 |
stringBuffer.append(TEXT_223); |
993 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); |
992 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
994 |
stringBuffer.append(TEXT_224); |
993 |
stringBuffer.append(TEXT_224); |
995 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
994 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
996 |
stringBuffer.append(TEXT_225); |
995 |
stringBuffer.append(TEXT_225); |
997 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); |
996 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
998 |
stringBuffer.append(TEXT_226); |
997 |
stringBuffer.append(TEXT_226); |
999 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); |
998 |
/*@ include file="adapters/propertySource.javajetinc"*/ |
1000 |
stringBuffer.append(TEXT_227); |
999 |
stringBuffer.append(TEXT_227); |
1001 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); |
|
|
1002 |
stringBuffer.append(TEXT_228); |
1000 |
stringBuffer.append(TEXT_228); |
1003 |
/*@ include file="adapters/propertySource.javajetinc"*/ |
|
|
1004 |
stringBuffer.append(TEXT_229); |
1001 |
stringBuffer.append(TEXT_229); |
|
|
1002 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.impl.AdapterImpl")); |
1005 |
stringBuffer.append(TEXT_230); |
1003 |
stringBuffer.append(TEXT_230); |
|
|
1004 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
1006 |
stringBuffer.append(TEXT_231); |
1005 |
stringBuffer.append(TEXT_231); |
1007 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.impl.AdapterImpl")); |
1006 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
1008 |
stringBuffer.append(TEXT_232); |
1007 |
stringBuffer.append(TEXT_232); |
1009 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
|
|
1010 |
stringBuffer.append(TEXT_233); |
1008 |
stringBuffer.append(TEXT_233); |
1011 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
|
|
1012 |
stringBuffer.append(TEXT_234); |
1009 |
stringBuffer.append(TEXT_234); |
|
|
1010 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
1013 |
stringBuffer.append(TEXT_235); |
1011 |
stringBuffer.append(TEXT_235); |
|
|
1012 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
1014 |
stringBuffer.append(TEXT_236); |
1013 |
stringBuffer.append(TEXT_236); |
1015 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
1014 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
1016 |
stringBuffer.append(TEXT_237); |
1015 |
stringBuffer.append(TEXT_237); |
1017 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
|
|
1018 |
stringBuffer.append(TEXT_238); |
1019 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
1020 |
stringBuffer.append(TEXT_239); |
1021 |
|
1016 |
|
1022 |
final String primaryView = "getDiagramNode()"; |
1017 |
final String primaryView = "getDiagramNode()"; |
1023 |
|
1018 |
|
|
|
1019 |
stringBuffer.append(TEXT_238); |
1020 |
stringBuffer.append(TEXT_239); |
1021 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); |
1024 |
stringBuffer.append(TEXT_240); |
1022 |
stringBuffer.append(TEXT_240); |
1025 |
stringBuffer.append(TEXT_241); |
|
|
1026 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); |
1023 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); |
|
|
1024 |
stringBuffer.append(TEXT_241); |
1025 |
stringBuffer.append(primaryView); |
1027 |
stringBuffer.append(TEXT_242); |
1026 |
stringBuffer.append(TEXT_242); |
1028 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); |
1027 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1029 |
stringBuffer.append(TEXT_243); |
1028 |
stringBuffer.append(TEXT_243); |
1030 |
stringBuffer.append(primaryView); |
1029 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
1031 |
stringBuffer.append(TEXT_244); |
1030 |
stringBuffer.append(TEXT_244); |
1032 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1031 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
1033 |
stringBuffer.append(TEXT_245); |
1032 |
stringBuffer.append(TEXT_245); |
1034 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
1033 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
1035 |
stringBuffer.append(TEXT_246); |
1034 |
stringBuffer.append(TEXT_246); |
1036 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
1035 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
1037 |
stringBuffer.append(TEXT_247); |
1036 |
stringBuffer.append(TEXT_247); |
1038 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
1037 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
1039 |
stringBuffer.append(TEXT_248); |
1038 |
stringBuffer.append(TEXT_248); |
1040 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); |
1039 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); |
1041 |
stringBuffer.append(TEXT_249); |
1040 |
stringBuffer.append(TEXT_249); |
1042 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
1041 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
1043 |
stringBuffer.append(TEXT_250); |
1042 |
stringBuffer.append(TEXT_250); |
1044 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); |
|
|
1045 |
stringBuffer.append(TEXT_251); |
1046 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
1043 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
|
|
1044 |
stringBuffer.append(TEXT_251); |
1047 |
stringBuffer.append(TEXT_252); |
1045 |
stringBuffer.append(TEXT_252); |
1048 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); |
|
|
1049 |
stringBuffer.append(TEXT_253); |
1046 |
stringBuffer.append(TEXT_253); |
|
|
1047 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); |
1050 |
stringBuffer.append(TEXT_254); |
1048 |
stringBuffer.append(TEXT_254); |
1051 |
stringBuffer.append(TEXT_255); |
|
|
1052 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); |
1049 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); |
|
|
1050 |
stringBuffer.append(TEXT_255); |
1051 |
stringBuffer.append(primaryView); |
1053 |
stringBuffer.append(TEXT_256); |
1052 |
stringBuffer.append(TEXT_256); |
1054 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); |
1053 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1055 |
stringBuffer.append(TEXT_257); |
1054 |
stringBuffer.append(TEXT_257); |
1056 |
stringBuffer.append(primaryView); |
1055 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1057 |
stringBuffer.append(TEXT_258); |
1056 |
stringBuffer.append(TEXT_258); |
1058 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1057 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1059 |
stringBuffer.append(TEXT_259); |
1058 |
stringBuffer.append(TEXT_259); |
1060 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1059 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1061 |
stringBuffer.append(TEXT_260); |
1060 |
stringBuffer.append(TEXT_260); |
1062 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1061 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1063 |
stringBuffer.append(TEXT_261); |
1062 |
stringBuffer.append(TEXT_261); |
1064 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1063 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); |
1065 |
stringBuffer.append(TEXT_262); |
1064 |
stringBuffer.append(TEXT_262); |
1066 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
|
|
1067 |
stringBuffer.append(TEXT_263); |
1068 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); |
1065 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); |
|
|
1066 |
stringBuffer.append(TEXT_263); |
1067 |
stringBuffer.append(primaryView); |
1069 |
stringBuffer.append(TEXT_264); |
1068 |
stringBuffer.append(TEXT_264); |
1070 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); |
1069 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1071 |
stringBuffer.append(TEXT_265); |
1070 |
stringBuffer.append(TEXT_265); |
1072 |
stringBuffer.append(primaryView); |
1071 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1073 |
stringBuffer.append(TEXT_266); |
1072 |
stringBuffer.append(TEXT_266); |
1074 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1073 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1075 |
stringBuffer.append(TEXT_267); |
1074 |
stringBuffer.append(TEXT_267); |
1076 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1075 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1077 |
stringBuffer.append(TEXT_268); |
1076 |
stringBuffer.append(TEXT_268); |
1078 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1077 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
1079 |
stringBuffer.append(TEXT_269); |
1078 |
stringBuffer.append(TEXT_269); |
1080 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
|
|
1081 |
stringBuffer.append(TEXT_270); |
1079 |
stringBuffer.append(TEXT_270); |
1082 |
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); |
|
|
1083 |
stringBuffer.append(TEXT_271); |
1080 |
stringBuffer.append(TEXT_271); |
|
|
1081 |
stringBuffer.append(importManager.getImportedName("java.util.HashMap")); |
1084 |
stringBuffer.append(TEXT_272); |
1082 |
stringBuffer.append(TEXT_272); |
|
|
1083 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
1085 |
stringBuffer.append(TEXT_273); |
1084 |
stringBuffer.append(TEXT_273); |
1086 |
stringBuffer.append(importManager.getImportedName("java.util.HashMap")); |
1085 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
1087 |
stringBuffer.append(TEXT_274); |
1086 |
stringBuffer.append(TEXT_274); |
1088 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
1087 |
stringBuffer.append(importManager.getImportedName("java.util.HashMap")); |
1089 |
stringBuffer.append(TEXT_275); |
1088 |
stringBuffer.append(TEXT_275); |
1090 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
|
|
1091 |
stringBuffer.append(TEXT_276); |
1089 |
stringBuffer.append(TEXT_276); |
1092 |
stringBuffer.append(importManager.getImportedName("java.util.HashMap")); |
|
|
1093 |
stringBuffer.append(TEXT_277); |
1090 |
stringBuffer.append(TEXT_277); |
|
|
1091 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1094 |
stringBuffer.append(TEXT_278); |
1092 |
stringBuffer.append(TEXT_278); |
1095 |
stringBuffer.append(TEXT_279); |
|
|
1096 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1093 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
1094 |
stringBuffer.append(TEXT_279); |
1097 |
stringBuffer.append(TEXT_280); |
1095 |
stringBuffer.append(TEXT_280); |
1098 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
1099 |
stringBuffer.append(TEXT_281); |
1096 |
stringBuffer.append(TEXT_281); |
|
|
1097 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1100 |
stringBuffer.append(TEXT_282); |
1098 |
stringBuffer.append(TEXT_282); |
|
|
1099 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1101 |
stringBuffer.append(TEXT_283); |
1100 |
stringBuffer.append(TEXT_283); |
1102 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1101 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1103 |
stringBuffer.append(TEXT_284); |
1102 |
stringBuffer.append(TEXT_284); |
Lines 1105-1142
Link Here
|
1105 |
stringBuffer.append(TEXT_285); |
1104 |
stringBuffer.append(TEXT_285); |
1106 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1105 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1107 |
stringBuffer.append(TEXT_286); |
1106 |
stringBuffer.append(TEXT_286); |
1108 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
1109 |
stringBuffer.append(TEXT_287); |
1107 |
stringBuffer.append(TEXT_287); |
1110 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
1111 |
stringBuffer.append(TEXT_288); |
1108 |
stringBuffer.append(TEXT_288); |
|
|
1109 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1112 |
stringBuffer.append(TEXT_289); |
1110 |
stringBuffer.append(TEXT_289); |
1113 |
stringBuffer.append(TEXT_290); |
1111 |
stringBuffer.append(TEXT_290); |
1114 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
1115 |
stringBuffer.append(TEXT_291); |
1112 |
stringBuffer.append(TEXT_291); |
|
|
1113 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1116 |
stringBuffer.append(TEXT_292); |
1114 |
stringBuffer.append(TEXT_292); |
1117 |
stringBuffer.append(TEXT_293); |
1115 |
stringBuffer.append(TEXT_293); |
1118 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
1119 |
stringBuffer.append(TEXT_294); |
1116 |
stringBuffer.append(TEXT_294); |
|
|
1117 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1120 |
stringBuffer.append(TEXT_295); |
1118 |
stringBuffer.append(TEXT_295); |
1121 |
stringBuffer.append(TEXT_296); |
1119 |
stringBuffer.append(TEXT_296); |
1122 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
1123 |
stringBuffer.append(TEXT_297); |
1120 |
stringBuffer.append(TEXT_297); |
|
|
1121 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1124 |
stringBuffer.append(TEXT_298); |
1122 |
stringBuffer.append(TEXT_298); |
|
|
1123 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1125 |
stringBuffer.append(TEXT_299); |
1124 |
stringBuffer.append(TEXT_299); |
1126 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1125 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1127 |
stringBuffer.append(TEXT_300); |
1126 |
stringBuffer.append(TEXT_300); |
1128 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1127 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1129 |
stringBuffer.append(TEXT_301); |
1128 |
stringBuffer.append(TEXT_301); |
1130 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
1131 |
stringBuffer.append(TEXT_302); |
1129 |
stringBuffer.append(TEXT_302); |
1132 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
1133 |
stringBuffer.append(TEXT_303); |
1130 |
stringBuffer.append(TEXT_303); |
1134 |
stringBuffer.append(TEXT_304); |
|
|
1135 |
stringBuffer.append(TEXT_305); |
1136 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1131 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1137 |
stringBuffer.append(TEXT_306); |
1132 |
stringBuffer.append(TEXT_304); |
1138 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1133 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
1139 |
stringBuffer.append(TEXT_307); |
1134 |
stringBuffer.append(TEXT_305); |
1140 |
/*XXX: probably, this should go to a separate jet-template along with GraphicalNodeEditPolicy*/ |
1135 |
/*XXX: probably, this should go to a separate jet-template along with GraphicalNodeEditPolicy*/ |
1141 |
|
1136 |
|
1142 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
1137 |
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { |
Lines 1162-1230
Link Here
|
1162 |
} |
1157 |
} |
1163 |
|
1158 |
|
1164 |
if (palette != null) { |
1159 |
if (palette != null) { |
1165 |
stringBuffer.append(TEXT_308); |
1160 |
stringBuffer.append(TEXT_306); |
1166 |
stringBuffer.append(createCommandNameInfix); |
1161 |
stringBuffer.append(createCommandNameInfix); |
1167 |
stringBuffer.append(genLink.getVisualID()); |
1162 |
stringBuffer.append(genLink.getVisualID()); |
1168 |
stringBuffer.append(TEXT_309); |
1163 |
stringBuffer.append(TEXT_307); |
1169 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); |
1164 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); |
1170 |
stringBuffer.append(TEXT_310); |
1165 |
stringBuffer.append(TEXT_308); |
1171 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1166 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1172 |
stringBuffer.append(TEXT_311); |
1167 |
stringBuffer.append(TEXT_309); |
1173 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1168 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1174 |
stringBuffer.append(TEXT_312); |
1169 |
stringBuffer.append(TEXT_310); |
1175 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1170 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); |
1176 |
stringBuffer.append(TEXT_313); |
1171 |
stringBuffer.append(TEXT_311); |
1177 |
stringBuffer.append(createCommandNameInfix); |
1172 |
stringBuffer.append(createCommandNameInfix); |
1178 |
stringBuffer.append(genLink.getVisualID()); |
1173 |
stringBuffer.append(genLink.getVisualID()); |
1179 |
stringBuffer.append(TEXT_314); |
1174 |
stringBuffer.append(TEXT_312); |
1180 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
1175 |
stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); |
|
|
1176 |
stringBuffer.append(TEXT_313); |
1177 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1178 |
stringBuffer.append(TEXT_314); |
1179 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1181 |
stringBuffer.append(TEXT_315); |
1180 |
stringBuffer.append(TEXT_315); |
1182 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1181 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1183 |
stringBuffer.append(TEXT_316); |
1182 |
stringBuffer.append(TEXT_316); |
1184 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1183 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1185 |
stringBuffer.append(TEXT_317); |
1184 |
stringBuffer.append(TEXT_317); |
1186 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
1185 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); |
1187 |
stringBuffer.append(TEXT_318); |
1186 |
stringBuffer.append(TEXT_318); |
1188 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); |
|
|
1189 |
stringBuffer.append(TEXT_319); |
1190 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
1187 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); |
1191 |
stringBuffer.append(TEXT_320); |
1188 |
stringBuffer.append(TEXT_319); |
1192 |
|
1189 |
|
1193 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
1190 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
1194 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
1191 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
1195 |
GenClass linkClass = modelFacet.getMetaClass(); |
1192 |
GenClass linkClass = modelFacet.getMetaClass(); |
1196 |
|
1193 |
|
1197 |
stringBuffer.append(TEXT_321); |
1194 |
stringBuffer.append(TEXT_320); |
1198 |
stringBuffer.append(importManager.getImportedName(importManager.getImportedName(linkClass.getQualifiedInterfaceName()))); |
1195 |
stringBuffer.append(importManager.getImportedName(importManager.getImportedName(linkClass.getQualifiedInterfaceName()))); |
1199 |
stringBuffer.append(TEXT_322); |
1196 |
stringBuffer.append(TEXT_321); |
1200 |
stringBuffer.append(importManager.getImportedName(linkClass.getGenPackage().getQualifiedFactoryInterfaceName())); |
1197 |
stringBuffer.append(importManager.getImportedName(linkClass.getGenPackage().getQualifiedFactoryInterfaceName())); |
1201 |
stringBuffer.append(TEXT_323); |
1198 |
stringBuffer.append(TEXT_322); |
1202 |
stringBuffer.append(linkClass.getClassifierAccessorName()); |
1199 |
stringBuffer.append(linkClass.getClassifierAccessorName()); |
1203 |
stringBuffer.append(TEXT_324); |
1200 |
stringBuffer.append(TEXT_323); |
1204 |
/*XXX: Class name DomainElementInitializer should be user-customizable*/ |
1201 |
/*XXX: Class name DomainElementInitializer should be user-customizable*/ |
1205 |
stringBuffer.append(TEXT_325); |
1202 |
stringBuffer.append(TEXT_324); |
1206 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); |
1203 |
stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); |
1207 |
stringBuffer.append(TEXT_326); |
1204 |
stringBuffer.append(TEXT_325); |
1208 |
stringBuffer.append(genLink.getUniqueIdentifier()); |
1205 |
stringBuffer.append(genLink.getUniqueIdentifier()); |
1209 |
stringBuffer.append(TEXT_327); |
1206 |
stringBuffer.append(TEXT_326); |
1210 |
|
1207 |
|
1211 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
1208 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
1212 |
|
1209 |
|
1213 |
stringBuffer.append(TEXT_328); |
1210 |
stringBuffer.append(TEXT_327); |
1214 |
|
1211 |
|
1215 |
} |
1212 |
} |
1216 |
|
1213 |
|
1217 |
stringBuffer.append(TEXT_329); |
1214 |
stringBuffer.append(TEXT_328); |
1218 |
stringBuffer.append(importManager.getImportedName(genLink.getNotationViewFactoryQualifiedClassName())); |
1215 |
stringBuffer.append(importManager.getImportedName(genLink.getNotationViewFactoryQualifiedClassName())); |
|
|
1216 |
stringBuffer.append(TEXT_329); |
1217 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); |
1219 |
stringBuffer.append(TEXT_330); |
1218 |
stringBuffer.append(TEXT_330); |
1220 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.domain.EditingDomain")); |
1219 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); |
1221 |
stringBuffer.append(TEXT_331); |
1220 |
stringBuffer.append(TEXT_331); |
1222 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain")); |
|
|
1223 |
stringBuffer.append(TEXT_332); |
1224 |
|
1221 |
|
1225 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
1222 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
1226 |
|
1223 |
|
1227 |
stringBuffer.append(TEXT_333); |
1224 |
stringBuffer.append(TEXT_332); |
1228 |
|
1225 |
|
1229 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
1226 |
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); |
1230 |
GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); |
1227 |
GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); |
Lines 1251-1335
Link Here
|
1251 |
} |
1248 |
} |
1252 |
} |
1249 |
} |
1253 |
|
1250 |
|
1254 |
stringBuffer.append(TEXT_334); |
1251 |
stringBuffer.append(TEXT_333); |
1255 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
1252 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
1256 |
stringBuffer.append(TEXT_335); |
1253 |
stringBuffer.append(TEXT_334); |
1257 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); |
1254 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); |
1258 |
stringBuffer.append(TEXT_336); |
1255 |
stringBuffer.append(TEXT_335); |
1259 |
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); |
1256 |
stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); |
1260 |
stringBuffer.append(TEXT_337); |
1257 |
stringBuffer.append(TEXT_336); |
1261 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
1258 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
1262 |
stringBuffer.append(TEXT_338); |
1259 |
stringBuffer.append(TEXT_337); |
1263 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1260 |
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1264 |
stringBuffer.append(TEXT_339); |
1261 |
stringBuffer.append(TEXT_338); |
1265 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
1262 |
stringBuffer.append(containmentFeature.getFeatureAccessorName()); |
1266 |
stringBuffer.append(TEXT_340); |
1263 |
stringBuffer.append(TEXT_339); |
1267 |
|
1264 |
|
1268 |
} |
1265 |
} |
1269 |
if (addChild) { |
1266 |
if (addChild) { |
1270 |
|
1267 |
|
1271 |
stringBuffer.append(TEXT_341); |
1268 |
stringBuffer.append(TEXT_340); |
1272 |
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
1269 |
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
1273 |
stringBuffer.append(TEXT_342); |
1270 |
stringBuffer.append(TEXT_341); |
1274 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1271 |
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1275 |
stringBuffer.append(TEXT_343); |
1272 |
stringBuffer.append(TEXT_342); |
1276 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
1273 |
stringBuffer.append(childFeature.getFeatureAccessorName()); |
1277 |
stringBuffer.append(TEXT_344); |
1274 |
stringBuffer.append(TEXT_343); |
1278 |
|
1275 |
|
1279 |
} |
1276 |
} |
1280 |
if (addSource) { |
1277 |
if (addSource) { |
1281 |
|
1278 |
|
1282 |
stringBuffer.append(TEXT_345); |
1279 |
stringBuffer.append(TEXT_344); |
1283 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
1280 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
1284 |
stringBuffer.append(TEXT_346); |
1281 |
stringBuffer.append(TEXT_345); |
1285 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1282 |
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1286 |
stringBuffer.append(TEXT_347); |
1283 |
stringBuffer.append(TEXT_346); |
1287 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
1284 |
stringBuffer.append(sourceFeature.getFeatureAccessorName()); |
1288 |
stringBuffer.append(TEXT_348); |
1285 |
stringBuffer.append(TEXT_347); |
1289 |
|
1286 |
|
1290 |
} |
1287 |
} |
1291 |
if (addTarget) { |
1288 |
if (addTarget) { |
1292 |
|
1289 |
|
1293 |
stringBuffer.append(TEXT_349); |
1290 |
stringBuffer.append(TEXT_348); |
1294 |
stringBuffer.append(importManager.getImportedName(targetFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
1291 |
stringBuffer.append(importManager.getImportedName(targetFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
1295 |
stringBuffer.append(TEXT_350); |
1292 |
stringBuffer.append(TEXT_349); |
1296 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1293 |
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1297 |
stringBuffer.append(TEXT_351); |
1294 |
stringBuffer.append(TEXT_350); |
1298 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
1295 |
stringBuffer.append(targetFeature.getFeatureAccessorName()); |
1299 |
stringBuffer.append(TEXT_352); |
1296 |
stringBuffer.append(TEXT_351); |
1300 |
|
1297 |
|
1301 |
} |
1298 |
} |
1302 |
|
1299 |
|
1303 |
stringBuffer.append(TEXT_353); |
1300 |
stringBuffer.append(TEXT_352); |
1304 |
|
1301 |
|
1305 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
1302 |
} else if (genLink.getModelFacet() instanceof FeatureModelFacet) { |
1306 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
1303 |
GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); |
1307 |
|
1304 |
|
1308 |
stringBuffer.append(TEXT_354); |
1305 |
stringBuffer.append(TEXT_353); |
1309 |
stringBuffer.append(importManager.getImportedName(metaFeature.getEcoreFeature().isMany()? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
1306 |
stringBuffer.append(importManager.getImportedName(metaFeature.getEcoreFeature().isMany()? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); |
1310 |
stringBuffer.append(TEXT_355); |
1307 |
stringBuffer.append(TEXT_354); |
1311 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1308 |
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); |
1312 |
stringBuffer.append(TEXT_356); |
1309 |
stringBuffer.append(TEXT_355); |
1313 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
1310 |
stringBuffer.append(metaFeature.getFeatureAccessorName()); |
1314 |
stringBuffer.append(TEXT_357); |
1311 |
stringBuffer.append(TEXT_356); |
1315 |
|
1312 |
|
1316 |
} |
1313 |
} |
1317 |
|
1314 |
|
1318 |
stringBuffer.append(TEXT_358); |
1315 |
stringBuffer.append(TEXT_357); |
1319 |
|
1316 |
|
1320 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
1317 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
1321 |
|
1318 |
|
|
|
1319 |
stringBuffer.append(TEXT_358); |
1320 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
1322 |
stringBuffer.append(TEXT_359); |
1321 |
stringBuffer.append(TEXT_359); |
1323 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
1322 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
1324 |
stringBuffer.append(TEXT_360); |
1323 |
stringBuffer.append(TEXT_360); |
1325 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); |
|
|
1326 |
stringBuffer.append(TEXT_361); |
1327 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); |
1324 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); |
1328 |
stringBuffer.append(TEXT_362); |
1325 |
stringBuffer.append(TEXT_361); |
1329 |
|
1326 |
|
1330 |
} |
1327 |
} |
1331 |
|
1328 |
|
1332 |
stringBuffer.append(TEXT_363); |
1329 |
stringBuffer.append(TEXT_362); |
1333 |
|
1330 |
|
1334 |
} |
1331 |
} |
1335 |
|
1332 |
|
Lines 1338-1359
Link Here
|
1338 |
if (genNode.getViewmap() instanceof InnerClassViewmap) { |
1335 |
if (genNode.getViewmap() instanceof InnerClassViewmap) { |
1339 |
String classBody = ((InnerClassViewmap) genNode.getViewmap()).getClassBody(); |
1336 |
String classBody = ((InnerClassViewmap) genNode.getViewmap()).getClassBody(); |
1340 |
|
1337 |
|
1341 |
stringBuffer.append(TEXT_364); |
1338 |
stringBuffer.append(TEXT_363); |
1342 |
stringBuffer.append(classBody); |
1339 |
stringBuffer.append(classBody); |
1343 |
stringBuffer.append(TEXT_365); |
1340 |
stringBuffer.append(TEXT_364); |
1344 |
|
1341 |
|
1345 |
if (classBody.indexOf("DPtoLP") != -1) { |
1342 |
if (classBody.indexOf("DPtoLP") != -1) { |
1346 |
|
1343 |
|
1347 |
stringBuffer.append(TEXT_366); |
1344 |
stringBuffer.append(TEXT_365); |
1348 |
|
1345 |
|
1349 |
} |
1346 |
} |
1350 |
|
1347 |
|
1351 |
|
1348 |
|
1352 |
} |
1349 |
} |
1353 |
|
1350 |
|
1354 |
stringBuffer.append(TEXT_367); |
1351 |
stringBuffer.append(TEXT_366); |
1355 |
importManager.emitSortedImports(); |
1352 |
importManager.emitSortedImports(); |
1356 |
stringBuffer.append(TEXT_368); |
1353 |
stringBuffer.append(TEXT_367); |
1357 |
return stringBuffer.toString(); |
1354 |
return stringBuffer.toString(); |
1358 |
} |
1355 |
} |
1359 |
} |
1356 |
} |