Home » Modeling » GMF (Graphical Modeling Framework) » Dynamic model loading in GMF
Dynamic model loading in GMF [message #41984] |
Thu, 07 September 2006 10:20  |
Eclipse User |
|
|
|
Hi,
Assume two models A and B each of them in a separate plugin where model
B extends some classes in model A. Also assume that model A has a GMF
editor. Does GMF support the feature of automatically adding the
subclasses in model B to the editor palette of model A?
|
|
| | | | |
Re: Dynamic model loading in GMF [message #43060 is a reply to message #42993] |
Fri, 08 September 2006 11:18   |
Eclipse User |
|
|
|
It seems to me there were two questions:
1. Could you explain more why GMF does not support the feature of
automatically adding the subclasses from extended models found in another
plug-in?
A: Because it was never a requirement to do so. If you would like this
added as an enhancement, please enter a bugzilla. We'd welcome your
contribution on this request as well.
2. If EMF supported this feature, would it affect GMF to automatically add
the children?
A: Perhaps it's best to begin with EMF on this one?
Thanks,
Rich
On 9/8/06 10:59 AM, in article eds0hh$g06$1@utils.eclipse.org, "Ali"
<saveez@hotmail.com> wrote:
> Well, is that a yes or no? Can someone explain why yes or why not? Any
> examples?
>
> Michael Golubev wrote:
>> <Please excuse me, but I am in fact forced to write this comment:>
>>
>> Yes.
>>
>> "Ali" <saveez@hotmail.com> wrote in message
>> news:edrkbk$rnu$1@utils.eclipse.org...
>>> Artem,
>>>
>>> Thanks for the short and informative answer. Could you explain more why
>>> GMF does not support this and if EMF supported this feature, would it
>>> affect GMF to automatically add the children?
>>>
>>> Assume a plug-in-based graphical editor with a palette where the users can
>>> develop their own plug-ins and these plug-ins appear as more tools in the
>>> palette. Of course Eclipse is an excellent choice for such an IDE,
>>> however, ironically neither EMF nor GMF do not support this. At the same
>>> time, the plug-in architecture of Eclipse seems to be of no use.
>>>
>>>
>>> Artem Tikhomirov wrote:
>>>> No.
>>>>
>>>> "Ali" <saveez@hotmail.com> wrote in message
>>>> news:edp9s6$oh5$1@utils.eclipse.org...
>>>>> Hi,
>>>>>
>>>>> Assume two models A and B each of them in a separate plugin where model
>>>>> B extends some classes in model A. Also assume that model A has a GMF
>>>>> editor. Does GMF support the feature of automatically adding the
>>>>> subclasses in model B to the editor palette of model A?
>>
|
|
|
Re: Dynamic model loading in GMF [message #43115 is a reply to message #43060] |
Fri, 08 September 2006 11:29   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------020304070603020008010805
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Rich,
In EMF, we would add support for this via the
ItemProviderAdapter.collectNewChildDescriptors which are used to
populate the popup menus to create children. We'll need some type of
EMF.Edit registry to determine all derived classes including ones
contributed by extending plugins. I'm not sure the GMF editor uses
these though...
Richard Gronback wrote:
> It seems to me there were two questions:
>
> 1. Could you explain more why GMF does not support the feature of
> automatically adding the subclasses from extended models found in another
> plug-in?
>
> A: Because it was never a requirement to do so. If you would like this
> added as an enhancement, please enter a bugzilla. We'd welcome your
> contribution on this request as well.
>
> 2. If EMF supported this feature, would it affect GMF to automatically add
> the children?
>
> A: Perhaps it's best to begin with EMF on this one?
>
> Thanks,
> Rich
>
>
>
> On 9/8/06 10:59 AM, in article eds0hh$g06$1@utils.eclipse.org, "Ali"
> <saveez@hotmail.com> wrote:
>
>
>> Well, is that a yes or no? Can someone explain why yes or why not? Any
>> examples?
>>
>> Michael Golubev wrote:
>>
>>> <Please excuse me, but I am in fact forced to write this comment:>
>>>
>>> Yes.
>>>
>>> "Ali" <saveez@hotmail.com> wrote in message
>>> news:edrkbk$rnu$1@utils.eclipse.org...
>>>
>>>> Artem,
>>>>
>>>> Thanks for the short and informative answer. Could you explain more why
>>>> GMF does not support this and if EMF supported this feature, would it
>>>> affect GMF to automatically add the children?
>>>>
>>>> Assume a plug-in-based graphical editor with a palette where the users can
>>>> develop their own plug-ins and these plug-ins appear as more tools in the
>>>> palette. Of course Eclipse is an excellent choice for such an IDE,
>>>> however, ironically neither EMF nor GMF do not support this. At the same
>>>> time, the plug-in architecture of Eclipse seems to be of no use.
>>>>
>>>>
>>>> Artem Tikhomirov wrote:
>>>>
>>>>> No.
>>>>>
>>>>> "Ali" <saveez@hotmail.com> wrote in message
>>>>> news:edp9s6$oh5$1@utils.eclipse.org...
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Assume two models A and B each of them in a separate plugin where model
>>>>>> B extends some classes in model A. Also assume that model A has a GMF
>>>>>> editor. Does GMF support the feature of automatically adding the
>>>>>> subclasses in model B to the editor palette of model A?
>>>>>>
>
>
--------------020304070603020008010805
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">
Rich,<br>
<br>
In EMF, we would add support for this via the
ItemProviderAdapter.collectNewChildDescriptors which are used to
populate the popup menus to create children. We'll need some type of
EMF.Edit registry to determine all derived classes including ones
contributed by extending plugins. I'm not sure the GMF editor uses
these though...<br>
<br>
<br>
Richard Gronback wrote:
<blockquote cite="midC12701EF.A58C%25richard.gronback@borland.com"
type="cite">
<pre wrap="">It seems to me there were two questions:
1. Could you explain more why GMF does not support the feature of
automatically adding the subclasses from extended models found in another
plug-in?
A: Because it was never a requirement to do so. If you would like this
added as an enhancement, please enter a bugzilla. We'd welcome your
contribution on this request as well.
2. If EMF supported this feature, would it affect GMF to automatically add
the children?
A: Perhaps it's best to begin with EMF on this one?
Thanks,
Rich
On 9/8/06 10:59 AM, in article <a class="moz-txt-link-abbreviated" href="mailto:eds0hh$g06$1@utils.eclipse.org">eds0hh$g06$1@utils.eclipse.org</a>, "Ali"
<a class="moz-txt-link-rfc2396E" href="mailto:saveez@hotmail.com"><saveez@hotmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Well, is that a yes or no? Can someone explain why yes or why not? Any
examples?
Michael Golubev wrote:
</pre>
<blockquote type="cite">
<pre wrap=""><Please excuse me, but I am in fact forced to write this comment:>
Yes.
"Ali" <a class="moz-txt-link-rfc2396E" href="mailto:saveez@hotmail.com"><saveez@hotmail.com></a> wrote in message
<a class="moz-txt-link-freetext" href="news:edrkbk$rnu$1@utils.eclipse.org">news:edrkbk$rnu$1@utils.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Artem,
Thanks for the short and informative answer. Could you explain more why
GMF does not support this and if EMF supported this feature, would it
affect GMF to automatically add the children?
Assume a plug-in-based graphical editor with a palette where the users can
develop their own plug-ins and these plug-ins appear as more tools in the
palette. Of course Eclipse is an excellent choice for such an IDE,
however, ironically neither EMF nor GMF do not support this. At the same
time, the plug-in architecture of Eclipse seems to be of no use.
Artem Tikhomirov wrote:
</pre>
<blockquote type="cite">
<pre wrap="">No.
"Ali" <a class="moz-txt-link-rfc2396E" href="mailto:saveez@hotmail.com"><saveez@hotmail.com></a> wrote in message
<a class="moz-txt-link-freetext" href="news:edp9s6$oh5$1@utils.eclipse.org">news:edp9s6$oh5$1@utils.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
Assume two models A and B each of them in a separate plugin where model
B extends some classes in model A. Also assume that model A has a GMF
editor. Does GMF support the feature of automatically adding the
subclasses in model B to the editor palette of model A?
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>
--------------020304070603020008010805--
|
|
|
Re: Dynamic model loading in GMF [message #43160 is a reply to message #43115] |
Fri, 08 September 2006 11:59   |
Eclipse User |
|
|
|
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--B_3240561576_1738323
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit
Thanks, Ed.
This request seems related to this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149758
- Rich
On 9/8/06 11:29 AM, in article eds293$qbr$1@utils.eclipse.org, "Ed Merks"
<merks@ca.ibm.com> wrote:
> Rich,
>
> In EMF, we would add support for this via the
> ItemProviderAdapter.collectNewChildDescriptors which are used to populate the
> popup menus to create children. We'll need some type of EMF.Edit registry to
> determine all derived classes including ones contributed by extending plugins.
> I'm not sure the GMF editor uses these though...
>
>
> Richard Gronback wrote:
>>
>> It seems to me there were two questions:
>>
>> 1. Could you explain more why GMF does not support the feature of
>> automatically adding the subclasses from extended models found in another
>> plug-in?
>>
>> A: Because it was never a requirement to do so. If you would like this
>> added as an enhancement, please enter a bugzilla. We'd welcome your
>> contribution on this request as well.
>>
>> 2. If EMF supported this feature, would it affect GMF to automatically add
>> the children?
>>
>> A: Perhaps it's best to begin with EMF on this one?
>>
>> Thanks,
>> Rich
>>
>>
>>
>> On 9/8/06 10:59 AM, in article eds0hh$g06$1@utils.eclipse.org, "Ali"
>> <saveez@hotmail.com> <mailto:saveez@hotmail.com> wrote:
>>
>>
>>
>>>
>>> Well, is that a yes or no? Can someone explain why yes or why not? Any
>>> examples?
>>>
>>> Michael Golubev wrote:
>>>
>>>
>>>>
>>>> <Please excuse me, but I am in fact forced to write this comment:>
>>>>
>>>> Yes.
>>>>
>>>> "Ali" <saveez@hotmail.com> <mailto:saveez@hotmail.com> wrote in message
>>>> news:edrkbk$rnu$1@utils.eclipse.org...
>>>>
>>>>
>>>>>
>>>>> Artem,
>>>>>
>>>>> Thanks for the short and informative answer. Could you explain more why
>>>>> GMF does not support this and if EMF supported this feature, would it
>>>>> affect GMF to automatically add the children?
>>>>>
>>>>> Assume a plug-in-based graphical editor with a palette where the users can
>>>>> develop their own plug-ins and these plug-ins appear as more tools in the
>>>>> palette. Of course Eclipse is an excellent choice for such an IDE,
>>>>> however, ironically neither EMF nor GMF do not support this. At the same
>>>>> time, the plug-in architecture of Eclipse seems to be of no use.
>>>>>
>>>>>
>>>>> Artem Tikhomirov wrote:
>>>>>
>>>>>
>>>>>>
>>>>>> No.
>>>>>>
>>>>>> "Ali" <saveez@hotmail.com> <mailto:saveez@hotmail.com> wrote in message
>>>>>> news:edp9s6$oh5$1@utils.eclipse.org...
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Assume two models A and B each of them in a separate plugin where model
>>>>>>> B extends some classes in model A. Also assume that model A has a GMF
>>>>>>> editor. Does GMF support the feature of automatically adding the
>>>>>>> subclasses in model B to the editor palette of model A?
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>>
>>
>
>
--B_3240561576_1738323
Content-type: text/html;
charset="US-ASCII"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Re: Dynamic model loading in GMF</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>Thank=
s, Ed.<BR>
<BR>
This request seems related to this bug: https://bugs.eclipse.org/bugs/show_=
bug.cgi?id=3D149758<BR>
<BR>
- Rich<BR>
<BR>
<BR>
On 9/8/06 11:29 AM, in article eds293$qbr$1@utils.eclipse.org, "Ed Mer=
ks" <merks@ca.ibm.com> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYL=
E=3D'font-size:12.0px'>Rich,<BR>
<BR>
In EMF, we would add support for this via the ItemProviderAdapter.collectNe=
wChildDescriptors which are used to populate the popup menus to create child=
ren. We'll need some type of EMF.Edit registry to determine all derive=
d classes including ones contributed by extending plugins. I'm not sur=
e the GMF editor uses these though...<BR>
<BR>
<BR>
Richard Gronback wrote: <BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYL=
E=3D'font-size:12.0px'> <BR>
It seems to me there were two questions:<BR>
<BR>
1. Could you explain more why GMF does not support the feature of<BR>
automatically adding the subclasses from extended models found in another<B=
R>
plug-in?<BR>
<BR>
A: Because it was never a requirement to do so. If you would like thi=
s<BR>
added as an enhancement, please enter a bugzilla. We'd welcome your<B=
R>
contribution on this request as well.<BR>
<BR>
2. If EMF supported this feature, would it affect GMF to automatically add<=
BR>
the children?<BR>
<BR>
A: Perhaps it's best to begin with EMF on this one?<BR>
<BR>
Thanks,<BR>
Rich<BR>
<BR>
<BR>
<BR>
On 9/8/06 10:59 AM, in article eds0hh$g06$1@utils.eclipse.org, "Ali&qu=
ot;<BR>
<saveez@hotmail.com> <a href=3D"mailto:saveez@hotmail.com"><mailto:s=
aveez@hotmail.com></a> wrote:<BR>
<BR>
<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYL=
E=3D'font-size:12.0px'> <BR>
Well, is that a yes or no? Can someone explain why yes or why not? Any<BR>
examples?<BR>
<BR>
Michael Golubev wrote:<BR>
<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYL=
E=3D'font-size:12.0px'> <BR>
<Please excuse me, but I am in fact forced to write this comment:><BR=
>
<BR>
Yes.<BR>
<BR>
"Ali" <saveez@hotmail.com> <a href=3D"mailto:saveez@hotmail.c=
om"><mailto:saveez@hotmail.com></a> wrote in message<BR>
news:edrkbk$rnu$1@utils.eclipse.org...<BR>
<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYL=
E=3D'font-size:12.0px'> <BR>
Artem,<BR>
<BR>
Thanks for the short and informative answer. Could you explain more why<BR>
GMF does not support this and if EMF supported this feature, would it<BR>
affect GMF to automatically add the children?<BR>
<BR>
Assume a plug-in-based graphical editor with a palette where the users can<=
BR>
develop their own plug-ins and these plug-ins appear as more tools in the<B=
R>
palette. Of course Eclipse is an excellent choice for such an IDE,<BR>
however, ironically neither EMF nor GMF do not support this. At the same<BR=
>
time, the plug-in architecture of Eclipse seems to be of no use.<BR>
<BR>
<BR>
Artem Tikhomirov wrote:<BR>
<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYL=
E=3D'font-size:12.0px'> <BR>
No.<BR>
<BR>
"Ali" <saveez@hotmail.com> <a href=3D"mailto:saveez@hotmail.c=
om"><mailto:saveez@hotmail.com></a> wrote in message<BR>
news:edp9s6$oh5$1@utils.eclipse.org...<BR>
<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYL=
E=3D'font-size:12.0px'> <BR>
Hi,<BR>
<BR>
Assume two models A and B each of them in a separate plugin where model<BR>
B extends some classes in model A. Also assume that model A has a GMF<BR>
editor. Does GMF support the feature of automatically adding the<BR>
subclasses in model B to the editor palette of model A?<BR>
<BR=
>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STY=
LE=3D'font-size:12.0px'> <BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STY=
LE=3D'font-size:12.0px'> <BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STY=
LE=3D'font-size:12.0px'> <BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STY=
LE=3D'font-size:12.0px'> <BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STY=
LE=3D'font-size:12.0px'> <BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STY=
LE=3D'font-size:12.0px'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STY=
LE=3D'font-size:12.0px'><BR>
</SPAN></FONT>
</BODY>
</HTML>
--B_3240561576_1738323--
|
|
|
Re: Dynamic model loading in GMF [message #44382 is a reply to message #43060] |
Mon, 11 September 2006 05:12   |
Eclipse User |
|
|
|
1. Moreover, automatically adding subclasses is definitely not the way to
handle the usecase. There might be few models, and it just wrong to assume
that any other existing model that extends the one with GMF editor should be
automatically picked up. Besides, I'll tell you the next question once we do
it automatically: "Elements from my extended model are shown, though I would
like to have different icon/figure/behavoir/whatever for this particular
element". Hence, even if it's automatic, than you describe it somehow, and I
bet it's better to start with "describe" approach from the very begining.
>>>> Assume a plug-in-based graphical editor with a palette where the users
>>>> can
>>>> develop their own plug-ins and these plug-ins appear as more tools in
>>>> the
>>>> palette. Of course Eclipse is an excellent choice for such an IDE,
>>>> however, ironically neither EMF nor GMF do not support this. At the
>>>> same
>>>> time, the plug-in architecture of Eclipse seems to be of no use.
This usecase is very straightforward to use - declare your own extension
point and modify creation tools to read extensions.
Artem
"Richard Gronback" <richard.gronback@borland.com> wrote in message
news:C12701EF.A58C%richard.gronback@borland.com...
> It seems to me there were two questions:
>
> 1. Could you explain more why GMF does not support the feature of
> automatically adding the subclasses from extended models found in another
> plug-in?
>
> A: Because it was never a requirement to do so. If you would like this
> added as an enhancement, please enter a bugzilla. We'd welcome your
> contribution on this request as well.
>
> 2. If EMF supported this feature, would it affect GMF to automatically add
> the children?
>
> A: Perhaps it's best to begin with EMF on this one?
>
> Thanks,
> Rich
>
>
>
> On 9/8/06 10:59 AM, in article eds0hh$g06$1@utils.eclipse.org, "Ali"
> <saveez@hotmail.com> wrote:
>
>> Well, is that a yes or no? Can someone explain why yes or why not? Any
>> examples?
>>
>> Michael Golubev wrote:
>>> <Please excuse me, but I am in fact forced to write this comment:>
>>>
>>> Yes.
>>>
>>> "Ali" <saveez@hotmail.com> wrote in message
>>> news:edrkbk$rnu$1@utils.eclipse.org...
>>>> Artem,
>>>>
>>>> Thanks for the short and informative answer. Could you explain more why
>>>> GMF does not support this and if EMF supported this feature, would it
>>>> affect GMF to automatically add the children?
>>>>
>>>> Assume a plug-in-based graphical editor with a palette where the users
>>>> can
>>>> develop their own plug-ins and these plug-ins appear as more tools in
>>>> the
>>>> palette. Of course Eclipse is an excellent choice for such an IDE,
>>>> however, ironically neither EMF nor GMF do not support this. At the
>>>> same
>>>> time, the plug-in architecture of Eclipse seems to be of no use.
>>>>
>>>>
>>>> Artem Tikhomirov wrote:
>>>>> No.
>>>>>
>>>>> "Ali" <saveez@hotmail.com> wrote in message
>>>>> news:edp9s6$oh5$1@utils.eclipse.org...
>>>>>> Hi,
>>>>>>
>>>>>> Assume two models A and B each of them in a separate plugin where
>>>>>> model
>>>>>> B extends some classes in model A. Also assume that model A has a GMF
>>>>>> editor. Does GMF support the feature of automatically adding the
>>>>>> subclasses in model B to the editor palette of model A?
>>>
>
|
|
|
Re: Dynamic model loading in GMF [message #46248 is a reply to message #44382] |
Tue, 12 September 2006 08:38   |
Eclipse User |
|
|
|
Artem,
So, what is your suggestion for implementing the idea of having a
diagram which the users can develop and add their own items to the
diagram where the items are coded in a different plugin (obviously the
users are not supposed to touch the actual diagram code) and they can
appear in the pallet automatically.
Artem Tikhomirov wrote:
> 1. Moreover, automatically adding subclasses is definitely not the way to
> handle the usecase. There might be few models, and it just wrong to assume
> that any other existing model that extends the one with GMF editor should be
> automatically picked up. Besides, I'll tell you the next question once we do
> it automatically: "Elements from my extended model are shown, though I would
> like to have different icon/figure/behavoir/whatever for this particular
> element". Hence, even if it's automatic, than you describe it somehow, and I
> bet it's better to start with "describe" approach from the very begining.
>
>>>>> Assume a plug-in-based graphical editor with a palette where the users
>>>>> can
>>>>> develop their own plug-ins and these plug-ins appear as more tools in
>>>>> the
>>>>> palette. Of course Eclipse is an excellent choice for such an IDE,
>>>>> however, ironically neither EMF nor GMF do not support this. At the
>>>>> same
>>>>> time, the plug-in architecture of Eclipse seems to be of no use.
>
> This usecase is very straightforward to use - declare your own extension
> point and modify creation tools to read extensions.
>
> Artem
>
> "Richard Gronback" <richard.gronback@borland.com> wrote in message
> news:C12701EF.A58C%richard.gronback@borland.com...
>> It seems to me there were two questions:
>>
>> 1. Could you explain more why GMF does not support the feature of
>> automatically adding the subclasses from extended models found in another
>> plug-in?
>>
>> A: Because it was never a requirement to do so. If you would like this
>> added as an enhancement, please enter a bugzilla. We'd welcome your
>> contribution on this request as well.
>>
>> 2. If EMF supported this feature, would it affect GMF to automatically add
>> the children?
>>
>> A: Perhaps it's best to begin with EMF on this one?
>>
>> Thanks,
>> Rich
>>
>>
>>
>> On 9/8/06 10:59 AM, in article eds0hh$g06$1@utils.eclipse.org, "Ali"
>> <saveez@hotmail.com> wrote:
>>
>>> Well, is that a yes or no? Can someone explain why yes or why not? Any
>>> examples?
>>>
>>> Michael Golubev wrote:
>>>> <Please excuse me, but I am in fact forced to write this comment:>
>>>>
>>>> Yes.
>>>>
>>>> "Ali" <saveez@hotmail.com> wrote in message
>>>> news:edrkbk$rnu$1@utils.eclipse.org...
>>>>> Artem,
>>>>>
>>>>> Thanks for the short and informative answer. Could you explain more why
>>>>> GMF does not support this and if EMF supported this feature, would it
>>>>> affect GMF to automatically add the children?
>>>>>
>>>>> Assume a plug-in-based graphical editor with a palette where the users
>>>>> can
>>>>> develop their own plug-ins and these plug-ins appear as more tools in
>>>>> the
>>>>> palette. Of course Eclipse is an excellent choice for such an IDE,
>>>>> however, ironically neither EMF nor GMF do not support this. At the
>>>>> same
>>>>> time, the plug-in architecture of Eclipse seems to be of no use.
>>>>>
>>>>>
>>>>> Artem Tikhomirov wrote:
>>>>>> No.
>>>>>>
>>>>>> "Ali" <saveez@hotmail.com> wrote in message
>>>>>> news:edp9s6$oh5$1@utils.eclipse.org...
>>>>>>> Hi,
>>>>>>>
>>>>>>> Assume two models A and B each of them in a separate plugin where
>>>>>>> model
>>>>>>> B extends some classes in model A. Also assume that model A has a GMF
>>>>>>> editor. Does GMF support the feature of automatically adding the
>>>>>>> subclasses in model B to the editor palette of model A?
>
>
|
|
|
Re: Dynamic model loading in GMF [message #46368 is a reply to message #46248] |
Tue, 12 September 2006 09:12   |
Eclipse User |
|
|
|
Hi,
GMF Runtime is all about this - contributing extensions to existing
services. Whether these extensions are handwritten or generated is not
important, so you may use GMF to generate code for extended versions and
plug them in using whatever mechanism (existing services framework,
adapters, your own set of extension points or anything else).
My point is, not every application needs every use case one could imagine.
E.g. there are GMF users that don't even want to edit a diagram (just
visualize some domain). Similarly, there might be users that don't want to
get automatic extensions. Hence, if there's a requirement like
> users are not supposed to touch the actual diagram code) and they can
> appear in the pallet automatically.
it's better to think in scope of your application - what would be the best
way to provide extensibility means.
Artem
"Ali" <saveez@hotmail.com> wrote in message
news:ee69pe$v6t$1@utils.eclipse.org...
> Artem,
>
> So, what is your suggestion for implementing the idea of having a diagram
> which the users can develop and add their own items to the diagram where
> the items are coded in a different plugin (obviously the users are not
> supposed to touch the actual diagram code) and they can appear in the
> pallet automatically.
>
>
> Artem Tikhomirov wrote:
>> 1. Moreover, automatically adding subclasses is definitely not the way to
>> handle the usecase. There might be few models, and it just wrong to
>> assume that any other existing model that extends the one with GMF editor
>> should be automatically picked up. Besides, I'll tell you the next
>> question once we do it automatically: "Elements from my extended model
>> are shown, though I would like to have different
>> icon/figure/behavoir/whatever for this particular element". Hence, even
>> if it's automatic, than you describe it somehow, and I bet it's better to
>> start with "describe" approach from the very begining.
>>
>>>>>> Assume a plug-in-based graphical editor with a palette where the
>>>>>> users can
>>>>>> develop their own plug-ins and these plug-ins appear as more tools in
>>>>>> the
>>>>>> palette. Of course Eclipse is an excellent choice for such an IDE,
>>>>>> however, ironically neither EMF nor GMF do not support this. At the
>>>>>> same
>>>>>> time, the plug-in architecture of Eclipse seems to be of no use.
>>
>> This usecase is very straightforward to use - declare your own extension
>> point and modify creation tools to read extensions.
>>
>> Artem
>>
>> "Richard Gronback" <richard.gronback@borland.com> wrote in message
>> news:C12701EF.A58C%richard.gronback@borland.com...
>>> It seems to me there were two questions:
>>>
>>> 1. Could you explain more why GMF does not support the feature of
>>> automatically adding the subclasses from extended models found in
>>> another
>>> plug-in?
>>>
>>> A: Because it was never a requirement to do so. If you would like this
>>> added as an enhancement, please enter a bugzilla. We'd welcome your
>>> contribution on this request as well.
>>>
>>> 2. If EMF supported this feature, would it affect GMF to automatically
>>> add
>>> the children?
>>>
>>> A: Perhaps it's best to begin with EMF on this one?
>>>
>>> Thanks,
>>> Rich
>>>
>>>
>>>
>>> On 9/8/06 10:59 AM, in article eds0hh$g06$1@utils.eclipse.org, "Ali"
>>> <saveez@hotmail.com> wrote:
>>>
>>>> Well, is that a yes or no? Can someone explain why yes or why not? Any
>>>> examples?
>>>>
>>>> Michael Golubev wrote:
>>>>> <Please excuse me, but I am in fact forced to write this comment:>
>>>>>
>>>>> Yes.
>>>>>
>>>>> "Ali" <saveez@hotmail.com> wrote in message
>>>>> news:edrkbk$rnu$1@utils.eclipse.org...
>>>>>> Artem,
>>>>>>
>>>>>> Thanks for the short and informative answer. Could you explain more
>>>>>> why
>>>>>> GMF does not support this and if EMF supported this feature, would it
>>>>>> affect GMF to automatically add the children?
>>>>>>
>>>>>> Assume a plug-in-based graphical editor with a palette where the
>>>>>> users can
>>>>>> develop their own plug-ins and these plug-ins appear as more tools in
>>>>>> the
>>>>>> palette. Of course Eclipse is an excellent choice for such an IDE,
>>>>>> however, ironically neither EMF nor GMF do not support this. At the
>>>>>> same
>>>>>> time, the plug-in architecture of Eclipse seems to be of no use.
>>>>>>
>>>>>>
>>>>>> Artem Tikhomirov wrote:
>>>>>>> No.
>>>>>>>
>>>>>>> "Ali" <saveez@hotmail.com> wrote in message
>>>>>>> news:edp9s6$oh5$1@utils.eclipse.org...
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Assume two models A and B each of them in a separate plugin where
>>>>>>>> model
>>>>>>>> B extends some classes in model A. Also assume that model A has a
>>>>>>>> GMF
>>>>>>>> editor. Does GMF support the feature of automatically adding the
>>>>>>>> subclasses in model B to the editor palette of model A?
>>
|
|
| |
Re: Dynamic model loading in GMF [message #46744 is a reply to message #46687] |
Tue, 12 September 2006 12:07   |
Eclipse User |
|
|
|
Unfortunately, I don't have such an example.
Artem
"Ali" <saveez@hotmail.com> wrote in message
news:ee6lif$jci$1@utils.eclipse.org...
> Thanks Artem,
>
> Could you provide an example demonstrating a third party pluging extending
> a GMF diagram?
>
> Artem Tikhomirov wrote:
>> Hi,
>>
>> GMF Runtime is all about this - contributing extensions to existing
>> services. Whether these extensions are handwritten or generated is not
>> important, so you may use GMF to generate code for extended versions and
>> plug them in using whatever mechanism (existing services framework,
>> adapters, your own set of extension points or anything else).
>>
>> My point is, not every application needs every use case one could
>> imagine. E.g. there are GMF users that don't even want to edit a diagram
>> (just visualize some domain). Similarly, there might be users that don't
>> want to get automatic extensions. Hence, if there's a requirement like
>>
>>> users are not supposed to touch the actual diagram code) and they can
>>> appear in the pallet automatically.
>>
>> it's better to think in scope of your application - what would be the
>> best way to provide extensibility means.
>>
>> Artem
>>
|
|
|
Re: Dynamic model loading in GMF [message #46771 is a reply to message #46744] |
Tue, 12 September 2006 12:10  |
Eclipse User |
|
|
|
Artem,
I meant if you could create a very basic example demonstrating this (not
an already available one). At least, some clue where to start the
extension framework? Not too much documentation on GMF Runtime is out there.
Artem Tikhomirov wrote:
> Unfortunately, I don't have such an example.
>
> Artem
>
> "Ali" <saveez@hotmail.com> wrote in message
> news:ee6lif$jci$1@utils.eclipse.org...
>> Thanks Artem,
>>
>> Could you provide an example demonstrating a third party pluging extending
>> a GMF diagram?
>>
>> Artem Tikhomirov wrote:
>>> Hi,
>>>
>>> GMF Runtime is all about this - contributing extensions to existing
>>> services. Whether these extensions are handwritten or generated is not
>>> important, so you may use GMF to generate code for extended versions and
>>> plug them in using whatever mechanism (existing services framework,
>>> adapters, your own set of extension points or anything else).
>>>
>>> My point is, not every application needs every use case one could
>>> imagine. E.g. there are GMF users that don't even want to edit a diagram
>>> (just visualize some domain). Similarly, there might be users that don't
>>> want to get automatic extensions. Hence, if there's a requirement like
>>>
>>>> users are not supposed to touch the actual diagram code) and they can
>>>> appear in the pallet automatically.
>>> it's better to think in scope of your application - what would be the
>>> best way to provide extensibility means.
>>>
>>> Artem
>>>
>
>
|
|
|
Goto Forum:
Current Time: Wed Sep 17 17:26:30 EDT 2025
Powered by FUDForum. Page generated in 0.05669 seconds
|