Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Limited number of headers displayed?(All data columns are in my table, but only a few headers.)
icon5.gif  Limited number of headers displayed? [message #498415] Mon, 16 November 2009 19:37 Go to next message
Ian Harac is currently offline Ian HaracFriend
Messages: 10
Registered: November 2009
Location: Southern Indiana
Junior Member

So I have a very wide table -- 3904 columns. I recently noticed that only the first 273 column headers are displayed; the table simply stops drawing them after that, though all table data columns are drawn. (See attached screenshot). I have verified all columns are being added to the viewer and that the columns post-273 have correct titles.

Here's the "add columns" code, it's pretty damn boilerplate:
GC gc = new GC (tvReportData.getTable());
			FontMetrics fm = gc.getFontMetrics ();
			for (Object f : loanDataSource.getFields())
			{
				TableViewerColumn tvc=new TableViewerColumn(tvReportData,SWT.NONE);
				tvc.getColumn().setText(f.toString());
				int width=(f.toString().length()+2)*fm.getAverageCharWidth ();
				tvc.getColumn().setWidth(width);
			}


I'm not doing anything fancy with renderers, etc. I can't see any "Magic numbers" (i.e, powers of 2) in the number of words, characters, or entries. I'm not even sure where to begin looking, though I guess "known bugs" might be a good place to start. Beyond that, any ideas?
Re: Limited number of headers displayed? [message #500497 is a reply to message #498415] Thu, 26 November 2009 12:22 Go to previous messageGo to next message
Jakob von Raumer is currently offline Jakob von RaumerFriend
Messages: 2
Registered: November 2009
Junior Member
Hello Ian,

I don't think this is a JFace Bug. I am having the same problem on a virtual SWT Table without JFace TableViewer. But it seems to me as if not the number of shown column headers was limited but rather the width of them: When I resize some columns with shown headers, i see more column headers and I also see half shown column headers. So if you get the same problem without a TableViewer this would rather be an issue for the SWT Board.
Re: Limited number of headers displayed? [message #503181 is a reply to message #498415] Fri, 11 December 2009 10:11 Go to previous messageGo to next message
Jakob von Raumer is currently offline Jakob von RaumerFriend
Messages: 2
Registered: November 2009
Junior Member
I searched the whole Eclipse Bugzilla for this bug, but I could not find any clue. Anyone heard of this rendering problem before?
Re: Limited number of headers displayed? [message #503281 is a reply to message #503181] Fri, 11 December 2009 16:40 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
I found one previous report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=72293 , it's an OS problem.

Grant


"Jakob von Raumer" <javra@web.de> wrote in message
news:hft5sh$isl$1@build.eclipse.org...
> I searched the whole Eclipse Bugzilla for this bug, but I could not find
any clue. Anyone heard of this rendering problem before?
Re: Limited number of headers displayed? [message #503283 is a reply to message #503281] Fri, 11 December 2009 11:50 Go to previous message
Ian Harac is currently offline Ian HaracFriend
Messages: 10
Registered: November 2009
Location: Southern Indiana
Junior Member

Grant Gayed wrote on Fri, 11 December 2009 11:40
I found one previous report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=72293 , it's an OS problem.

Grant


"Jakob von Raumer" <javra@web.de> wrote in message
news:hft5sh$isl$1@build.eclipse.org...
> I searched the whole Eclipse Bugzilla for this bug, but I could not find
any clue. Anyone heard of this rendering problem before?


I actually "solved" the problem, and a lot of other issues, w/the Nebula grid and grid viewer. So it's certainly possible to display a grid that wide w/all column headers rendered.
Previous Topic:Update JFace Tooltip while its displayed
Next Topic:DataBinding and Validation Problems
Goto Forum:
  


Current Time: Thu Nov 27 17:32:33 GMT 2014

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

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