Mercurial > projects > dwt-addons
comparison dwtx/jface/text/source/projection/ProjectionSupport.d @ 145:02cd5f1224d3
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 22:31:00 +0200 |
parents | b6bad70d540a |
children | 75302ef3f92f |
comparison
equal
deleted
inserted
replaced
144:16a71f577815 | 145:02cd5f1224d3 |
---|---|
241 * @param creator the hover control creator | 241 * @param creator the hover control creator |
242 */ | 242 */ |
243 public void setHoverControlCreator(IInformationControlCreator creator) { | 243 public void setHoverControlCreator(IInformationControlCreator creator) { |
244 fInformationControlCreator= creator; | 244 fInformationControlCreator= creator; |
245 } | 245 } |
246 | 246 |
247 /** | 247 /** |
248 * Sets the information presenter control creator that is used for the annotation | 248 * Sets the information presenter control creator that is used for the annotation |
249 * hovers that are shown in the projection viewer's projection ruler column. | 249 * hovers that are shown in the projection viewer's projection ruler column. |
250 * | 250 * |
251 * @param creator the information presenter control creator | 251 * @param creator the information presenter control creator |
370 * @param required the required class of the adapter | 370 * @param required the required class of the adapter |
371 * @return the adapter or <code>null</code> | 371 * @return the adapter or <code>null</code> |
372 * | 372 * |
373 */ | 373 */ |
374 public Object getAdapter(ISourceViewer viewer, Class required) { | 374 public Object getAdapter(ISourceViewer viewer, Class required) { |
375 if (ProjectionAnnotationModel.class.equals(required)) { | 375 if (ProjectionAnnotationModel.classinfo ==/*eq*/ required) { |
376 if ( cast(ProjectionViewer)viewer ) { | 376 if ( cast(ProjectionViewer)viewer ) { |
377 ProjectionViewer projectionViewer= cast(ProjectionViewer) viewer; | 377 ProjectionViewer projectionViewer= cast(ProjectionViewer) viewer; |
378 return projectionViewer.getProjectionAnnotationModel(); | 378 return projectionViewer.getProjectionAnnotationModel(); |
379 } | 379 } |
380 } | 380 } |