Skip to main content


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 15:56 Go to next message
Eclipse UserFriend
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] Mon, 08 March 2010 02:12 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
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 Apr 23 09:06:01 GMT 2024

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

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

Back to the top