Mercurial > projects > dwt-addons
comparison dwtx/jface/text/link/LinkedPositionAnnotations.d @ 136:6dcb0baaa031
Regex removal of throws decls, some instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:20:40 +0200 |
parents | 51e6e63f930e |
children | 75302ef3f92f |
comparison
equal
deleted
inserted
replaced
135:65801ad2b265 | 136:6dcb0baaa031 |
---|---|
71 * by the linked environment. | 71 * by the linked environment. |
72 * | 72 * |
73 * @param position the new focus position, or <code>null</code> if no focus is set. | 73 * @param position the new focus position, or <code>null</code> if no focus is set. |
74 * @throws BadLocationException if <code>position</code> is invalid | 74 * @throws BadLocationException if <code>position</code> is invalid |
75 */ | 75 */ |
76 private void setFocusPosition(Position position) throws BadLocationException { | 76 private void setFocusPosition(Position position) { |
77 if (fMarkFocus && getPosition(fFocusAnnotation) !is position) { | 77 if (fMarkFocus && getPosition(fFocusAnnotation) !is position) { |
78 removeAnnotation(fFocusAnnotation, false); | 78 removeAnnotation(fFocusAnnotation, false); |
79 if (position !is null) { | 79 if (position !is null) { |
80 fFocusAnnotation= new Annotation(FOCUS_ANNOTATION_TYPE, false, ""); //$NON-NLS-1$ | 80 fFocusAnnotation= new Annotation(FOCUS_ANNOTATION_TYPE, false, ""); //$NON-NLS-1$ |
81 addAnnotation(fFocusAnnotation, position, false); | 81 addAnnotation(fFocusAnnotation, position, false); |
90 * by the linked environment. | 90 * by the linked environment. |
91 * | 91 * |
92 * @param position the new exit position, or <code>null</code> if no focus is set. | 92 * @param position the new exit position, or <code>null</code> if no focus is set. |
93 * @throws BadLocationException in case <code>position</code> is invalid | 93 * @throws BadLocationException in case <code>position</code> is invalid |
94 */ | 94 */ |
95 private void setExitPosition(Position position) throws BadLocationException { | 95 private void setExitPosition(Position position) { |
96 if (fMarkExitTarget && getPosition(fExitAnnotation) !is position) { | 96 if (fMarkExitTarget && getPosition(fExitAnnotation) !is position) { |
97 removeAnnotation(fExitAnnotation, false); | 97 removeAnnotation(fExitAnnotation, false); |
98 if (position !is null) { | 98 if (position !is null) { |
99 fExitAnnotation= new Annotation(EXIT_ANNOTATION_TYPE, false, ""); //$NON-NLS-1$ | 99 fExitAnnotation= new Annotation(EXIT_ANNOTATION_TYPE, false, ""); //$NON-NLS-1$ |
100 addAnnotation(fExitAnnotation, position, false); | 100 addAnnotation(fExitAnnotation, position, false); |
108 * as the positions that are linked to the focus position. | 108 * as the positions that are linked to the focus position. |
109 * | 109 * |
110 * @param positions the new slave positions, or <code>null</code> if no slave positions are to be set | 110 * @param positions the new slave positions, or <code>null</code> if no slave positions are to be set |
111 * @throws BadLocationException in case any of the given positions is invalid | 111 * @throws BadLocationException in case any of the given positions is invalid |
112 */ | 112 */ |
113 private void setGroupPositions(List positions) throws BadLocationException { | 113 private void setGroupPositions(List positions) { |
114 if (!fMarkSlaves) | 114 if (!fMarkSlaves) |
115 return; | 115 return; |
116 | 116 |
117 // remove all positions which are already there | 117 // remove all positions which are already there |
118 // Algorithm: toRemove contains all mappings at first, but all that are in | 118 // Algorithm: toRemove contains all mappings at first, but all that are in |
142 * as the positions that can be jumped to in a linked set up. | 142 * as the positions that can be jumped to in a linked set up. |
143 * | 143 * |
144 * @param positions the new target positions, or <code>null</code> if no target positions are to be set | 144 * @param positions the new target positions, or <code>null</code> if no target positions are to be set |
145 * @throws BadLocationException in case any of the given positions is invalid | 145 * @throws BadLocationException in case any of the given positions is invalid |
146 */ | 146 */ |
147 private void setTargetPositions(List positions) throws BadLocationException { | 147 private void setTargetPositions(List positions) { |
148 if (!fMarkTargets) | 148 if (!fMarkTargets) |
149 return; | 149 return; |
150 | 150 |
151 // remove all positions which are already there | 151 // remove all positions which are already there |
152 // Algorithm: toRemove contains all mappings at first, but all that are in | 152 // Algorithm: toRemove contains all mappings at first, but all that are in |