Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Dynamic pop up menus
Dynamic pop up menus [message #20484] Mon, 28 April 2003 14:31 Go to next message
Eclipse UserFriend
Originally posted by: yossiy.backweb.com

Hi All,

I have a question about populating popup menus.
I'm developing a muli page editor which has an IE control as one of the
pages.
I want to dynamically create a pop up context menu (right-click), based on
the DOM node that was clicked.

for example:
If the user right-clicks a link, the popup menu will show an "Open Link"
action, whereas if he right-clicks a <TABLE> element, it will show soem
other action.

I don't really know where to begin.
A little help would be very appriciated.

Thanks
Yossi
Re: Dynamic pop up menus [message #20537 is a reply to message #20484] Mon, 28 April 2003 16:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: newseclipse.dagerot.nu

Out of curiosity, what are you creating? How will the editor be used?


"Yossi Yacov" <yossiy@backweb.com> wrote in message
news:b8js19$dpm$1@rogue.oti.com...
> Hi All,
>
> I have a question about populating popup menus.
> I'm developing a muli page editor which has an IE control as one of the
> pages.
> I want to dynamically create a pop up context menu (right-click), based on
> the DOM node that was clicked.
>
> for example:
> If the user right-clicks a link, the popup menu will show an "Open Link"
> action, whereas if he right-clicks a <TABLE> element, it will show soem
> other action.
>
> I don't really know where to begin.
> A little help would be very appriciated.
>
> Thanks
> Yossi
>
Re: Dynamic pop up menus [message #20554 is a reply to message #20537] Mon, 28 April 2003 17:51 Go to previous message
Eclipse UserFriend
Originally posted by: yosyakov.netvision.net.il

I\\\'m trying to make a context sensitive menu for an IE contorol embbeded
as
an eclipse editor (or view, it doesn\\\'t really matter).
I want to offer the user with options relevant to the specific node type.
I already handle events from the browser and know how to interpret the
location of the right click to a DOM node.
What I need now is to somehow extend this information so that other
plugins can contribute
actions dynamically to the context menu based on the node type.
I don\\\'t know if it\\\'s possible.

Joachim Dagerot wrote:

> Out of curiosity, what are you creating? How will the editor be used?


> \\\"Yossi Yacov\\\" <yossiy@backweb.com> wrote in message
> news:b8js19$dpm$1@rogue.oti.com...
> > Hi All,
> >
> > I have a question about populating popup menus.
> > I\\\'m developing a muli page editor which has an IE control as one of the
> > pages.
> > I want to dynamically create a pop up context menu (right-click), based on
> > the DOM node that was clicked.
> >
> > for example:
> > If the user right-clicks a link, the popup menu will show an \\\"Open
Link\\\"
> > action, whereas if he right-clicks a <TABLE> element, it will show soem
> > other action.
> >
> > I don\\\'t really know where to begin.
> > A little help would be very appriciated.
> >
> > Thanks
> > Yossi
> >
Previous Topic:Hiding external JARs in project view
Next Topic:how to careat folders
Goto Forum:
  


Current Time: Fri Jun 06 21:25:24 EDT 2025

Powered by FUDForum. Page generated in 0.03610 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top