Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to remove columns from a table
How to remove columns from a table [message #518983] Fri, 05 March 2010 10:56 Go to next message
Eclipse User
Originally posted by: msoori.lggi.com

Is there a way to remove columns from a table? I need to be able to
add/remove columns from the table depending on selection from a
different place. I know this can be worked done using a PageView, but
trying to see if I dont have to modify too much code to get the
functionality I need.
Re: How to remove columns from a table [message #519221 is a reply to message #518983] Sun, 07 March 2010 21:12 Go to previous message
Daniel Krügler is currently offline Daniel Krügler
Messages: 853
Registered: July 2009
Senior Member
On 05.03.2010 16:56, Mahesh Soori wrote:
> Is there a way to remove columns from a table? I need to be able to
> add/remove columns from the table depending on selection from a
> different place. I know this can be worked done using a PageView, but
> trying to see if I dont have to modify too much code to get the
> functionality I need.

You need to invoke dispose on the corresponding columns.
There are two examples on the jface snippets, here is the
one using the new viewer API:

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

HTH & Greetings from Bremen,

Daniel Krügler
Previous Topic:"Platform filters" for fragments in Eclipse Product Export Wizard doesn't seem to work
Next Topic:Adding login-type check to oe.ui.ide.workbench Product
Goto Forum:
  


Current Time: Tue Jul 22 19:54:03 EDT 2014

Powered by FUDForum. Page generated in 0.02074 seconds