Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problems with CellEditor
Problems with CellEditor [message #459107] Tue, 02 August 2005 07:39 Go to next message
Philipp is currently offline PhilippFriend
Messages: 49
Registered: July 2009
Member
This is a multipart message in MIME format.
--=_alternative 002A190FC1257051_=
Content-Type: text/plain; charset="US-ASCII"

Hi All,

I have a table with 3 columns and I want to have a DialogCellEditor in the
second one. I create my the cell editor like this ...

private CellEditor[] createCellEditors() {
CellEditor[] editors = new CellEditor[3];

fCellEditor = new
ParameterValueCellEditor(fParameterTable);

fCellEditor.setTabbedPropertySheetPage(this
.getTabbedPropertySheetPage());

//second column
editors[1] = fCellEditor;

return editors;

}

and then I set the editors like this ...

CellEditor[] editors = createCellEditors();
fParameterTableViewer.setCellEditors(editors);

My problem is that I can not directly access the editor in the second
column by click, but first have to select the item in the first column.
Then I can click in the second column and open the dialog.
This seems weird. Do I have to make any settings to my table columns,
table or cell editor ? It seems like I can not select multiple items or a
complete row in the table.

Any help is appreciated,
thx

-philipp
--=_alternative 002A190FC1257051_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi All,</font>
<br>
<br><font size=2 face="sans-serif">I have a table with 3 columns and I
want to have a DialogCellEditor in the second one. I create my the cell
editor like this ...</font>
<br>
<br><font size=2 face="sans-serif">private CellEditor[] createCellEditors()
{</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; CellEditor[] editors = new CellEditor[3];</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; fCellEditor = new ParameterValueCellEditor(fParameterTable);</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; fCellEditor.setTabbedPropertySheetPage(this</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; .getTabbedPropertySheetPage());</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; //second column</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; editors[1] = fCellEditor;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; return editors;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br>
<br><font size=2 face="sans-serif">and then I set the editors like this
...</font>
<br>
<br><font size=2 face="sans-serif">CellEditor[] editors = createCellEditors();</font>
<br><font size=2 face="sans-serif">fParameterTableViewer.setCellEditors(editors); </font>
<br>
<br><font size=2 face="sans-serif">My problem is that I can not directly
access the editor in the second column by click, but first have to select
the item in the first column. Then I can click in the second column and
open the dialog. </font>
<br><font size=2 face="sans-serif">This seems weird. Do I have to make
any settings to my table columns, table or cell editor ? It seems like
I can not select multiple items or a complete row in the table.</font>
<br>
<br><font size=2 face="sans-serif">Any help is appreciated,</font>
<br><font size=2 face="sans-serif">thx</font>
<br>
<br><font size=2 face="sans-serif">-philipp</font>
--=_alternative 002A190FC1257051_=--
Re: Problems with CellEditor [message #459117 is a reply to message #459107] Tue, 02 August 2005 12:35 Go to previous message
Philipp is currently offline PhilippFriend
Messages: 49
Registered: July 2009
Member
This is a multipart message in MIME format.
--=_alternative 00452914C1257051_=
Content-Type: text/plain; charset="US-ASCII"

Got that to run. I Forgot to create the table with SWT.FULL_SELECTION

-philipp
--=_alternative 00452914C1257051_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Got that to run. I Forgot to create
the table with SWT.FULL_SELECTION</font>
<br>
<br><font size=2 face="sans-serif">-philipp</font>
--=_alternative 00452914C1257051_=--
Previous Topic:What SWT Layout ?
Next Topic:Check in Table Editor
Goto Forum:
  


Current Time: Sun Oct 25 15:20:31 GMT 2020

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

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

Back to the top