Skip to main content



      Home
Home » Modeling » Papyrus » Customize palette (EMF-based)
Customize palette (EMF-based) [message #1663432] Tue, 10 March 2015 08:21 Go to next message
Eclipse UserFriend
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 #1674073 is a reply to message #1663432] Sat, 14 March 2015 11:52 Go to previous messageGo to next message
Eclipse UserFriend
I have a similar question.
Can Papyrus work with EMF by importing the EMF classes & interfaces and use them on the Papyrus Palette?
Or...
Can a EMF model be imported to Papyrus? The only import in Papyrus I see is "import from Open Table" and I don't see how that would work.
And if yes....
Does Papyrus have the ability to merge a new version of an EMF model with an existing one?
What about full round tripping between EMF and Papyrus. Is it an existing feature?

[Updated on: Sat, 14 March 2015 18:12] by Moderator

Re: Customize palette (EMF-based) [message #1678640 is a reply to message #1674073] Mon, 16 March 2015 05:23 Go to previous messageGo to next message
Eclipse UserFriend
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 #1678650 is a reply to message #1678640] Mon, 16 March 2015 05:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I only answered the second question. Regarding EMF-based palette customization: Papyrus doesn't provide any specific tooling for EMF-based Palette customization yet. Only the XML-based palettes have the appropriate tooling. We're currently implementing some EMF-based palettes in Papyrus, but examples are not yet available. We expect the first ones to be available in Papyrus Mars M6 (Especially for SysML 1.4 and Papyrus-RT)

Regards,
Camille
Re: Customize palette (EMF-based) [message #1679036 is a reply to message #1678640] Mon, 16 March 2015 08:49 Go to previous messageGo to next message
Eclipse UserFriend
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 #1679506 is a reply to message #1679036] Mon, 16 March 2015 12:45 Go to previous messageGo to next message
Eclipse UserFriend
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.

[Updated on: Mon, 16 March 2015 12:55] by Moderator

Re: Customize palette (EMF-based) [message #1679736 is a reply to message #1679506] Mon, 16 March 2015 14:49 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Was there meant to be any text in this message?

Christian



On 2015-03-16 16:45:47 +0000, Paul Roubekas said:

>
>
Re: Customize palette (EMF-based) [message #1679968 is a reply to message #1679736] Mon, 16 March 2015 16:53 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Customize palette (EMF-based) [message #1679988 is a reply to message #1679968] Mon, 16 March 2015 17:01 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Customize palette (EMF-based) [message #1680293 is a reply to message #1679988] Mon, 16 March 2015 19:50 Go to previous messageGo to next message
Eclipse UserFriend
I don't see a UML2 SDK, at this location. See attached screen capture. One will have to zoom in to read the full list. What am I missing?
Re: Customize palette (EMF-based) [message #1684741 is a reply to message #1680293] Wed, 18 March 2015 11:02 Go to previous messageGo to next message
Eclipse UserFriend
refreshing the question. I still don't know where to find the UML2 SDK. What am I missing?
Re: Customize palette (EMF-based) [message #1684742 is a reply to message #1684741] Wed, 18 March 2015 11:04 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
I don't see a UML2 SDK, at this location. See attached screen capture. One will have to zoom in to read the full list. What am I missing?


If it doesn't appear there, then is is most likely already installed. Did you try to uncheck "Hide items that are already installed" ?

Camille
Re: Customize palette (EMF-based) [message #1684862 is a reply to message #1684742] Wed, 18 March 2015 12:03 Go to previous message
Eclipse UserFriend
Duh! Embarrassed "UML2 Extender SDK" is the same thing as "UML2 SDK"

Thanks for the help. Hope to return the favor some day.
Previous Topic:Set custom datatype attributes
Next Topic:Oomph setup --> lots of compiler issues
Goto Forum:
  


Current Time: Thu Jul 03 04:27:07 EDT 2025

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

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

Back to the top