Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » BooleanCellEditor or CheckboxCellEditor in JFace Snippet 056?
BooleanCellEditor or CheckboxCellEditor in JFace Snippet 056? [message #488489] Mon, 28 September 2009 17:07 Go to next message
Eclipse UserFriend
R3.4.1
WinXP

I tried copying Snippet 56 (from here:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet056BooleanCellEditor.java?view=markup
) into my WS, and the BooleanCellEditor class does not seem to exist --
what's up?

(I am using the existing CheckboxCellEditor instead.)

thanks,
Paul
Re: BooleanCellEditor or CheckboxCellEditor in JFace Snippet 056? [message #488533 is a reply to message #488489] Tue, 29 September 2009 03:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

It's not part of JFace itself but of the snippet package so if you check
out the sources or navigate in the browser to the parent of the file you
downloaded you'll see the CellEditor.

BTW the best snippet we have for this is:
http://wiki.eclipse.org/JFaceSnippets#Snippet061FakedNativeC ellEditor
because it makes your UI look like using native checkboxes whereas they
are only dynamic screenshots

Tom

Paul E. Keyser schrieb:
> R3.4.1
> WinXP
>
> I tried copying Snippet 56 (from here:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet056BooleanCellEditor.java?view=markup
>
> ) into my WS, and the BooleanCellEditor class does not seem to exist --
> what's up?
>
> (I am using the existing CheckboxCellEditor instead.)
>
> thanks,
> Paul
Re: BooleanCellEditor or CheckboxCellEditor in JFace Snippet 056? [message #488601 is a reply to message #488533] Tue, 29 September 2009 08:11 Go to previous message
Eclipse UserFriend
Tom Schindl wrote:
> Hi,
>
> It's not part of JFace itself but of the snippet package so if you check
> out the sources or navigate in the browser to the parent of the file you
> downloaded you'll see the CellEditor.
>
> BTW the best snippet we have for this is:
> http://wiki.eclipse.org/JFaceSnippets#Snippet061FakedNativeC ellEditor
> because it makes your UI look like using native checkboxes whereas they
> are only dynamic screenshots

I'm a great fan of the "faking-native" check boxes idea but if I
remember correctly the above example looks a bit unnatural compared
to the native check-boxes because it's centered and not left-aligned.

We also use the snap-shot technique, but we let the label provider
return an image and use an EditingSupport with a CheckboxCellEditor.

- Daniel
Previous Topic:Cell Editing (Table) -- no cell-editor visible?
Next Topic:IWorkspaceRoot getFolder()
Goto Forum:
  


Current Time: Sun Jul 27 05:51:29 EDT 2025

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

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

Back to the top