Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Grid SetColumnOrder
Grid SetColumnOrder [message #51681] Fri, 18 April 2008 19:43 Go to next message
Lei is currently offline LeiFriend
Messages: 23
Registered: July 2009
Junior Member
it looks like there's a bug in the Grid.setColumnOrder() where an
IllegalArgumentException is thrown when passing a valid order sequence.

here's the code snippet:

public static void main(final String[] args) {
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setLayout(new FillLayout());

final Grid grid = new Grid(shell, SWT.FULL_SELECTION | SWT.V_SCROLL |
SWT.H_SCROLL | SWT.BORDER);
final GridColumnGroup group1 = new GridColumnGroup(grid, SWT.TOGGLE);
final GridColumnGroup group2 = new GridColumnGroup(grid, SWT.TOGGLE);
final GridColumnGroup group3 = new GridColumnGroup(grid, SWT.TOGGLE);

new GridColumn(group1, SWT.NONE);
new GridColumn(group2, SWT.NONE);
new GridColumn(group3, SWT.NONE);

grid.setColumnOrder(new int[] { 0, 1, 2 });

shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}


can someone confirm this?
Re: Grid SetColumnOrder [message #51842 is a reply to message #51681] Tue, 22 April 2008 19:34 Go to previous messageGo to next message
Lei is currently offline LeiFriend
Messages: 23
Registered: July 2009
Junior Member
has anyone come across this problem as well? is this a known bug?
Re: Grid SetColumnOrder [message #52471 is a reply to message #51842] Fri, 09 May 2008 18:59 Go to previous message
Jacek Kolodziejczyk is currently offline Jacek KolodziejczykFriend
Messages: 37
Registered: July 2009
Member
Hi,

I think it's a unknown bug, could you report this in bugzilla?
By the way setColumnOrder works fine without column groups.

Jacek

Lei wrote:
> has anyone come across this problem as well? is this a known bug?
Re: Grid SetColumnOrder [message #589407 is a reply to message #51681] Tue, 22 April 2008 19:34 Go to previous message
Lei is currently offline LeiFriend
Messages: 23
Registered: July 2009
Junior Member
has anyone come across this problem as well? is this a known bug?
Re: Grid SetColumnOrder [message #589639 is a reply to message #51842] Fri, 09 May 2008 18:59 Go to previous message
Jacek Kolodziejczyk is currently offline Jacek KolodziejczykFriend
Messages: 37
Registered: July 2009
Member
Hi,

I think it's a unknown bug, could you report this in bugzilla?
By the way setColumnOrder works fine without column groups.

Jacek

Lei wrote:
> has anyone come across this problem as well? is this a known bug?
Previous Topic:Preserving cell selection and focus in GridTableViewer
Next Topic:CalendarCombo on GTK
Goto Forum:
  


Current Time: Thu Dec 26 22:01:39 GMT 2024

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

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

Back to the top