Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Drag and Drop Helper class
Drag and Drop Helper class [message #525327] Tue, 06 April 2010 01:03 Go to next message
Mohsin  is currently offline Mohsin
Messages: 5
Registered: March 2010
Junior Member
Hi,

Does anybody have a helper class which can be used to drag and drop a TreeItem from one tree to another? If so, can you please share it ?

Thanks,
Mohsin
Re: Drag and Drop Helper class [message #526163 is a reply to message #525327] Fri, 09 April 2010 00:07 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf Ebert
Messages: 168
Registered: July 2009
Senior Member
Hi Mohsin,

> Does anybody have a helper class which can be used to drag and drop a
> TreeItem from one tree to another? If so, can you please share it ?

there is a bug that already has patch for drag and drop support in SWTBot:

285271: Add Drag And Drop support to SWTBot
https://bugs.eclipse.org/bugs/show_bug.cgi?id=285271

Telling from the bug, there are still issues to solve. But if you're very interested in
the feature, you can apply the patch against HEAD and test the new dragAndDrop methods for
your use case, feedback would be very appreciated.

You can also add yourself to the CC list of the bug to get notified when this features
makes it into SWTBot.

Greetings,

Ralf

--
http://www.ralfebert.de/blog/
http://twitter.com/ralfebert/
Re: Drag and Drop Helper class [message #526578 is a reply to message #526163] Mon, 12 April 2010 06:42 Go to previous messageGo to next message
Mohsin  is currently offline Mohsin
Messages: 5
Registered: March 2010
Junior Member
Hi Ralf,

First of all, my apologies for the late reply as I was held up with another task.

Secondly, I am actually a QA and I am not quite familiar with the process of applying the patch. So, if it is possible could you please provide me only the class(.class) files which have the DND changes OR guide me through the process of applying the patch?

Thanks,
Mohsin
Re: Drag and Drop Helper class [message #526587 is a reply to message #526578] Mon, 12 April 2010 07:22 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf Ebert
Messages: 168
Registered: July 2009
Senior Member
Hi Mohsin,

> Secondly, I am actually a QA and I am not quite familiar with the
> process of applying the patch. So, if it is possible could you please
> provide me only the class(.class) files which have the DND changes OR
> guide me through the process of applying the patch?

sorry, applying a patch is a developer task for sure. Basically it means to get the SWTBot
source projects from the repository in your workspace ( see
http://wiki.eclipse.org/SWTBot/Contributing ) and to apply the changes from the patch file
using the version control system. But it really only makes sense to try it out and if
you're interested in developing / contributing to SWTBot; I'd never use such
bleeding-edge, unreleased code in actual production test suites.

- Ralf


--
Read my Blog here: http://www.ralfebert.de/blog/
Follow me on Twitter here: http://twitter.com/ralfebert/
Re: Drag and Drop Helper class [message #526655 is a reply to message #526578] Mon, 12 April 2010 10:08 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
Hi,

I'll try and put together a HOWTO on the wiki for people wanting to
apply patches. I understand that a lot of people who're not developers
use SWTBot and want to apply patches.

There have been quite a few QAs in the past that have applied patches
very successfully and not had any issues and I'm sure you should be able
to do it just by following instructions.

Hang on, I'll put together something for you.

– Ketan

On 4/12/10 3:42 AM, Mohsin wrote:
> Hi Ralf,
>
> First of all, my apologies for the late reply as I was held up with
> another task.
>
> Secondly, I am actually a QA and I am not quite familiar with the
> process of applying the patch. So, if it is possible could you please
> provide me only the class(.class) files which have the DND changes OR
> guide me through the process of applying the patch?
>
> Thanks,
> Mohsin
Re: Drag and Drop Helper class [message #526675 is a reply to message #526655] Mon, 12 April 2010 10:20 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf Ebert
Messages: 168
Registered: July 2009
Senior Member
Hi,

> There have been quite a few QAs in the past that have applied patches
> very successfully and not had any issues and I'm sure you should be able
> to do it just by following instructions.

applying the patch, for sure, I was thinking more about the things that come after that if
you want to use the code for real tests. Like maintaining the forked version and syncing
up with new releases.

Greetings,

Ralf


--
Read my Blog here: http://www.ralfebert.de/blog/
Follow me on Twitter here: http://twitter.com/ralfebert/
Re: Drag and Drop Helper class [message #526703 is a reply to message #526655] Mon, 12 April 2010 12:20 Go to previous messageGo to next message
Mohsin  is currently offline Mohsin
Messages: 5
Registered: March 2010
Junior Member
Ketan Padegaonkar wrote on Mon, 12 April 2010 10:08
Hi,

I'll try and put together a HOWTO on the wiki for people wanting to
apply patches. I understand that a lot of people who're not developers
use SWTBot and want to apply patches.

There have been quite a few QAs in the past that have applied patches
very successfully and not had any issues and I'm sure you should be able
to do it just by following instructions.

Hang on, I'll put together something for you.

Ketan


Thanks Ketan, It will be truly appreciated.

-Mohsin
Re: Drag and Drop Helper class [message #526704 is a reply to message #526587] Mon, 12 April 2010 12:39 Go to previous message
Mohsin  is currently offline Mohsin
Messages: 5
Registered: March 2010
Junior Member
Ralf Ebert wrote on Mon, 12 April 2010 07:22


sorry, applying a patch is a developer task for sure. Basically it means to get the SWTBot
source projects from the repository in your workspace ( see
http://wiki.eclipse.org/SWTBot/Contributing ) and to apply the changes from the patch file
using the version control system. But it really only makes sense to try it out and if
you're interested in developing / contributing to SWTBot; I'd never use such
bleeding-edge, unreleased code in actual production test suites.

- Ralf


Hi Ralf,

I am still evaluating the tool and as part of POC I need to write a test which involves dragging and dropping of an item from one tree to another. To do this, even if I get a sample code, it would be more than sufficient for now Smile

Fortunately, it would take another month or two before we start using the tool in our production environment. And I only hope that the code for DnD will be available as part of the release by then.

-Mohsin



Previous Topic:Ant build: A cycle was detected when generating the classpath junit4_x -> swt.finder.test -> j
Next Topic:New to SWTBot - Need help on from where to start
Goto Forum:
  


Current Time: Mon Jul 28 04:20:57 EDT 2014

Powered by FUDForum. Page generated in 0.02840 seconds