Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » REQ_OPEN for the TreeView
REQ_OPEN for the TreeView [message #156436] Tue, 02 November 2004 07:33
Eclipse UserFriend
Originally posted by: zzk101.163.net

Guys:
I asked this question before. I wanna get the double clik of mouse. But i
cannot get the REQ_OPEN request in the getCommand method.
Other wise, if i don't use the treeview, to use other instead, i can get
the REQ_OPEN easily.

Best Regards
Vic


Your EditPart will get a REQ_OPEN.

"vic" <zzk101@163.net> wrote in message news:ckbu5e$a6s$1@eclipse.org...
> Guys:
> I wanna add the double mouse click action to
> org.eclipse.gef.ui.parts.TreeViewer like
org.eclipse.jface.viewers.TreeView.
>
> For org.eclipse.jface.viewers.TreeView, we can implement as:
> viewer.addDoubleClickListener(new IDoubleClickListener() {
> public void doubleClick(DoubleClickEvent event) {
> doubleClickAction.run();
> }
> });
>
>
> How do we do with org.eclipse.gef.ui.parts.TreeViewer?
>
>
> Best Regards
> Vic
>
>
Re: REQ_OPEN for the TreeView [message #156440 is a reply to message #156436] Mon, 01 November 2004 16:18 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Did you add the TreeView to the EditDomain? If not, it won't send events to
the SelectionTool.

-randy

"vic" <zzk101@163.net> wrote in message news:cm5kuf$pdj$1@eclipse.org...
> Guys:
> I asked this question before. I wanna get the double clik of mouse. But i
> cannot get the REQ_OPEN request in the getCommand method.
> Other wise, if i don't use the treeview, to use other instead, i can
get
> the REQ_OPEN easily.
>
> Best Regards
> Vic
>
>
> Your EditPart will get a REQ_OPEN.
>
> "vic" <zzk101@163.net> wrote in message news:ckbu5e$a6s$1@eclipse.org...
> > Guys:
> > I wanna add the double mouse click action to
> > org.eclipse.gef.ui.parts.TreeViewer like
> org.eclipse.jface.viewers.TreeView.
> >
> > For org.eclipse.jface.viewers.TreeView, we can implement as:
> > viewer.addDoubleClickListener(new IDoubleClickListener() {
> > public void doubleClick(DoubleClickEvent event) {
> > doubleClickAction.run();
> > }
> > });
> >
> >
> > How do we do with org.eclipse.gef.ui.parts.TreeViewer?
> >
> >
> > Best Regards
> > Vic
> >
> >
>
>
>
Previous Topic:Creating a table
Next Topic:HTML Viewer/Editor for GEF with source?
Goto Forum:
  


Current Time: Thu Jan 16 23:22:26 GMT 2025

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

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

Back to the top