Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Scrolling problem of TreeViewer while DND
Scrolling problem of TreeViewer while DND [message #445935] Mon, 15 November 2004 09:09 Go to next message
Shaiju is currently offline Shaiju
Messages: 9
Registered: July 2009
Junior Member
Hi All
I have a Tree viewer impelemented and I have implemented DND in this
Tree Viewer . Drag and Drop is working properly but the problem is that the
Tree viewer is not scrolling while Drag is performed. So I can only drag and
drop the visible nodes of the tree. I want to scroll the tree viewer while
I drag a node . How can I do that . I am using
org.eclipse.jface.viewers.TreeViewer . Is there any listeners to be
implemented or any style settings for the tree viewer ?

TIA
Shaiju.P
Re: Scrolling problem of TreeViewer while DND [message #445982 is a reply to message #445935] Mon, 15 November 2004 16:18 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika Irvine
Messages: 1272
Registered: July 2009
Senior Member
In the drag over event of the drop target, set the event.feedback field to:

event.feedback |= DND.FEEDBACK_SCROLL;

For more info, see:

http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.h tml

"Shaiju" <shaiju@exorindia.com> wrote in message
news:cn9ro5$6vd$1@eclipse.org...
> Hi All
> I have a Tree viewer impelemented and I have implemented DND in this
> Tree Viewer . Drag and Drop is working properly but the problem is that
> the Tree viewer is not scrolling while Drag is performed. So I can only
> drag and drop the visible nodes of the tree. I want to scroll the tree
> viewer while I drag a node . How can I do that . I am using
> org.eclipse.jface.viewers.TreeViewer . Is there any listeners to be
> implemented or any style settings for the tree viewer ?
>
> TIA
> Shaiju.P
>
Re: Scrolling problem of TreeViewer while DND [message #446023 is a reply to message #445982] Tue, 16 November 2004 08:05 Go to previous messageGo to next message
Shaiju is currently offline Shaiju
Messages: 9
Registered: July 2009
Junior Member
Thanks for the information
Shaiju
"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:cnakt8$g5q$1@eclipse.org...
> In the drag over event of the drop target, set the event.feedback field
> to:
>
> event.feedback |= DND.FEEDBACK_SCROLL;
>
> For more info, see:
>
> http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.h tml
>
> "Shaiju" <shaiju@exorindia.com> wrote in message
> news:cn9ro5$6vd$1@eclipse.org...
>> Hi All
>> I have a Tree viewer impelemented and I have implemented DND in this
>> Tree Viewer . Drag and Drop is working properly but the problem is that
>> the Tree viewer is not scrolling while Drag is performed. So I can only
>> drag and drop the visible nodes of the tree. I want to scroll the tree
>> viewer while I drag a node . How can I do that . I am using
>> org.eclipse.jface.viewers.TreeViewer . Is there any listeners to be
>> implemented or any style settings for the tree viewer ?
>>
>> TIA
>> Shaiju.P
>>
>
>
icon12.gif  Re: Scrolling problem of TreeViewer while DND [message #499842 is a reply to message #446023] Tue, 24 November 2009 11:07 Go to previous messageGo to next message
venkateshaare  is currently offline venkateshaare
Messages: 1
Registered: November 2009
Junior Member
Hi Shaiju!

I am new to Eclipse RCP.I am trying to build a treeviewer sample with my model.But I am having problem in building model for the treeviewer itself.

Can u send me some samples.So that I can move further.

I am trying to build tree with different objects as root and children as shown below,

Company
| ---Department
| |------Employee
|----Department
|------Employee

Thanks,
Venkatesh
Re: Scrolling problem of TreeViewer while DND [message #499943 is a reply to message #499842] Tue, 24 November 2009 14:49 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2151
Registered: July 2009
Senior Member
FYI: You'll find some TreeViewer examples at
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/ .

Grant


"venkateshaare" <venkateshrjp.85@gmail.com> wrote in message
news:hegepu$gld$1@build.eclipse.org...
> Hi Shaiju!
>
> I am new to Eclipse RCP.I am trying to build a treeviewer sample with my
model.But I am having problem in building model for the treeviewer itself.
>
> Can u send me some samples.So that I can move further.
>
> I am trying to build tree with different objects as root and children as
shown below,
>
> Company
> | ---Department
> | |------Employee
> |----Department
> |------Employee
>
> Thanks,
> Venkatesh
Previous Topic:add toolbar to section
Next Topic:How to show another window when login button clicked?
Goto Forum:
  


Current Time: Tue Sep 23 14:25:25 GMT 2014

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

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