Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 21:07 Go to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
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 07:39 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5467
Registered: July 2009
Senior Member
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 12:11 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
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: Wed Nov 26 01:55:44 GMT 2014

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

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