Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Customize palette (EMF-based)
Customize palette (EMF-based) [message #1663432] Tue, 10 March 2015 12:21 Go to next message
Ramon Barakat is currently offline Ramon BarakatFriend
Messages: 4
Registered: December 2014
Junior Member
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 15:52 Go to previous messageGo to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
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?


Oxygen 3a
Windows 10

[Updated on: Sat, 14 March 2015 22:12]

Report message to a moderator

Re: Customize palette (EMF-based) [message #1678640 is a reply to message #1674073] Mon, 16 March 2015 09:23 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
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


Camille Letavernier
Re: Customize palette (EMF-based) [message #1678650 is a reply to message #1678640] Mon, 16 March 2015 09:28 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
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


Camille Letavernier
Re: Customize palette (EMF-based) [message #1679036 is a reply to message #1678640] Mon, 16 March 2015 12:49 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

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 16:45 Go to previous messageGo to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
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.


Oxygen 3a
Windows 10

[Updated on: Mon, 16 March 2015 16:55]

Report message to a moderator

Re: Customize palette (EMF-based) [message #1679736 is a reply to message #1679506] Mon, 16 March 2015 18:49 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

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 20:53 Go to previous messageGo to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
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.


Oxygen 3a
Windows 10
Re: Customize palette (EMF-based) [message #1679988 is a reply to message #1679968] Mon, 16 March 2015 21:01 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

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 23:50 Go to previous messageGo to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
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?

Oxygen 3a
Windows 10
Re: Customize palette (EMF-based) [message #1684741 is a reply to message #1680293] Wed, 18 March 2015 15:02 Go to previous messageGo to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
refreshing the question. I still don't know where to find the UML2 SDK. What am I missing?

Oxygen 3a
Windows 10
Re: Customize palette (EMF-based) [message #1684742 is a reply to message #1684741] Wed, 18 March 2015 15:04 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
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


Camille Letavernier
Re: Customize palette (EMF-based) [message #1684862 is a reply to message #1684742] Wed, 18 March 2015 16:03 Go to previous message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
Duh! Embarrassed "UML2 Extender SDK" is the same thing as "UML2 SDK"

Thanks for the help. Hope to return the favor some day.


Oxygen 3a
Windows 10
Previous Topic:Set custom datatype attributes
Next Topic:Oomph setup --> lots of compiler issues
Goto Forum:
  


Current Time: Fri Mar 29 01:49:01 GMT 2024

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

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

Back to the top