[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: Eclipse
|
"Vijaya" <kedarvijaya@xxxxxxxxxxx> wrote in message
news:23c56d3716f96b51cc0b948d45a02512$1@xxxxxxxxxxxxxxxxxx
> hii
> We are developing an eclipse plug-in which will create a view and will
> display "annotations" from file in active editor.
> We have created view and are able to display annotations but by giving
> the file path.So it has become static.
>
> i want to display them from currently selected file i.e active editor.
> i want to know how i can get the path of active editor in Eclipse 3.2.
An editor is not necessarily showing the contents of a file on disk (for
instance, there might be unsaved changes). So, you should be thinking in
terms of getting the contents of the active editor, rather than trying to
figure out what file it is editing.