Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Column layout for Grid similar to TableColumnLayout?
Column layout for Grid similar to TableColumnLayout? [message #45495] Mon, 07 January 2008 19:19 Go to next message
Ryan Norris is currently offline Ryan NorrisFriend
Messages: 18
Registered: July 2009
Junior Member
I've been using the JFace TableViewer and have recently switched to
GridTableViewer. JFace provides TableLayout and TableColumnLayout for
positioning the columns of a table widget using pixel-based and weight-based
column data objects. After I switched to GridTableViewer, I can no longer
use either of these because they are specific to the Table widget.



Are there any plans to provide a layout for the Grid widget that uses
ColumnLayoutData objects?



I looked at creating a GridColumnLayout similar to TableColumnLayout
unfortunately the base class, org.eclipse.jface.layout.AbstractColumnLayout,
and its abstract methods are all package scope and therefore inaccessible.
If this class and its abstract methods were public, a Grid-specific version
could be contributed to and included with the Grid viewer classes.



Thanks,

-Ryan Norris
Re: Column layout for Grid similar to TableColumnLayout? [message #45525 is a reply to message #45495] Mon, 07 January 2008 19:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6649
Registered: July 2009
Senior Member
File a bug against Platform/UI and ask for opening up the API. In the
meanwhile and not to put dependencies on JFace 3.4 you could copy those
classes, I'd suggest.

Tom

Ryan Norris schrieb:
> I've been using the JFace TableViewer and have recently switched to
> GridTableViewer. JFace provides TableLayout and TableColumnLayout for
> positioning the columns of a table widget using pixel-based and weight-based
> column data objects. After I switched to GridTableViewer, I can no longer
> use either of these because they are specific to the Table widget.
>
>
>
> Are there any plans to provide a layout for the Grid widget that uses
> ColumnLayoutData objects?
>
>
>
> I looked at creating a GridColumnLayout similar to TableColumnLayout
> unfortunately the base class, org.eclipse.jface.layout.AbstractColumnLayout,
> and its abstract methods are all package scope and therefore inaccessible.
> If this class and its abstract methods were public, a Grid-specific version
> could be contributed to and included with the Grid viewer classes.
>
>
>
> Thanks,
>
> -Ryan Norris
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: Column layout for Grid similar to TableColumnLayout? [message #45555 is a reply to message #45525] Mon, 07 January 2008 20:08 Go to previous message
Ryan Norris is currently offline Ryan NorrisFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks. I opened the following bug:

Bug 214532 - Open up the API for
org.eclipse.jface.layout.AbstractColumnLayout
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214532


"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:fltu8m$q44$1@build.eclipse.org...
> File a bug against Platform/UI and ask for opening up the API. In the
> meanwhile and not to put dependencies on JFace 3.4 you could copy those
> classes, I'd suggest.
>
> Tom
>
> Ryan Norris schrieb:
>> I've been using the JFace TableViewer and have recently switched to
>> GridTableViewer. JFace provides TableLayout and TableColumnLayout for
>> positioning the columns of a table widget using pixel-based and
>> weight-based column data objects. After I switched to GridTableViewer, I
>> can no longer use either of these because they are specific to the Table
>> widget.
>>
>>
>>
>> Are there any plans to provide a layout for the Grid widget that uses
>> ColumnLayoutData objects?
>>
>>
>>
>> I looked at creating a GridColumnLayout similar to TableColumnLayout
>> unfortunately the base class,
>> org.eclipse.jface.layout.AbstractColumnLayout, and its abstract methods
>> are all package scope and therefore inaccessible. If this class and its
>> abstract methods were public, a Grid-specific version could be
>> contributed to and included with the Grid viewer classes.
>>
>>
>>
>> Thanks,
>>
>> -Ryan Norris
>>
>>
>
>
> --
> B e s t S o l u t i o n . at
> ------------------------------------------------------------ --------
> Tom Schindl JFace-Committer
> ------------------------------------------------------------ --------
Re: Column layout for Grid similar to TableColumnLayout? [message #587237 is a reply to message #45495] Mon, 07 January 2008 19:24 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6649
Registered: July 2009
Senior Member
File a bug against Platform/UI and ask for opening up the API. In the
meanwhile and not to put dependencies on JFace 3.4 you could copy those
classes, I'd suggest.

Tom

Ryan Norris schrieb:
> I've been using the JFace TableViewer and have recently switched to
> GridTableViewer. JFace provides TableLayout and TableColumnLayout for
> positioning the columns of a table widget using pixel-based and weight-based
> column data objects. After I switched to GridTableViewer, I can no longer
> use either of these because they are specific to the Table widget.
>
>
>
> Are there any plans to provide a layout for the Grid widget that uses
> ColumnLayoutData objects?
>
>
>
> I looked at creating a GridColumnLayout similar to TableColumnLayout
> unfortunately the base class, org.eclipse.jface.layout.AbstractColumnLayout,
> and its abstract methods are all package scope and therefore inaccessible.
> If this class and its abstract methods were public, a Grid-specific version
> could be contributed to and included with the Grid viewer classes.
>
>
>
> Thanks,
>
> -Ryan Norris
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: Column layout for Grid similar to TableColumnLayout? [message #587251 is a reply to message #45525] Mon, 07 January 2008 20:08 Go to previous message
Ryan Norris is currently offline Ryan NorrisFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks. I opened the following bug:

Bug 214532 - Open up the API for
org.eclipse.jface.layout.AbstractColumnLayout
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214532


"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:fltu8m$q44$1@build.eclipse.org...
> File a bug against Platform/UI and ask for opening up the API. In the
> meanwhile and not to put dependencies on JFace 3.4 you could copy those
> classes, I'd suggest.
>
> Tom
>
> Ryan Norris schrieb:
>> I've been using the JFace TableViewer and have recently switched to
>> GridTableViewer. JFace provides TableLayout and TableColumnLayout for
>> positioning the columns of a table widget using pixel-based and
>> weight-based column data objects. After I switched to GridTableViewer, I
>> can no longer use either of these because they are specific to the Table
>> widget.
>>
>>
>>
>> Are there any plans to provide a layout for the Grid widget that uses
>> ColumnLayoutData objects?
>>
>>
>>
>> I looked at creating a GridColumnLayout similar to TableColumnLayout
>> unfortunately the base class,
>> org.eclipse.jface.layout.AbstractColumnLayout, and its abstract methods
>> are all package scope and therefore inaccessible. If this class and its
>> abstract methods were public, a Grid-specific version could be
>> contributed to and included with the Grid viewer classes.
>>
>>
>>
>> Thanks,
>>
>> -Ryan Norris
>>
>>
>
>
> --
> B e s t S o l u t i o n . at
> ------------------------------------------------------------ --------
> Tom Schindl JFace-Committer
> ------------------------------------------------------------ --------
Previous Topic:Column layout for Grid similar to TableColumnLayout?
Next Topic:How to cancel keyboard event in the Grid?
Goto Forum:
  


Current Time: Wed Dec 07 01:37:14 GMT 2022

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

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

Back to the top