Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 413401

Summary: Provide SWTBotTreeColumn for interacting with tree columns
Product: [Technology] SWTBot Reporter: Robin Stocker <robin>
Component: SWTBotAssignee: Project Inbox <swtbot-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: mistria
Version: 2.1.0   
Target Milestone: 2.2.0   
Hardware: All   
OS: All   
Whiteboard:

Description Robin Stocker CLA 2013-07-21 11:32:23 EDT
For tables, SWTBotTableColumns can be accessed from SWTBotTable#header. It would be nice if the same was possible for columns of trees.
Comment 1 Robin Stocker CLA 2013-07-21 11:49:44 EDT
Context: This could have been used in bug 412359. Until it's provided by SWTBot, we use a custom implementation.
Comment 2 Mickael Istria CLA 2013-07-22 04:21:12 EDT
There are big chances that no-one in the community step up to make this enhancement happen, unless someone else has the same use case.
So I advise you to contribute this improvement, which should not be a too difficult task since you already have code doing this. http://wiki.eclipse.org/SWTBot/Contributing
Comment 3 Robin Stocker CLA 2013-07-22 06:45:39 EDT
Ok, thanks for responding. Pushed implementation:

https://git.eclipse.org/r/14742

I'm not sure about "@since 2.1.2", as new features are not normally introduced in a patch release. What is your policy regarding versioning?
Comment 4 Mickael Istria CLA 2013-07-22 06:50:35 EDT
As it is fully backward compatible and it isn't a big change in SWTBot feature set or architecture, I'm ok with using 2.1.2 as next version.
Does this sound fine to you?
Comment 5 Robin Stocker CLA 2013-07-22 07:05:21 EDT
Yes :).
Comment 6 Mickael Istria CLA 2013-07-22 07:10:28 EDT
Thanks for this patch (and other related contributions).
Next snapshot build containing your change will be available within a few minutes in http://download.eclipse.org/technology/swtbot/snapshots/ , when https://hudson.eclipse.org/hudson/job/swtbot-tycho/115/ is done.