how to add doubleClickAction To org.eclipse.gef.ui.parts.TreeViewer [message #153494] |
Mon, 11 October 2004 09:19 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: zzk101.163.net
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: how to add doubleClickAction To org.eclipse.gef.ui.parts.TreeViewer [message #156134 is a reply to message #153502] |
Sat, 30 October 2004 10:35 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: zzk101.163.net
Pratit:
Really i can get REQ_OPEN under the non-AbstractTreeEditPart case. But
if i did, i could not get it. Why?
Best Regards
Vic
"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:ckcqu7$bno$1@eclipse.org...
> 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.03203 seconds