Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Re: TableSorter without initial sorting
Re: TableSorter without initial sorting [message #467886] Mon, 03 August 2009 06:04
Eclipse UserFriend
Hi Sven,

thanks for the feedback and for reporting the problem. I'll have a look.

Best regards, Lars

P.S. You can report with my tutorials in the following Google Group:
http://groups.google.de/group/vogella

Sven Müller wrote:
> Am Sat, 01 Aug 2009 22:07:13 +0200
> schrieb Lars Vogel <Lars.Vogel@gmail.com>:
>
>> you could set
>> this.propertyIndex = -1;
>
> Thx a lot. It works. And generally a big thank you and yours tutorials.
> Without them I would have been lost.
>
> Another problem in the same tutorial:
> http://www.vogella.de/articles/EclipseJFaceTable/article.htm l#sortcolumns
>
> If you change the gender of the persons in the list by the combobox and
> afterwarts try to add or delete a person, you'll get a NullPointer
> Exception.
>
> !ENTRY org.eclipse.ui 4 0 2009-08-02 14:22:00.183
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.NullPointerException
> at commands.AddPersonHandler.execute(AddPersonHandler.java:21)
> at
> org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle rProxy.java:281)
> at
> org.eclipse.core.commands.Command.executeWithChecks(Command. java:476)
> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:508)
> at
> org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:169)
> ....
>
> The responsible line is (the last one):
> IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
> ModelProvider persons = ModelProvider.getInstance();
> AddPersonDialog addPersonDialog = new AddPersonDialog(window.getShell());
>
>
> When trying to delete an entry:
> !ENTRY org.eclipse.ui 4 0 2009-08-02 14:27:07.160
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.NullPointerException
> at
> commands.DeletePersonHandler.execute(DeletePersonHandler.jav a:26) at
> org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle rProxy.java:281)
>
> responsible line:
> IWorkbenchWindow window =HandlerUtil.getActiveWorkbenchWindow(event);
> IWorkbenchPage page = window.getActivePage();
>
> I don't have any idea how to avoid this error, because it's something
> of the deep from Eclipse. If it works in your case, then maybe it could
> be a platform depending bug. I'm using Eclipse-3.4 on Gentoo-Linux
> 64bit.
>
> Hope you can help again. Thx.
> Sven




--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
Previous Topic:editElement method of TreeViewer
Next Topic:Programmatically Update RCP Feature
Goto Forum:
  


Current Time: Sat May 17 21:48:00 EDT 2025

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

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

Back to the top