Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Re: JFace Table Viewer Editor
Re: JFace Table Viewer Editor [message #332361] Mon, 20 October 2008 13:38 Go to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 10/18/2008 6:30 PM, Jared Warren wrote:
> First off - I'm not sure if this is the right place for JFace questions.
> If it's not, please kindly tell me to shove off (and, if you can,
> point me in the right direction.)

JFace is a layer above SWT, so JFace questions are best posted to the
eclipse.platform newsgroup. I've copied that group to this thread.

More below...

> I have two different applications using the JFace TableViewer. In each
> case, after I've added my CellModifiers and I start trying to edit the
> contents of the cells, I have to click in the first column of a given
> row before I can click into other columns of the same row to edit. Is
> there a common "oopsie" that can cause this problem?

You are probably better off using the newer viewer-editing API
(org.eclipse.jface.viewers.EditingSupport). There are several examples
on the JFace snippets page,
http://wiki.eclipse.org/index.php/JFaceSnippets (for example,
http://wiki.eclipse.org/index.php/JFaceSnippets#Snippet019Ta bleViewerAddRemoveColumnsWithEditingNewAPI)

Hope this helps,
Eric
Re: JFace Table Viewer Editor [message #332375 is a reply to message #332361] Mon, 20 October 2008 16:29 Go to previous message
Jared Warren is currently offline Jared WarrenFriend
Messages: 1
Registered: July 2009
Junior Member
Eric Rizzo wrote:

Both of you were correct....

I wasn't including SWT.FULL_SELECTION in the style (which fixed the bug),
and the new Editing framework does look like it would be a better option -
I'll be switching to it as I continue work.

Thanks,
jared

> On 10/18/2008 6:30 PM, Jared Warren wrote:
>> First off - I'm not sure if this is the right place for JFace questions.
>> If it's not, please kindly tell me to shove off (and, if you can,
>> point me in the right direction.)

> JFace is a layer above SWT, so JFace questions are best posted to the
> eclipse.platform newsgroup. I've copied that group to this thread.

> More below...

>> I have two different applications using the JFace TableViewer. In each
>> case, after I've added my CellModifiers and I start trying to edit the
>> contents of the cells, I have to click in the first column of a given
>> row before I can click into other columns of the same row to edit. Is
>> there a common "oopsie" that can cause this problem?

> You are probably better off using the newer viewer-editing API
> (org.eclipse.jface.viewers.EditingSupport). There are several examples
> on the JFace snippets page,
> http://wiki.eclipse.org/index.php/JFaceSnippets (for example,
>
http://wiki.eclipse.org/index.php/JFaceSnippets#Snippet019Ta bleViewerAddRemoveColumnsWithEditingNewAPI)

> Hope this helps,
> Eric
Previous Topic:view action delegate with sub menu ...
Next Topic:Building a custom text editor with line numbers
Goto Forum:
  


Current Time: Thu Dec 26 11:54:48 GMT 2024

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

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

Back to the top