Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [JFace] ViewerColumn and EditingSupport
[JFace] ViewerColumn and EditingSupport [message #327927] Thu, 08 May 2008 14:31 Go to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Is there any particular reason why ViewerColumn.getEditingSupport() is
not public or at least protected?
I've written a "builder" that builds custom TableViewerColumns using
custom EditingSupports and CellEditors. The clients of this builder
sometimes need access to the EditingSupport (my custom subclass), but
there is no easy way for them to access it because getEditingSupport()
is only package-visible.

I understand the SWT/JFace philosophy of minimalism when it comes to
API, but a public getter for something that already has a public setter
seems like a reasonable request. As it is, I have to subclass
ViewerColumn, and I can't even subclass TableViewerColumn because it is
final (argh!).

I was thinking of filing a bug about it, but maybe there is a
pre-existing reason it is the way it is...?

Eric
Re: [JFace] ViewerColumn and EditingSupport [message #328018 is a reply to message #327927] Mon, 12 May 2008 17:22 Go to previous message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
You will notice that ColumnViewer.getViewerColumn(int) is also not API. At
least we are consistent... ;-)

Our thinking was that you should not have to do anything with column objects
and editing support after they have been set up. Feel free to open a bug
and convince us otherwise!

Boris

"Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
news:fvv2so$cbq$1@build.eclipse.org...
> Is there any particular reason why ViewerColumn.getEditingSupport() is not
> public or at least protected?
> I've written a "builder" that builds custom TableViewerColumns using
> custom EditingSupports and CellEditors. The clients of this builder
> sometimes need access to the EditingSupport (my custom subclass), but
> there is no easy way for them to access it because getEditingSupport() is
> only package-visible.
>
> I understand the SWT/JFace philosophy of minimalism when it comes to API,
> but a public getter for something that already has a public setter seems
> like a reasonable request. As it is, I have to subclass ViewerColumn, and
> I can't even subclass TableViewerColumn because it is final (argh!).
>
> I was thinking of filing a bug about it, but maybe there is a pre-existing
> reason it is the way it is...?
>
> Eric
Previous Topic:Update Site Project - some issues
Next Topic:Suggestion: Syntax Coloring Eclipse 3.4
Goto Forum:
  


Current Time: Thu Aug 29 12:38:02 GMT 2024

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

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

Back to the top