Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Custom Figures in different plugin
Custom Figures in different plugin [message #89882] Fri, 05 January 2007 17:16 Go to next message
Eclipse UserFriend
Originally posted by: martin.tauber.t-online.de

It's me again :-)

I have greated custom figures which I packed into a seperate plugin. Now
when I create the figures code I always have to modify the MANIFEST.MF
file. (BTW also for the generated diagram code). Is there a way to avoid
this?

Regards
Martin
Re: Custom Figures in different plugin [message #90320 is a reply to message #89882] Mon, 08 January 2007 05:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tobk.gmx.de

Martin wrote:

> It's me again :-)
>
> I have greated custom figures which I packed into a seperate plugin. Now
> when I create the figures code I always have to modify the MANIFEST.MF
> file. (BTW also for the generated diagram code). Is there a way to avoid
> this?
>
> Regards
> Martin

You can use the gmfgraph-file's "Generate Figures Plugin" action to change
all figures to custom figures being implemented in a seperate plugin
instead of in the edit parts. If you do not want to have this done
automatically try setting the attributes
name="GeneratedGallery"
implementationBundle="BASEPACKAGENAME.figures"
in the first figures-element in the gmfgraph's xml code (that one containing
all the other figures).

Hope this helps.
tobias
Re: Custom Figures in different plugin [message #90525 is a reply to message #90320] Mon, 08 January 2007 11:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.tauber.t-online.de

Thanks Tobias,

this was exactly what I was looking for! Is this documented somewhere?
And here comes another question: When I use .gmfgraph's Create Figure
plugin action I always have to type in the plugin name (even though
what a surprice it didn't change). Is there a way to avoid this?

Thanks people of the eclipse
Martin

tobias schrieb:
> Martin wrote:
>
>> It's me again :-)
>>
>> I have greated custom figures which I packed into a seperate plugin. Now
>> when I create the figures code I always have to modify the MANIFEST.MF
>> file. (BTW also for the generated diagram code). Is there a way to avoid
>> this?
>>
>> Regards
>> Martin
>
> You can use the gmfgraph-file's "Generate Figures Plugin" action to change
> all figures to custom figures being implemented in a seperate plugin
> instead of in the edit parts. If you do not want to have this done
> automatically try setting the attributes
> name="GeneratedGallery"
> implementationBundle="BASEPACKAGENAME.figures"
> in the first figures-element in the gmfgraph's xml code (that one containing
> all the other figures).
>
> Hope this helps.
> tobias
Re: Custom Figures in different plugin [message #90787 is a reply to message #90525] Tue, 09 January 2007 05:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tobk.gmx.de

Martin Tauber wrote:

> Thanks Tobias,
>
> this was exactly what I was looking for! Is this documented somewhere?
> And here comes another question: When I use .gmfgraph's Create Figure
> plugin action I always have to type in the plugin name (even though
> what a surprice it didn't change). Is there a way to avoid this?
>
> Thanks people of the eclipse
> Martin

Why "always"? Basically you create the figures plugin once you have declared
all the figures you need and then continue handcoding the figures (which
gives you far more freedom in design than the gmfgraph).

tobias

>
> tobias schrieb:
>> Martin wrote:
>>
>>> It's me again :-)
>>>
>>> I have greated custom figures which I packed into a seperate plugin. Now
>>> when I create the figures code I always have to modify the MANIFEST.MF
>>> file. (BTW also for the generated diagram code). Is there a way to avoid
>>> this?
>>>
>>> Regards
>>> Martin
>>
>> You can use the gmfgraph-file's "Generate Figures Plugin" action to
>> change all figures to custom figures being implemented in a seperate
>> plugin instead of in the edit parts. If you do not want to have this done
>> automatically try setting the attributes
>> name="GeneratedGallery"
>> implementationBundle="BASEPACKAGENAME.figures"
>> in the first figures-element in the gmfgraph's xml code (that one
>> containing all the other figures).
>>
>> Hope this helps.
>> tobias
Re: Custom Figures in different plugin [message #90818 is a reply to message #90787] Tue, 09 January 2007 06:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.tauber.t-online.de

The point is I am not creating all figures at once. I add figures one
after the other. (Also I'm still playing around and I tend to delete the
created plugins just to make sure I still know what I'm doing ...)

tobias schrieb:
> Martin Tauber wrote:
>
>> Thanks Tobias,
>>
>> this was exactly what I was looking for! Is this documented somewhere?
>> And here comes another question: When I use .gmfgraph's Create Figure
>> plugin action I always have to type in the plugin name (even though
>> what a surprice it didn't change). Is there a way to avoid this?
>>
>> Thanks people of the eclipse
>> Martin
>
> Why "always"? Basically you create the figures plugin once you have declared
> all the figures you need and then continue handcoding the figures (which
> gives you far more freedom in design than the gmfgraph).
>
> tobias
>
>> tobias schrieb:
>>> Martin wrote:
>>>
>>>> It's me again :-)
>>>>
>>>> I have greated custom figures which I packed into a seperate plugin. Now
>>>> when I create the figures code I always have to modify the MANIFEST.MF
>>>> file. (BTW also for the generated diagram code). Is there a way to avoid
>>>> this?
>>>>
>>>> Regards
>>>> Martin
>>> You can use the gmfgraph-file's "Generate Figures Plugin" action to
>>> change all figures to custom figures being implemented in a seperate
>>> plugin instead of in the edit parts. If you do not want to have this done
>>> automatically try setting the attributes
>>> name="GeneratedGallery"
>>> implementationBundle="BASEPACKAGENAME.figures"
>>> in the first figures-element in the gmfgraph's xml code (that one
>>> containing all the other figures).
>>>
>>> Hope this helps.
>>> tobias
>
Re: Custom Figures in different plugin [message #90907 is a reply to message #90818] Tue, 09 January 2007 09:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tobk.gmx.de

In this case you could Copypaste an existing Figure to a new File used by
the new Figure, creating a new CustomFigure in the gmfgraph and setting the
reference accordingly.

If you want to play around with the figure-creating capabilities of GMF I'd
recommend not to export the figures at all.

BTW, why _do_ you pack them in a different plugin? For me, I had to delete
and recreate the editor quite often to undo my "playing around" with
customizing and enhancing the editor, etc, and did not want to backup my
highly customized figures each time i did so.

Tobias



Martin Tauber wrote:

> The point is I am not creating all figures at once. I add figures one
> after the other. (Also I'm still playing around and I tend to delete the
> created plugins just to make sure I still know what I'm doing ...)
>
> tobias schrieb:
>> Martin Tauber wrote:
>>
>>> Thanks Tobias,
>>>
>>> this was exactly what I was looking for! Is this documented somewhere?
>>> And here comes another question: When I use .gmfgraph's Create Figure
>>> plugin action I always have to type in the plugin name (even though
>>> what a surprice it didn't change). Is there a way to avoid this?
>>>
>>> Thanks people of the eclipse
>>> Martin
>>
>> Why "always"? Basically you create the figures plugin once you have
>> declared all the figures you need and then continue handcoding the
>> figures (which gives you far more freedom in design than the gmfgraph).
>>
>> tobias
>>
>>> tobias schrieb:
>>>> Martin wrote:
>>>>
>>>>> It's me again :-)
>>>>>
>>>>> I have greated custom figures which I packed into a seperate plugin.
>>>>> Now when I create the figures code I always have to modify the
>>>>> MANIFEST.MF file. (BTW also for the generated diagram code). Is there
>>>>> a way to avoid this?
>>>>>
>>>>> Regards
>>>>> Martin
>>>> You can use the gmfgraph-file's "Generate Figures Plugin" action to
>>>> change all figures to custom figures being implemented in a seperate
>>>> plugin instead of in the edit parts. If you do not want to have this
>>>> done automatically try setting the attributes
>>>> name="GeneratedGallery"
>>>> implementationBundle="BASEPACKAGENAME.figures"
>>>> in the first figures-element in the gmfgraph's xml code (that one
>>>> containing all the other figures).
>>>>
>>>> Hope this helps.
>>>> tobias
>>
Re: Custom Figures in different plugin [message #91772 is a reply to message #90907] Fri, 12 January 2007 02:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.tauber.t-online.de

Well this is why I put the custom figures into a seperate plugin, so
that I just can delete them without effecting the generated figures.
This works quite fine, well except that I have to type in the plugin
name everytime I generate the non custom figures.

Regards
Martin

tobias schrieb:
> In this case you could Copypaste an existing Figure to a new File used by
> the new Figure, creating a new CustomFigure in the gmfgraph and setting the
> reference accordingly.
>
> If you want to play around with the figure-creating capabilities of GMF I'd
> recommend not to export the figures at all.
>
> BTW, why _do_ you pack them in a different plugin? For me, I had to delete
> and recreate the editor quite often to undo my "playing around" with
> customizing and enhancing the editor, etc, and did not want to backup my
> highly customized figures each time i did so.
>
> Tobias
>
>
>
> Martin Tauber wrote:
>
>> The point is I am not creating all figures at once. I add figures one
>> after the other. (Also I'm still playing around and I tend to delete the
>> created plugins just to make sure I still know what I'm doing ...)
>>
>> tobias schrieb:
>>> Martin Tauber wrote:
>>>
>>>> Thanks Tobias,
>>>>
>>>> this was exactly what I was looking for! Is this documented somewhere?
>>>> And here comes another question: When I use .gmfgraph's Create Figure
>>>> plugin action I always have to type in the plugin name (even though
>>>> what a surprice it didn't change). Is there a way to avoid this?
>>>>
>>>> Thanks people of the eclipse
>>>> Martin
>>> Why "always"? Basically you create the figures plugin once you have
>>> declared all the figures you need and then continue handcoding the
>>> figures (which gives you far more freedom in design than the gmfgraph).
>>>
>>> tobias
>>>
>>>> tobias schrieb:
>>>>> Martin wrote:
>>>>>
>>>>>> It's me again :-)
>>>>>>
>>>>>> I have greated custom figures which I packed into a seperate plugin.
>>>>>> Now when I create the figures code I always have to modify the
>>>>>> MANIFEST.MF file. (BTW also for the generated diagram code). Is there
>>>>>> a way to avoid this?
>>>>>>
>>>>>> Regards
>>>>>> Martin
>>>>> You can use the gmfgraph-file's "Generate Figures Plugin" action to
>>>>> change all figures to custom figures being implemented in a seperate
>>>>> plugin instead of in the edit parts. If you do not want to have this
>>>>> done automatically try setting the attributes
>>>>> name="GeneratedGallery"
>>>>> implementationBundle="BASEPACKAGENAME.figures"
>>>>> in the first figures-element in the gmfgraph's xml code (that one
>>>>> containing all the other figures).
>>>>>
>>>>> Hope this helps.
>>>>> tobias
>
Re: Custom Figures in different plugin [message #92559 is a reply to message #90320] Mon, 15 January 2007 04:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fbfd.NOSPAMarcor.de

Hi,

I also have a question regarding the Figures plug-in.
Using the described action I generated a plug-in that contains all the
figures. However, when I generate the editor code, it still creates
EditParts that contain internal Figure subclasses and the figures of
the Figures plug-in are not used.
I also changed the "implementation bundle" property of the Figures
gallery so that it matches the name of the Figures plug-in.

What am I doing wrong?

Any hints to documentation that I may have missed are also welcome.

Kind regards,
Fabian

On Mon, 08 Jan 2007 11:34:14 +0100, tobias <tobk@gmx.de> wrote:

>Martin wrote:
>
>> It's me again :-)
>>
>> I have greated custom figures which I packed into a seperate plugin. Now
>> when I create the figures code I always have to modify the MANIFEST.MF
>> file. (BTW also for the generated diagram code). Is there a way to avoid
>> this?
>>
>> Regards
>> Martin
>
>You can use the gmfgraph-file's "Generate Figures Plugin" action to change
>all figures to custom figures being implemented in a seperate plugin
>instead of in the edit parts. If you do not want to have this done
>automatically try setting the attributes
> name="GeneratedGallery"
> implementationBundle="BASEPACKAGENAME.figures"
>in the first figures-element in the gmfgraph's xml code (that one containing
>all the other figures).
>
>Hope this helps.
>tobias
Re: Custom Figures in different plugin [message #92724 is a reply to message #92559] Mon, 15 January 2007 08:44 Go to previous message
Eclipse UserFriend
Originally posted by: fbfd.NOSPAMarcor.de

Ok, I had to recreate the GMF Generator Model.

Lot's of magic involved as usual..

On Mon, 15 Jan 2007 10:15:31 +0100, Fabian <fbfd@NOSPAMarcor.de>
wrote:

>
>Hi,
>
>I also have a question regarding the Figures plug-in.
>Using the described action I generated a plug-in that contains all the
>figures. However, when I generate the editor code, it still creates
>EditParts that contain internal Figure subclasses and the figures of
>the Figures plug-in are not used.
>I also changed the "implementation bundle" property of the Figures
>gallery so that it matches the name of the Figures plug-in.
>
>What am I doing wrong?
>
>Any hints to documentation that I may have missed are also welcome.
>
>Kind regards,
>Fabian
>
>On Mon, 08 Jan 2007 11:34:14 +0100, tobias <tobk@gmx.de> wrote:
>
>>Martin wrote:
>>
>>> It's me again :-)
>>>
>>> I have greated custom figures which I packed into a seperate plugin. Now
>>> when I create the figures code I always have to modify the MANIFEST.MF
>>> file. (BTW also for the generated diagram code). Is there a way to avoid
>>> this?
>>>
>>> Regards
>>> Martin
>>
>>You can use the gmfgraph-file's "Generate Figures Plugin" action to change
>>all figures to custom figures being implemented in a seperate plugin
>>instead of in the edit parts. If you do not want to have this done
>>automatically try setting the attributes
>> name="GeneratedGallery"
>> implementationBundle="BASEPACKAGENAME.figures"
>>in the first figures-element in the gmfgraph's xml code (that one containing
>>all the other figures).
>>
>>Hope this helps.
>>tobias
Previous Topic:Difference between GEF and GMF
Next Topic:Status of M4?
Goto Forum:
  


Current Time: Mon Jul 14 08:31:23 EDT 2025

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

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

Back to the top