Lines 123-176
Link Here
|
123 |
protected final String TEXT_103 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
123 |
protected final String TEXT_103 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; |
124 |
protected final String TEXT_104 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; |
124 |
protected final String TEXT_104 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; |
125 |
protected final String TEXT_105 = " feature, "; |
125 |
protected final String TEXT_105 = " feature, "; |
126 |
protected final String TEXT_106 = " 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 + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tgetDiagramEdge().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {" + NL + "\t\tgetDiagramEdge().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}" + NL; |
126 |
protected final String TEXT_106 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + NL; |
127 |
protected final String TEXT_107 = NL; |
127 |
protected final String TEXT_107 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tgetDiagramEdge().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {" + NL + "\t\tgetDiagramEdge().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}" + NL; |
128 |
protected final String TEXT_108 = "\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 "; |
128 |
protected final String TEXT_108 = NL; |
129 |
protected final String TEXT_109 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void notifyChanged("; |
129 |
protected final String TEXT_109 = "\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 "; |
130 |
protected final String TEXT_110 = " 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(("; |
130 |
protected final String TEXT_110 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void notifyChanged("; |
131 |
protected final String TEXT_111 = ") 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; |
131 |
protected final String TEXT_111 = " 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(("; |
132 |
protected final String TEXT_112 = NL; |
132 |
protected final String TEXT_112 = ") msg.getFeature(), msg);" + NL + "\t\t\tif (refresher != null) {" + NL + "\t\t\t\trefresher.refresh();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}"; |
133 |
protected final String TEXT_113 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher("; |
133 |
protected final String TEXT_113 = NL; |
134 |
protected final String TEXT_114 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeRefresher("; |
134 |
protected final String TEXT_114 = NL; |
135 |
protected final String TEXT_115 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate CompositeRefresher getCompositeRefresher("; |
135 |
protected final String TEXT_115 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher("; |
136 |
protected final String TEXT_116 = " 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 + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new HashMap();"; |
136 |
protected final String TEXT_116 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeRefresher("; |
137 |
protected final String TEXT_117 = NL; |
137 |
protected final String TEXT_117 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate CompositeRefresher getCompositeRefresher("; |
138 |
protected final String TEXT_118 = "\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("; |
138 |
protected final String TEXT_118 = " 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 + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new HashMap();"; |
139 |
protected final String TEXT_119 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
139 |
protected final String TEXT_119 = NL; |
140 |
protected final String TEXT_120 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);"; |
140 |
protected final String TEXT_120 = "\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("; |
141 |
protected final String TEXT_121 = NL; |
141 |
protected final String TEXT_121 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
142 |
protected final String TEXT_122 = "\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("; |
142 |
protected final String TEXT_122 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);"; |
143 |
protected final String TEXT_123 = ".eINSTANCE.getView_Visible(), visibilityRefresher);"; |
143 |
protected final String TEXT_123 = NL; |
144 |
protected final String TEXT_124 = NL; |
144 |
protected final String TEXT_124 = "\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("; |
145 |
protected final String TEXT_125 = "\t\tRefresher bendpointsRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBendpoints();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; |
145 |
protected final String TEXT_125 = ".eINSTANCE.getView_Visible(), visibilityRefresher);"; |
146 |
protected final String TEXT_126 = ".eINSTANCE.getEdge_Bendpoints(), bendpointsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
146 |
protected final String TEXT_126 = NL; |
147 |
protected final String TEXT_127 = ".eINSTANCE.getRelativeBendpoints_Points(), bendpointsRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "//XXX:\t\trefreshBackgroundColor();" + NL + "//XXX:\t\trefreshForegroundColor();" + NL + "//XXX:\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t\trefreshBendpoints();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBendpoints() {" + NL + "\t\t"; |
147 |
protected final String TEXT_127 = "\t\tRefresher bendpointsRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBendpoints();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; |
148 |
protected final String TEXT_128 = " bendpoints = ("; |
148 |
protected final String TEXT_128 = ".eINSTANCE.getEdge_Bendpoints(), bendpointsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; |
149 |
protected final String TEXT_129 = ") getDiagramEdge().getBendpoints();" + NL + "\t\tif (bendpoints == null) {" + NL + "\t\t\tgetConnectionFigure().setRoutingConstraint("; |
149 |
protected final String TEXT_129 = ".eINSTANCE.getRelativeBendpoints_Points(), bendpointsRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "//XXX:\t\trefreshBackgroundColor();" + NL + "//XXX:\t\trefreshForegroundColor();" + NL + "//XXX:\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t\trefreshBendpoints();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBendpoints() {" + NL + "\t\t"; |
150 |
protected final String TEXT_130 = ".EMPTY_LIST);" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; |
150 |
protected final String TEXT_130 = " bendpoints = ("; |
151 |
protected final String TEXT_131 = " modelConstraint = bendpoints.getPoints();" + NL + "\t\t"; |
151 |
protected final String TEXT_131 = ") getDiagramEdge().getBendpoints();" + NL + "\t\tif (bendpoints == null) {" + NL + "\t\t\tgetConnectionFigure().setRoutingConstraint("; |
152 |
protected final String TEXT_132 = " figureConstraint = new "; |
152 |
protected final String TEXT_132 = ".EMPTY_LIST);" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; |
153 |
protected final String TEXT_133 = "();" + NL + "\t\tfor (int i = 0; i < modelConstraint.size(); i++) {" + NL + "\t\t\t"; |
153 |
protected final String TEXT_133 = " modelConstraint = bendpoints.getPoints();" + NL + "\t\t"; |
154 |
protected final String TEXT_134 = " wbp = ("; |
154 |
protected final String TEXT_134 = " figureConstraint = new "; |
155 |
protected final String TEXT_135 = ") modelConstraint.get(i);" + NL + "\t\t\t"; |
155 |
protected final String TEXT_135 = "();" + NL + "\t\tfor (int i = 0; i < modelConstraint.size(); i++) {" + NL + "\t\t\t"; |
156 |
protected final String TEXT_136 = " rbp = new "; |
156 |
protected final String TEXT_136 = " wbp = ("; |
157 |
protected final String TEXT_137 = "(getConnectionFigure());" + NL + "\t\t\trbp.setRelativeDimensions(new "; |
157 |
protected final String TEXT_137 = ") modelConstraint.get(i);" + NL + "\t\t\t"; |
158 |
protected final String TEXT_138 = "(wbp.getSourceX(), wbp.getSourceY()), new "; |
158 |
protected final String TEXT_138 = " rbp = new "; |
159 |
protected final String TEXT_139 = "(wbp.getTargetX(), wbp.getTargetY()));" + NL + "\t\t\trbp.setWeight((i + 1) / ((float) modelConstraint.size() + 1));" + NL + "\t\t\tfigureConstraint.add(rbp);" + NL + "\t\t}" + NL + "\t\tgetConnectionFigure().setRoutingConstraint(figureConstraint);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = ((View)getModel()).isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addNotify() {" + NL + "\t\tsuper.addNotify();" + NL + "\t\tgetConnectionFigure().setConnectionRouter(new "; |
159 |
protected final String TEXT_139 = "(getConnectionFigure());" + NL + "\t\t\trbp.setRelativeDimensions(new "; |
160 |
protected final String TEXT_140 = "());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Creates figure for this edit part." + NL + "\t * " + NL + "\t * Body of this method does not depend on settings in generation model" + NL + "\t * so you may safely remove <i>generated</i> tag and modify it." + NL + "\t * " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
160 |
protected final String TEXT_140 = "(wbp.getSourceX(), wbp.getSourceY()), new "; |
161 |
protected final String TEXT_141 = " createFigure() {"; |
161 |
protected final String TEXT_141 = "(wbp.getTargetX(), wbp.getTargetY()));" + NL + "\t\t\trbp.setWeight((i + 1) / ((float) modelConstraint.size() + 1));" + NL + "\t\t\tfigureConstraint.add(rbp);" + NL + "\t\t}" + NL + "\t\tgetConnectionFigure().setRoutingConstraint(figureConstraint);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = ((View)getModel()).isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addNotify() {" + NL + "\t\tsuper.addNotify();" + NL + "\t\tgetConnectionFigure().setConnectionRouter(new "; |
162 |
protected final String TEXT_142 = NL + "\t\treturn new "; |
162 |
protected final String TEXT_142 = "());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Creates figure for this edit part." + NL + "\t * " + NL + "\t * Body of this method does not depend on settings in generation model" + NL + "\t * so you may safely remove <i>generated</i> tag and modify it." + NL + "\t * " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; |
163 |
protected final String TEXT_143 = "();"; |
163 |
protected final String TEXT_143 = " createFigure() {"; |
164 |
protected final String TEXT_144 = NL + "\t\treturn "; |
164 |
protected final String TEXT_144 = NL + "\t\treturn new "; |
165 |
protected final String TEXT_145 = ";"; |
165 |
protected final String TEXT_145 = "();"; |
166 |
protected final String TEXT_146 = NL + " \t\treturn new "; |
166 |
protected final String TEXT_146 = NL + "\t\treturn "; |
167 |
protected final String TEXT_147 = "();"; |
167 |
protected final String TEXT_147 = ";"; |
168 |
protected final String TEXT_148 = NL + "\t}" + NL; |
168 |
protected final String TEXT_148 = NL + " \t\treturn new "; |
169 |
protected final String TEXT_149 = NL; |
169 |
protected final String TEXT_149 = "();"; |
170 |
protected final String TEXT_150 = NL; |
170 |
protected final String TEXT_150 = NL + "\t}" + NL; |
171 |
protected final String TEXT_151 = 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}"; |
171 |
protected final String TEXT_151 = NL; |
172 |
protected final String TEXT_152 = NL + "}"; |
172 |
protected final String TEXT_152 = NL; |
173 |
protected final String TEXT_153 = NL; |
173 |
protected final String TEXT_153 = 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}"; |
|
|
174 |
protected final String TEXT_154 = NL + "}"; |
175 |
protected final String TEXT_155 = NL; |
174 |
|
176 |
|
175 |
public String generate(Object argument) |
177 |
public String generate(Object argument) |
176 |
{ |
178 |
{ |
Lines 481-546
Link Here
|
481 |
stringBuffer.append(TEXT_105); |
483 |
stringBuffer.append(TEXT_105); |
482 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
484 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
483 |
stringBuffer.append(TEXT_106); |
485 |
stringBuffer.append(TEXT_106); |
|
|
486 |
|
487 |
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { |
488 |
//Otherwise, there's no element associated with the element |
489 |
|
484 |
stringBuffer.append(TEXT_107); |
490 |
stringBuffer.append(TEXT_107); |
485 |
stringBuffer.append(TEXT_108); |
491 |
stringBuffer.append(TEXT_108); |
486 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.impl.AdapterImpl")); |
|
|
487 |
stringBuffer.append(TEXT_109); |
492 |
stringBuffer.append(TEXT_109); |
488 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
493 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.impl.AdapterImpl")); |
489 |
stringBuffer.append(TEXT_110); |
494 |
stringBuffer.append(TEXT_110); |
490 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
495 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); |
491 |
stringBuffer.append(TEXT_111); |
496 |
stringBuffer.append(TEXT_111); |
|
|
497 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
492 |
stringBuffer.append(TEXT_112); |
498 |
stringBuffer.append(TEXT_112); |
|
|
499 |
|
500 |
} |
501 |
|
493 |
stringBuffer.append(TEXT_113); |
502 |
stringBuffer.append(TEXT_113); |
494 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
|
|
495 |
stringBuffer.append(TEXT_114); |
503 |
stringBuffer.append(TEXT_114); |
496 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
|
|
497 |
stringBuffer.append(TEXT_115); |
504 |
stringBuffer.append(TEXT_115); |
498 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
505 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
499 |
stringBuffer.append(TEXT_116); |
506 |
stringBuffer.append(TEXT_116); |
|
|
507 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
500 |
stringBuffer.append(TEXT_117); |
508 |
stringBuffer.append(TEXT_117); |
|
|
509 |
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); |
501 |
stringBuffer.append(TEXT_118); |
510 |
stringBuffer.append(TEXT_118); |
502 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
503 |
stringBuffer.append(TEXT_119); |
511 |
stringBuffer.append(TEXT_119); |
504 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
505 |
stringBuffer.append(TEXT_120); |
512 |
stringBuffer.append(TEXT_120); |
|
|
513 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
506 |
stringBuffer.append(TEXT_121); |
514 |
stringBuffer.append(TEXT_121); |
507 |
stringBuffer.append(TEXT_122); |
|
|
508 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
515 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
516 |
stringBuffer.append(TEXT_122); |
509 |
stringBuffer.append(TEXT_123); |
517 |
stringBuffer.append(TEXT_123); |
510 |
stringBuffer.append(TEXT_124); |
518 |
stringBuffer.append(TEXT_124); |
511 |
stringBuffer.append(TEXT_125); |
|
|
512 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
519 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
520 |
stringBuffer.append(TEXT_125); |
513 |
stringBuffer.append(TEXT_126); |
521 |
stringBuffer.append(TEXT_126); |
514 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
|
|
515 |
stringBuffer.append(TEXT_127); |
522 |
stringBuffer.append(TEXT_127); |
516 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.RelativeBendpoints")); |
523 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
517 |
stringBuffer.append(TEXT_128); |
524 |
stringBuffer.append(TEXT_128); |
518 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.RelativeBendpoints")); |
525 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); |
519 |
stringBuffer.append(TEXT_129); |
526 |
stringBuffer.append(TEXT_129); |
520 |
stringBuffer.append(importManager.getImportedName("java.util.Collections")); |
527 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.RelativeBendpoints")); |
521 |
stringBuffer.append(TEXT_130); |
528 |
stringBuffer.append(TEXT_130); |
522 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
529 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.RelativeBendpoints")); |
523 |
stringBuffer.append(TEXT_131); |
530 |
stringBuffer.append(TEXT_131); |
524 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
531 |
stringBuffer.append(importManager.getImportedName("java.util.Collections")); |
525 |
stringBuffer.append(TEXT_132); |
532 |
stringBuffer.append(TEXT_132); |
526 |
stringBuffer.append(importManager.getImportedName("java.util.ArrayList")); |
533 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
527 |
stringBuffer.append(TEXT_133); |
534 |
stringBuffer.append(TEXT_133); |
528 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint")); |
535 |
stringBuffer.append(importManager.getImportedName("java.util.List")); |
529 |
stringBuffer.append(TEXT_134); |
536 |
stringBuffer.append(TEXT_134); |
530 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint")); |
537 |
stringBuffer.append(importManager.getImportedName("java.util.ArrayList")); |
531 |
stringBuffer.append(TEXT_135); |
538 |
stringBuffer.append(TEXT_135); |
532 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.RelativeBendpoint")); |
539 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint")); |
533 |
stringBuffer.append(TEXT_136); |
540 |
stringBuffer.append(TEXT_136); |
534 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.RelativeBendpoint")); |
541 |
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint")); |
535 |
stringBuffer.append(TEXT_137); |
542 |
stringBuffer.append(TEXT_137); |
536 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); |
543 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.RelativeBendpoint")); |
537 |
stringBuffer.append(TEXT_138); |
544 |
stringBuffer.append(TEXT_138); |
538 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); |
545 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.RelativeBendpoint")); |
539 |
stringBuffer.append(TEXT_139); |
546 |
stringBuffer.append(TEXT_139); |
540 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BendpointConnectionRouter")); |
547 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); |
541 |
stringBuffer.append(TEXT_140); |
548 |
stringBuffer.append(TEXT_140); |
542 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
549 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); |
543 |
stringBuffer.append(TEXT_141); |
550 |
stringBuffer.append(TEXT_141); |
|
|
551 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BendpointConnectionRouter")); |
552 |
stringBuffer.append(TEXT_142); |
553 |
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); |
554 |
stringBuffer.append(TEXT_143); |
544 |
|
555 |
|
545 |
Viewmap viewmap = genLink.getViewmap(); |
556 |
Viewmap viewmap = genLink.getViewmap(); |
546 |
if (viewmap instanceof FigureViewmap) { |
557 |
if (viewmap instanceof FigureViewmap) { |
Lines 550-590
Link Here
|
550 |
figureQualifiedClassName = "org.eclipse.gmf.runtime.draw2d.PolylineConnection"; |
561 |
figureQualifiedClassName = "org.eclipse.gmf.runtime.draw2d.PolylineConnection"; |
551 |
} |
562 |
} |
552 |
|
563 |
|
553 |
stringBuffer.append(TEXT_142); |
564 |
stringBuffer.append(TEXT_144); |
554 |
stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); |
565 |
stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); |
555 |
stringBuffer.append(TEXT_143); |
566 |
stringBuffer.append(TEXT_145); |
556 |
} // instanceof FigureViewmap |
567 |
} // instanceof FigureViewmap |
557 |
else if (viewmap instanceof SnippetViewmap) { |
568 |
else if (viewmap instanceof SnippetViewmap) { |
558 |
stringBuffer.append(TEXT_144); |
569 |
stringBuffer.append(TEXT_146); |
559 |
stringBuffer.append(((SnippetViewmap) viewmap).getBody()); |
570 |
stringBuffer.append(((SnippetViewmap) viewmap).getBody()); |
560 |
stringBuffer.append(TEXT_145); |
571 |
stringBuffer.append(TEXT_147); |
561 |
} // instanceof SnippetViewmap |
572 |
} // instanceof SnippetViewmap |
562 |
else if (viewmap instanceof InnerClassViewmap) { |
573 |
else if (viewmap instanceof InnerClassViewmap) { |
563 |
stringBuffer.append(TEXT_146); |
574 |
stringBuffer.append(TEXT_148); |
564 |
stringBuffer.append(((InnerClassViewmap) viewmap).getClassName()); |
575 |
stringBuffer.append(((InnerClassViewmap) viewmap).getClassName()); |
565 |
stringBuffer.append(TEXT_147); |
576 |
stringBuffer.append(TEXT_149); |
566 |
} |
577 |
} |
567 |
stringBuffer.append(TEXT_148); |
578 |
stringBuffer.append(TEXT_150); |
568 |
|
579 |
|
569 |
if (genLink.getViewmap() instanceof InnerClassViewmap) { |
580 |
if (genLink.getViewmap() instanceof InnerClassViewmap) { |
570 |
String classBody = ((InnerClassViewmap) genLink.getViewmap()).getClassBody(); |
581 |
String classBody = ((InnerClassViewmap) genLink.getViewmap()).getClassBody(); |
571 |
|
582 |
|
572 |
stringBuffer.append(TEXT_149); |
583 |
stringBuffer.append(TEXT_151); |
573 |
stringBuffer.append(classBody); |
584 |
stringBuffer.append(classBody); |
574 |
stringBuffer.append(TEXT_150); |
585 |
stringBuffer.append(TEXT_152); |
575 |
|
586 |
|
576 |
if (classBody.indexOf("DPtoLP") != -1) { |
587 |
if (classBody.indexOf("DPtoLP") != -1) { |
577 |
|
588 |
|
578 |
stringBuffer.append(TEXT_151); |
589 |
stringBuffer.append(TEXT_153); |
579 |
|
590 |
|
580 |
} |
591 |
} |
581 |
|
592 |
|
582 |
|
593 |
|
583 |
} |
594 |
} |
584 |
|
595 |
|
585 |
stringBuffer.append(TEXT_152); |
596 |
stringBuffer.append(TEXT_154); |
586 |
importManager.emitSortedImports(); |
597 |
importManager.emitSortedImports(); |
587 |
stringBuffer.append(TEXT_153); |
598 |
stringBuffer.append(TEXT_155); |
588 |
return stringBuffer.toString(); |
599 |
return stringBuffer.toString(); |
589 |
} |
600 |
} |
590 |
} |
601 |
} |