Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » An AdapterFactoryPropertiesFormProvider?
An AdapterFactoryPropertiesFormProvider? [message #418956] Mon, 05 May 2008 16:35 Go to next message
Eclipse UserFriend
Originally posted by: jconlon.apache.org

Have been experimenting with the PropertySheetForm code from
https://bugs.eclipse.org/bugs/show_bug.cgi?id=75625#c60
which generates a databinding form based view to edit EObjects.

With a couple of tweaks the PropertySheetForm already looks better than
the default properties view!

So to take it to the next level, would like create customized forms for
each of my model elements. Thinking of implementing something like

public interface IPropertiesFormProvider {
void fillPropertiesFolder(IStructuredSelection structuredSelection,
CTabFolder cTabFolder);
}

on each of the model ItemProviders.

And to also create something like an
AdapterFactoryPropertiesFormProvider which would be similar to our
org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvid er.

Does this make sense?

Thanks for any input.

kind regards,
John Conlon
Re: An AdapterFactoryPropertiesFormProvider? [message #418957 is a reply to message #418956] Mon, 05 May 2008 17:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070208060807020400040308
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

John,

It makes sense, but...

The "but" is because the item providers themselves are designed to be
platform independent. They contain no references to SWT or JFace and
can function stand-alone without non-EMF libraries. So we've always
taken the approach of describing what's needed. I'm not sure how this
will all pan out. I'm hoping Jim and Yves Yang will get involved:
< http://www.eclipsecon.org/2008/index.php?page=sub/&id=56>

http://www.eclipsecon.org/2008/index.php?page=sub/&id=56
< http://www.eclipsecon.org/2008/index.php?page=sub/&id=56>


John E. Conlon wrote:
> Have been experimenting with the PropertySheetForm code from
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=75625#c60
> which generates a databinding form based view to edit EObjects.
>
> With a couple of tweaks the PropertySheetForm already looks better
> than the default properties view!
>
> So to take it to the next level, would like create customized forms
> for each of my model elements. Thinking of implementing something like
>
> public interface IPropertiesFormProvider {
> void fillPropertiesFolder(IStructuredSelection
> structuredSelection, CTabFolder cTabFolder);
> }
>
> on each of the model ItemProviders.
>
> And to also create something like an
> AdapterFactoryPropertiesFormProvider which would be similar to our
> org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvid er.
>
> Does this make sense?
>
> Thanks for any input.
>
> kind regards,
> John Conlon
>
>
>


--------------070208060807020400040308
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
John,<br>
<br>
It makes sense, but...<br>
<br>
The "but" is because the item providers themselves are designed to be
platform independent.&nbsp; They contain no references to SWT or JFace and
can function stand-alone without non-EMF libraries.&nbsp; So we've always
taken the approach of describing what's needed.&nbsp; I'm not sure how this
will all pan out.&nbsp; I'm hoping Jim and Yves Yang will get involved:<a
href="http://www.eclipsecon.org/2008/index.php?page=sub/&amp;id=56"><br>
</a>
<blockquote><a
href="http://www.eclipsecon.org/2008/index.php?page=sub/&amp;id=56">http://www.eclipsecon.org/2008/index.php?page=sub/&amp;id=56</a><br>
</blockquote>
<br>
John E. Conlon wrote:
<blockquote cite="mid:fvnd04$n5$1@build.eclipse.org" type="cite">Have
been experimenting with the PropertySheetForm code from
<br>
<a class="moz-txt-link-freetext" href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=75625#c60">https://bugs.eclipse.org/bugs/show_bug.cgi?id=75625#c60</a>
<br>
which generates a databinding form based view to edit EObjects.
<br>
<br>
With a couple of tweaks the PropertySheetForm already looks better than
the default properties view!
<br>
<br>
So to take it to the next level, would like create customized forms for
each of my model elements. Thinking of implementing something like
<br>
<br>
public interface IPropertiesFormProvider {
<br>
&nbsp;&nbsp;&nbsp;&nbsp;void fillPropertiesFolder(IStructuredSelection structuredSelection,
CTabFolder cTabFolder);
<br>
}
<br>
<br>
on each of the model ItemProviders.
<br>
<br>
And to also create something like an
AdapterFactoryPropertiesFormProvider which would be similar to our
org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvid er.
<br>
<br>
Does this make sense?
<br>
<br>
Thanks for any input.
<br>
<br>
kind regards,
<br>
John Conlon
<br>
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>

--------------070208060807020400040308--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: An AdapterFactoryPropertiesFormProvider? [message #418959 is a reply to message #418957] Mon, 05 May 2008 18:15 Go to previous message
Eclipse UserFriend
Originally posted by: jconlon.apache.org

Ed,
See comments.

Ed Merks wrote:
> John,
>
> It makes sense, but...
>
> The "but" is because the item providers themselves are designed to be
> platform independent. They contain no references to SWT or JFace and
> can function stand-alone without non-EMF libraries.
Yep - just thinking that as well.

I guess one would have to come up with some facade for a CTabFolder to
abstract out the swt dependencies.

So we've always
> taken the approach of describing what's needed. I'm not sure how this
> will all pan out. I'm hoping Jim and Yves Yang will get involved:
> < http://www.eclipsecon.org/2008/index.php?page=sub/&id=56>
>
> http://www.eclipsecon.org/2008/index.php?page=sub/&id=56
> < http://www.eclipsecon.org/2008/index.php?page=sub/&id=56>

Been watching it - think their work will bring to EMF a new set of
modeling enthusiasts.

Guess I'll just hack something up in the mean time and wait for the gui
modeling tools to emerge.

>
> John E. Conlon wrote:
>> Have been experimenting with the PropertySheetForm code from
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=75625#c60
>> which generates a databinding form based view to edit EObjects.
>>
>> With a couple of tweaks the PropertySheetForm already looks better
>> than the default properties view!
>>
>> So to take it to the next level, would like create customized forms
>> for each of my model elements. Thinking of implementing something like
>>
>> public interface IPropertiesFormProvider {
>> void fillPropertiesFolder(IStructuredSelection
>> structuredSelection, CTabFolder cTabFolder);
>> }
>>
>> on each of the model ItemProviders.
>>
>> And to also create something like an
>> AdapterFactoryPropertiesFormProvider which would be similar to our
>> org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvid er.
>>
>> Does this make sense?
>>
>> Thanks for any input.
>>
>> kind regards,
>> John Conlon
>>
>>
>>
>
Previous Topic:Generate Composed Adapter Factory
Next Topic:Listening for Transaction Begin
Goto Forum:
  


Current Time: Thu Apr 25 22:27:58 GMT 2024

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

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

Back to the top