Activate CellEditor programmatically [message #319495] |
Wed, 22 August 2007 22:50 |
Eclipse User |
|
|
|
Originally posted by: kevinpriebe.gmail.com
Hi, I am using the new TableViewer editing support in 3.3 using TableViewerColumn.setEditingSupport(EditingSupport). I can't figure out how to activate a specific cell's editor programmatically. I have a button at the top of the table to add a new record. When you press this button I add a new blank row in the table and I want to put the cursor in the first cell editor of that row ready to enter data. Is there a way to do this? Thanks,
Kevin
|
|
|
|
|
Re: Activate CellEditor programmatically [message #319517 is a reply to message #319497] |
Thu, 23 August 2007 19:41 |
Eclipse User |
|
|
|
Originally posted by: gokuiuc.yahoo.com
Hello,
I have a question on the TableViewer.editElement or TreeViewer.editElement
methods. When I call those methods programmatically in Eclipse 3.3 and if I
have a large table or tree, and the element is outside the current viewing
area, then the editElement doesn't automatically scroll to or expand the
element. It was automatically scrolling to or expanding the element in
Eclipse 3.2. What has changed and what must I do to do that again?
Thanks,
Gokhan
"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:faj6rf$beg$1@build.eclipse.org...
> TableViewer#editElement(Object,int)
>
> Tom
>
> Kevin schrieb:
>> Hi, I am using the new TableViewer editing support in 3.3 using
>> TableViewerColumn.setEditingSupport(EditingSupport). I can't figure out
>> how to activate a specific cell's editor programmatically. I have a
>> button at the top of the table to add a new record. When you press this
>> button I add a new blank row in the table and I want to put the cursor in
>> the first cell editor of that row ready to enter data. Is there a way to
>> do this? Thanks,
>>
>> Kevin
>
>
> --
> B e s t S o l u t i o n . at
> ------------------------------------------------------------ --------
> Tom Schindl JFace-Committer
> ------------------------------------------------------------ --------
|
|
|
|
|
Re: Activate CellEditor programmatically [message #319831 is a reply to message #319528] |
Mon, 03 September 2007 16:05 |
Eclipse User |
|
|
|
Originally posted by: gokuiuc.yahoo.com
Sorry for my late reply. I have seen that the bug has been fixed in bugzilla
now. My temporary solution is to use TableViewer.reveal() or
TreeViewer.reveal() until I get the bugfix through a standard release of
Eclipse.
Gokhan
"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:fal23o$ss5$1@build.eclipse.org...
> Hi,
>
> I've logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=201002.
>
> Tom
>
> Tom Schindl schrieb:
>> Looks like a regression please file a bug and provide a test-case.
>>
>> Tom
>>
>> Gokhan schrieb:
>>> Hello,
>>>
>>> I have a question on the TableViewer.editElement or
>>> TreeViewer.editElement methods. When I call those methods
>>> programmatically in Eclipse 3.3 and if I have a large table or tree, and
>>> the element is outside the current viewing area, then the editElement
>>> doesn't automatically scroll to or expand the element. It was
>>> automatically scrolling to or expanding the element in Eclipse 3.2. What
>>> has changed and what must I do to do that again?
>>>
>>> Thanks,
>>>
>>> Gokhan
>>>
>>>
>>>
>>>
>>> "Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
>>> news:faj6rf$beg$1@build.eclipse.org...
>>>> TableViewer#editElement(Object,int)
>>>>
>>>> Tom
>>>>
>>>> Kevin schrieb:
>>>>> Hi, I am using the new TableViewer editing support in 3.3 using
>>>>> TableViewerColumn.setEditingSupport(EditingSupport). I can't figure
>>>>> out how to activate a specific cell's editor programmatically. I have
>>>>> a button at the top of the table to add a new record. When you press
>>>>> this button I add a new blank row in the table and I want to put the
>>>>> cursor in the first cell editor of that row ready to enter data. Is
>>>>> there a way to do this? Thanks,
>>>>>
>>>>> Kevin
>>>>
>>>> --
>>>> B e s t S o l u t i o n . at
>>>> ------------------------------------------------------------ --------
>>>> Tom Schindl JFace-Committer
>>>> ------------------------------------------------------------ --------
>>>
>>>
>>
>>
>
>
> --
> B e s t S o l u t i o n . at
> ------------------------------------------------------------ --------
> Tom Schindl JFace-Committer
> ------------------------------------------------------------ --------
|
|
|
Powered by
FUDForum. Page generated in 0.03152 seconds