Mercurial > projects > dwt-addons
comparison dwtx/jface/text/AbstractInformationControlManager.d @ 162:1a5b8f8129df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 00:51:37 +0200 |
parents | f8d52b926852 |
children | c3583c6ec027 |
comparison
equal
deleted
inserted
replaced
161:f8d52b926852 | 162:1a5b8f8129df |
---|---|
201 /** | 201 /** |
202 * An internal class that gives access to internal methods. | 202 * An internal class that gives access to internal methods. |
203 * | 203 * |
204 * @since 3.4 | 204 * @since 3.4 |
205 */ | 205 */ |
206 class MyInternalAccessor : InternalAccessor { | 206 public static class MyInternalAccessor : InternalAccessor { |
207 AbstractInformationControlManager outer_; | |
208 this( AbstractInformationControlManager a ){ | |
209 outer_=a; | |
210 } | |
207 public IInformationControl getCurrentInformationControl() { | 211 public IInformationControl getCurrentInformationControl() { |
208 return this.outer.getCurrentInformationControl(); | 212 return outer_.getCurrentInformationControl(); |
209 } | 213 } |
210 | 214 |
211 public void setInformationControlReplacer(InformationControlReplacer replacer) { | 215 public void setInformationControlReplacer(InformationControlReplacer replacer) { |
212 this.outer.setInformationControlReplacer(replacer); | 216 outer_.setInformationControlReplacer(replacer); |
213 } | 217 } |
214 | 218 |
215 public InformationControlReplacer getInformationControlReplacer() { | 219 public InformationControlReplacer getInformationControlReplacer() { |
216 return this.outer.getInformationControlReplacer(); | 220 return outer_.getInformationControlReplacer(); |
217 } | 221 } |
218 | 222 |
219 public bool canReplace(IInformationControl control) { | 223 public bool canReplace(IInformationControl control) { |
220 return this.outer.canReplace(control); | 224 return outer_.canReplace(control); |
221 } | 225 } |
222 | 226 |
223 public bool isReplaceInProgress() { | 227 public bool isReplaceInProgress() { |
224 return this.outer.isReplaceInProgress(); | 228 return outer_.isReplaceInProgress(); |
225 } | 229 } |
226 | 230 |
227 public void replaceInformationControl(bool takeFocus) { | 231 public void replaceInformationControl(bool takeFocus) { |
228 this.outer.replaceInformationControl(takeFocus); | 232 outer_.replaceInformationControl(takeFocus); |
229 } | 233 } |
230 | 234 |
231 public void cropToClosestMonitor(Rectangle bounds) { | 235 public void cropToClosestMonitor(Rectangle bounds) { |
232 this.outer.cropToClosestMonitor(bounds); | 236 outer_.cropToClosestMonitor(bounds); |
233 } | 237 } |
234 | 238 |
235 public void setHoverEnrichMode(EnrichMode mode) { | 239 public void setHoverEnrichMode(EnrichMode mode) { |
236 throw new UnsupportedOperationException("only implemented in AbstractHoverInformationControlManager"); //$NON-NLS-1$ | 240 throw new UnsupportedOperationException("only implemented in AbstractHoverInformationControlManager"); //$NON-NLS-1$ |
237 } | 241 } |
1590 * @since 3.4 | 1594 * @since 3.4 |
1591 * @noreference This method is not intended to be referenced by clients. | 1595 * @noreference This method is not intended to be referenced by clients. |
1592 * @nooverride This method is not intended to be re-implemented or extended by clients. | 1596 * @nooverride This method is not intended to be re-implemented or extended by clients. |
1593 */ | 1597 */ |
1594 public InternalAccessor getInternalAccessor() { | 1598 public InternalAccessor getInternalAccessor() { |
1595 return new MyInternalAccessor(); | 1599 return new MyInternalAccessor(this); |
1596 } | 1600 } |
1597 } | 1601 } |