Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How To Remove a Column from a Table
How To Remove a Column from a Table [message #445430] Fri, 05 November 2004 13:38 Go to next message
Eclipse UserFriend
Originally posted by: alr.agelid.com

Hi there,
I'd like to remove a TableColumn from a Table but i didn't find any way to
do this properly.

In my case the Table is in a Editor Part of the Eclipse Workbench.

When i tried to "dispose" the column directly, column diseapear from the
TableViewer, but when closing the workbench i've got the following error :

Unhandled exception caught in event loop.
Reason:
java.lang.NullPointerException
java.lang.NullPointerException
at org.eclipse.swt.widgets.Table.releaseWidget(Table.java:1091)
at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java: 715)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite. java:319)
at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.ja va:367)
at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java: 715)

and so on....
i'm running under ibm jdk.1.4.1 and Eclipse 2.1
Re: How To Remove a Column from a Table [message #445434 is a reply to message #445430] Fri, 05 November 2004 14:28 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
TableColumn.dispose() is the right answer. Looks like a flavour of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=45708.

"alr" <alr@agelid.com> wrote in message news:cmfvnv$2nk$1@eclipse.org...
> Hi there,
> I'd like to remove a TableColumn from a Table but i didn't find any way to
> do this properly.
>
> In my case the Table is in a Editor Part of the Eclipse Workbench.
>
> When i tried to "dispose" the column directly, column diseapear from the
> TableViewer, but when closing the workbench i've got the following error :
>
> Unhandled exception caught in event loop.
> Reason:
> java.lang.NullPointerException
> java.lang.NullPointerException
> at org.eclipse.swt.widgets.Table.releaseWidget(Table.java:1091)
> at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java: 715)
> at org.eclipse.swt.widgets.Composite.releaseChildren(Composite. java:319)
> at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.ja va:367)
> at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java: 715)
>
> and so on....
> i'm running under ibm jdk.1.4.1 and Eclipse 2.1
>
Previous Topic:ScrollBar problem
Next Topic:Accessing Object Instances in via OLE
Goto Forum:
  


Current Time: Mon Oct 26 14:46:11 GMT 2020

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

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

Back to the top