Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Removing columns from viewers
Removing columns from viewers [message #538436] Mon, 07 June 2010 15:59 Go to next message
Mickael Istria, away until January 8th is currently offline Mickael Istria, away until January 8thFriend
Messages: 828
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi all,

I am trying to find out a way to remove columns from a TableViewer. I tried some hacky way to remove them from the underlying Table widget but could not find anything helpful.
Is this possible? How can we do that? If not possible, do you have an usual "pattern" for such a use case?

Thanks in advance!
--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: Removing columns from viewers [message #538612 is a reply to message #538436] Tue, 08 June 2010 08:22 Go to previous messageGo to next message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
There are two snippets available at JFace snippets

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet018TableViewerAddRemoveColumnsWithEditing.j ava?view=markup

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet018TableViewerAddRemoveColumnsWithEditing.j ava?view=markup

The secound snippet with new API looks good try it.


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Re: Removing columns from viewers [message #538666 is a reply to message #538612] Tue, 08 June 2010 11:33 Go to previous message
Mickael Istria, away until January 8th is currently offline Mickael Istria, away until January 8thFriend
Messages: 828
Registered: July 2009
Location: Grenoble, France
Senior Member

> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet018TableViewerAddRemoveColumnsWithEditing.j ava?view=markup

Too bad I did not find this snippet before asking.
It works perfectly, thanks a lot for the hint!

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Previous Topic:TableColumn.setText - doesnt display '&' within String
Next Topic:Getting column width from GridLayout
Goto Forum:
  


Current Time: Sat May 26 12:00:32 GMT 2018

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

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

Back to the top