[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: [Databinding] Generic visualization of EObjects

Hi Tom,

Here is the url to Ed's patch.
https://bugs.eclipse.org/bugs/attachment.cgi?id=82033

While I am not using the patched class, I have taken some ideas from it to get to the point I am at. Again - I am leveraging the genmodel decorated Edit attributes like description, categories, and filter flags to add more visual coherence to the form.

As it turned out I began this attempt two months ago and promptly paged out all knowledge of databinding since then:( So now I will review to recover lost ground, refactor so it is more applicable to generic emf usage and then try to advance the solution farther.

Alternatively if someone has already created a generic form to replace the Properties view for EMF, I will defer to that effort, if not, I would like to move what I have forward and contribute it back to the community.


cheers, John



Tom Schindl wrote:
Hi John,

Maybe I'm blind but it couldn't find a patch which gives me a starting
point in bug #75625. I'm traveling the next 2 weeks but if you could
give me some code to play with I'll try to take a look though I can't
promise because my schedule for the next month is fairly tight.

Tom

John E. Conlon schrieb:
Ed,
see inline...

Ed Merks wrote:
John,

Maybe Tom has some experience with this...
Hope so.  So far, I am fairly encouraged by how well the view looks
based on what you have done in your patch and the hacks I have added to
visualize this in a master-detail view that uses the GenModel Property
Categories as labeled Widget Groups and Property Descriptions as tool
tips on the detail side.  With a little more work it may even prove an
acceptable replacement for our Properties View.


Looking at what
org.eclipse.emf.edit.ui.provider.PropertyDescriptor.createPropertyEditor
does and at how some of the specialized cell editors it used are
implemented would likely help...
thanks for the reminder.

John

John E. Conlon wrote:
Am attempting to expand the Forms Editor that Ed provided in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=75625

Have been able to deal with EAttributes 0..1 using text and combo
widgets. But still need to:

 1.  visualize and bind features that are EReferences (0..1 and 0..N)?

 2.  and to duplicate the functionality that the Property View
provides by displaying EMF validation error messages in the Workbench
status line.

Are there any snippets or Examples that demonstrates these?

thanks,
John