Problem with adding tooltip for anntation [message #280755] |
Wed, 09 February 2005 02:18  |
Eclipse User |
|
|
|
How can i add tooltip for error annotation marker in text editor?
I try this code that shown error marker in proper line, but error marker
have no tooltip.
--skip--
annotationModel.addAnnotation(new MyAnnotation(),new Position(...));
--skip--
class MyAnnotation() extends Annotation
{
public static final String ERROR_ANNOTATION_TYPE=
"org.eclipse.ui.workbench.texteditor.error"; //$NON-NLS-1$
public MyAnnotation()
{
setType(ERROR_ANNOTATION_TYPE);
setText("My annotation error msg");
}
}
|
|
|
|
Re: Problem with adding tooltip for anntation [message #280842 is a reply to message #280807] |
Fri, 11 February 2005 00:13  |
Eclipse User |
|
|
|
arker have no tooltip.
> Are you talking about the built-in text editor or about one that you
> provide yourself?
> Dani
About my text editor.
class MyTextEditor extends TextEditor
{
protected ISourceViewer createSourceViewer(Composite parent,
IVerticalRuler ruler, int styles)
{
ISourceViewer viewer= new ProjectionViewer(parent, ruler,
getOverviewRuler(), true, styles);
getSourceViewerDecorationSupport(viewer);
return viewer;
}
....
}
|
|
|
Powered by
FUDForum. Page generated in 0.08425 seconds