[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] Re: Add menu listener for editor context menu.
|
Hi Paul,
Many thanks for your reply.
I am trying to trap atleast the known events that occurred on the file. For
e.g. The file was being compared, file was printed etc. Sometimes I also
need to remove some of the existing features. I am working on general class
of editors (but for now text editors is also fine).
How do I know if the editor has exported the menu manager? How do I subclass
a editor (I do not want to go into Windows hooks and subclassing)? Kindly
advise on the approach that I should take.
Thanks and Best Regards,
Vishal
"Paul Webster" <pwebster@xxxxxxxxxx> wrote in message
news:f02hi0$r78$2@xxxxxxxxxxxxxxxxxxxx
> By default you can't get that MenuManager easily, unless the specific type
> of text editor exports it. Are you subclassing a text editor? Or you do
> you just want the general "text editor" class of editors?
>
> What exactly are you trying to do? If it's just to add to a context menu,
> you can use org.eclipse.ui.popupMenus to do it.
>
> Later,
> PW