Customize palette (EMF-based) [message #1663432] |
Tue, 10 March 2015 08:21  |
Eclipse User |
|
|
|
Hi everybody,
I would like to know, how to customize a palette (EMF-based).
I know that I have to edit the Extended Types, and the palette itself but is there any example ?
Regards,
Ramon
|
|
|
|
Re: Customize palette (EMF-based) [message #1678640 is a reply to message #1674073] |
Mon, 16 March 2015 05:23   |
Eclipse User |
|
|
|
Hi,
Papyrus does not support random EMF models; only UML is supported. Or, more precisely, you can add random EMF Extensions, but you always need a UML Model, but Papyrus won't provide any specific support for that. You'd need to rely on the lower-level (EMF-compliant) tools used by Papyrus (Especially GMF for the Palettes/Diagrams, and implement a custom import menu/action).
Alternatively, you could use an Ecore to UML transformation, then use the generated UML Model in Papyrus (I think the Eclipse/UML2 project provides an Ecore importer, although I never used it)
Camille
|
|
|
|
Re: Customize palette (EMF-based) [message #1679036 is a reply to message #1678640] |
Mon, 16 March 2015 08:49   |
Eclipse User |
|
|
|
Hi,
Speaking as a UML2 committer, I can say that round-tripping
Ecore-to-UML import and UML-to-Ecore export is a supported use case.
It has been tuned and improved over the years and should work reliably.
If you have the complete UML2 SDK installed, you will find a "Convert
to UML Model..." action in the "Sample Ecore Editor" menu in the main
menu bar when editing an Ecore model. Conversely, when editing a UML
model, the "UML Editor" menu has a "Convert To -> Ecore Model..."
action.
HTH,
Christian
On 2015-03-16 09:23:27 +0000, Camille Letavernier said:
> Hi,
>
> Papyrus does not support random EMF models; only UML is supported. Or,
> more precisely, you can add random EMF Extensions, but you always need
> a UML Model, but Papyrus won't provide any specific support for that.
> You'd need to rely on the lower-level (EMF-compliant) tools used by
> Papyrus (Especially GMF for the Palettes/Diagrams, and implement a
> custom import menu/action).
>
> Alternatively, you could use an Ecore to UML transformation, then use
> the generated UML Model in Papyrus (I think the Eclipse/UML2 project
> provides an Ecore importer, although I never used it)
>
> Camille
|
|
|
|
|
|
Re: Customize palette (EMF-based) [message #1679988 is a reply to message #1679968] |
Mon, 16 March 2015 17:01   |
Eclipse User |
|
|
|
Hi,
UML2 is an Eclipse project hosted at and published by Eclipse.org, and
it is a member of the "simultaneous release train". Therefore, it
isn't in the Eclipse Marketplace. Rather, you'll find it in the
simultaneous release repository: Luna if you're on the Eclipse 4.4
release, or Mars if you are using pre-release builds of Eclipse 4.5.
You will find the appropriate repository pre-configured in the software
installation dialog, accessed by the "Help -> Install New Software..."
menu in the main menu bar.
Yes, the term SDK is used by Eclipse projects to mean "software
developers kit" or "software development kit". So, the UML2 SDK
includes not only the UML run-time components (EMF-based metamodel
implementation and supporting APIs) but also the end-user tools such as
the UML model editor, EMF model importer, model conversion/export
actions, and more.
Lots to ramp up on. Enjoy!
HTH,
Christian
On 2015-03-16 20:53:16 +0000, Paul Roubekas said:
> Re-posting due to prior error on my part.
>
>
> When I go out to the Eclipse MarketPlace and enter the search term
> "UML2" I get 10 hits. Only two have "UML2" in the title.
>
> UML2 Plug-in for Eclipse 10.7. Which is confusing since Eclipse is only
> version 4.4.
> UML2Ruby 3.0.1.
>
> Neither option has "SDK" in the title. Which leaves me wondering. When
> the term "SDK" is used I am think Software Developers Kit. Am i wrong
> on that?
>
> It is starting to sound like the Ecore(EMF) -> UML round tripping is a
> eclipse contributors tool not a software developers tool. One thing I
> just realized that I did not say was that I am ramping up on this stuff.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09418 seconds