Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ComboBoxCellEditor and TableViewer
ComboBoxCellEditor and TableViewer [message #463127] Thu, 27 October 2005 12:07 Go to next message
Eclipse UserFriend
Originally posted by: christian.zimmer.berata.com

Hello,

I have encountered a problem while working with the JFace TableViewer.

The TableViewer has a table, which contains 6 columns.
The first column is not editable, the others are modified by the
ComboBoxCellEditor.

Evrything works fine, except i can't influence the width of the combo box
while it is displayed. I checked the eclipse help, which says that the
standard width is 50. How can i change this value ?
Re: ComboBoxCellEditor and TableViewer [message #463131 is a reply to message #463127] Thu, 27 October 2005 14:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hsk2840.gmail.com

> Evrything works fine, except i can't influence the width of the combo box
> while it is displayed. I checked the eclipse help, which says that the
> standard width is 50. How can i change this value ?

As far as I remember there is a setMinimumWidth() or something like that?
Re: ComboBoxCellEditor and TableViewer [message #463160 is a reply to message #463131] Fri, 28 October 2005 11:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian.zimmer.berata.com

Thanks for your answer, but unfortunately this method does not exist for
the class CellEditor.
Re: ComboBoxCellEditor and TableViewer [message #463373 is a reply to message #463160] Fri, 04 November 2005 16:58 Go to previous message
David Moon is currently offline David MoonFriend
Messages: 2
Registered: July 2009
Junior Member
I have also ran into this problem when trying to use the ComboBoxCellEditor
for a pocket pc app. I ended up writting my own ComoBoxCellEditor for
another reason but I did change the code in the getLayoutData() method to
adjust the witdh of the combo. You might try extending the class and
overriding that method.

"Christian Zimmer" <christian.zimmer@berata.com> wrote in message
news:edddcadb83cf1c3c38c1a4715900d10a$1@www.eclipse.org...
> Thanks for your answer, but unfortunately this method does not exist for
> the class CellEditor.
>
>
Previous Topic:How to detect double mouse click in table cell?
Next Topic:How to stop Text from resizing ?
Goto Forum:
  


Current Time: Tue Apr 16 17:04:25 GMT 2024

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

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

Back to the top