REQ_OPEN for the TreeView [message #156436] |
Tue, 02 November 2004 07:33 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
> >
> >
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03753 seconds