Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » overriding property handling globally
overriding property handling globally [message #126264] Thu, 15 June 2006 19:06 Go to next message
Ernest Pasour is currently offline Ernest PasourFriend
Messages: 65
Registered: July 2009
Member
Is it possible to override property editing for all widgets?

What I want is to supply special handling for the "model" property of
all widgets. If I don't have any special handling available for the
particular widget, I want to delegate to the default handling.
Re: overriding property handling globally [message #126278 is a reply to message #126264] Thu, 15 June 2006 20:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jefmyers.us.ibm.com

Ernest,

If your widgets have a common base class with the model property, you
should be able to specify the property editor in an override on that
class, then override the override on subclasses when necessary.

Hope this helps,
- Jeff
Re: overriding property handling globally [message #126326 is a reply to message #126278] Fri, 16 June 2006 13:17 Go to previous message
Ernest Pasour is currently offline Ernest PasourFriend
Messages: 65
Registered: July 2009
Member
Jeff,

What I really want to do is to allow my users to assign the model
property of arbitrary widgets (if I have a connection that can be made).
So if they've dropped a JList, I want to discover that and allow them
to select from any data sources that I know about that are adaptable to
a ListModel. However, if the argument to setModel is not relevant to
me, then I would just let the default property editing take place.

What I have kind of working at the moment is a context menu item that
gets added to widgets. When the user invokes the context menu for a
JList object, I decide what sort of hookup (if any) is available.

I'm just trying to see if it's possible to get that same behavior in the
property sheet.

Thanks,
-Ernest

Jeff Myers wrote:
> Ernest,
>
> If your widgets have a common base class with the model property, you
> should be able to specify the property editor in an override on that
> class, then override the override on subclasses when necessary.
>
> Hope this helps,
> - Jeff
Re: overriding property handling globally [message #613353 is a reply to message #126264] Thu, 15 June 2006 20:38 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
Ernest,

If your widgets have a common base class with the model property, you
should be able to specify the property editor in an override on that
class, then override the override on subclasses when necessary.

Hope this helps,
- Jeff
Re: overriding property handling globally [message #613357 is a reply to message #126278] Fri, 16 June 2006 13:17 Go to previous message
Ernest Pasour is currently offline Ernest PasourFriend
Messages: 65
Registered: July 2009
Member
Jeff,

What I really want to do is to allow my users to assign the model
property of arbitrary widgets (if I have a connection that can be made).
So if they've dropped a JList, I want to discover that and allow them
to select from any data sources that I know about that are adaptable to
a ListModel. However, if the argument to setModel is not relevant to
me, then I would just let the default property editing take place.

What I have kind of working at the moment is a context menu item that
gets added to widgets. When the user invokes the context menu for a
JList object, I decide what sort of hookup (if any) is available.

I'm just trying to see if it's possible to get that same behavior in the
property sheet.

Thanks,
-Ernest

Jeff Myers wrote:
> Ernest,
>
> If your widgets have a common base class with the model property, you
> should be able to specify the property editor in an override on that
> class, then override the override on subclasses when necessary.
>
> Hope this helps,
> - Jeff
Previous Topic:overriding property handling globally
Next Topic:In which state is creating of new tutorials for VE
Goto Forum:
  


Current Time: Tue Apr 23 10:38:59 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