Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » scrollbars on TableViewer whether specified or not
scrollbars on TableViewer whether specified or not [message #120644] Fri, 06 February 2009 08:22 Go to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Hi,

(I am sure I am doing something silly here, but I have spent ages trying
to work it out...)

Thanks,

I have a tableViewer which I am wanting to fill my ViewPart - and then put
Horizontal and Vertical scrollbars as necessary, however I seem to get
scrollbars whatever I select for style.

public void createPartControl(final Composite parent) {
Composite contents = new Composite(parent, SWT.NONE | SWT.BORDER);
GridLayout glout1 = new GridLayout(1, false);

contents.setLayout(glout1);
GridData gridData = new GridData();
gridData.horizontalAlignment = SWT.FILL;
gridData.grabExcessVerticalSpace = true;
gridData.grabExcessHorizontalSpace = true;
gridData.verticalAlignment = SWT.FILL;

viewer = new TableViewer(contents, SWT.NONE | SWT.BORDER |
SWT.FULL_SELECTION);

final Table table = viewer.getTable();
table.setLayoutData(gridData);

viewer.setContentProvider(new SecurityListContentProvider());
SecurityListLabelProvider lp = new SecurityListLabelProvider();

lp.createColumns(viewer);
viewer.setLabelProvider(lp);
viewer.addDoubleClickListener( this );
viewer.setInput(getViewSite());
table.setLinesVisible(false);
}
Re: scrollbars on TableViewer whether specified or not [message #120658 is a reply to message #120644] Fri, 06 February 2009 08:33 Go to previous messageGo to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Ah it looks like there is a bug for it;
https://bugs.eclipse.org/bugs/show_bug.cgi?id=235087

I'll look into the patch. Tom
Re: scrollbars on TableViewer whether specified or not [message #120690 is a reply to message #120658] Fri, 06 February 2009 08:49 Go to previous message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Ah, it looks like the patch is for a Tree and not a Table, so this is the
bug;
https://bugs.eclipse.org/bugs/show_bug.cgi?id=235087

is there any workaround?
Thanks,

Tom
Previous Topic:putting Titles on the coolbar icons
Next Topic:Focus rectangle always visible in Opera
Goto Forum:
  


Current Time: Wed Dec 01 04:42:50 GMT 2021

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

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

Back to the top