Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Activate CellEditor programmatically
Activate CellEditor programmatically [message #319495] Wed, 22 August 2007 22:50 Go to next message
Eclipse UserFriend
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 #319497 is a reply to message #319495] Thu, 23 August 2007 05:44 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 #319498 is a reply to message #319495] Thu, 23 August 2007 05:47 Go to previous messageGo to next message
Urs Frei is currently offline Urs FreiFriend
Messages: 27
Registered: July 2009
Junior Member
Hi

Try the methode editElement on the ColumnViewer (TableViewer).

Urs


"Kevin" <kevinpriebe@gmail.com> schrieb im Newsbeitrag
news:989591357.10231187823051242.JavaMail.root@cp9.dzone.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 Go to previous messageGo to next message
Eclipse UserFriend
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 #319520 is a reply to message #319517] Thu, 23 August 2007 20:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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
------------------------------------------------------------ --------
Re: Activate CellEditor programmatically [message #319528 is a reply to message #319520] Thu, 23 August 2007 22:35 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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
------------------------------------------------------------ --------
Re: Activate CellEditor programmatically [message #319831 is a reply to message #319528] Mon, 03 September 2007 16:05 Go to previous message
Eclipse UserFriend
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
> ------------------------------------------------------------ --------
Previous Topic:Hyperlink Detection Issue
Next Topic:[DataBinding] Example of multi-cell editable table
Goto Forum:
  


Current Time: Fri Apr 19 21:56:33 GMT 2024

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

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

Back to the top