[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: adding actions to popup menu

Did you try putting a breakpoint in the code to see what was going on? Did
you look at the run() method in its super class? It looks for the currently
selected resource...are the elements in your view IResources? or do they
adapt to being IResource? If not, then this action will do nothing.

Simon :-)

"Ankit Pasricha" <ankit_pasricha@xxxxxxxxxxx> wrote in message
news:akda5o$vu8$1@xxxxxxxxxxxxxxxx
> Hi,
>
> I am trying to add eclipse actions like Open, Open with etc to my custom
> popup menu. I tried using the OpenFileActon class(for the Open action) and
> it did add the Open action to the menu, but it does not do anything if i
> click on it. The OpenFileAction class does have an openFile method so i am
> assuming this should be called but it looks like it is not. Any ideas?
>
> Thanks
>
>