Skip to main content



      Home
Home » Modeling » Papyrus » Help for new project
Help for new project [message #540286] Tue, 15 June 2010 10:25 Go to next message
Eclipse UserFriend
Hi, I'm new in Papyrus and I have a couple of questions:

what I'd like to do is writing a plugin that extends Papyrus in this way:

1) In the palette there must be only the tools that I decide, not the default tools at all and the user of the plugin can't modify the palette

2) The palette must contain custom stereotypes created for the scope of the plugin

3) When a component is modified, for example is added a subcomponent, I want to catch that event to modify the component for example to add a port

I tried implementing the first point by extending Papyrus using the extension point <palette Definition>, but I still see the default Papyrus palette in the class diagram view.

Thanks in advance
Re: Help for new project [message #541137 is a reply to message #540286] Fri, 18 June 2010 08:58 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
anyone could help?
What extension points can I use?

As I said I tried to use <palette Definition> extension point with the xml file defining the palette, but I continue to see the default palette, I don't know how to remove it.

Is there an extension point for register listeners to model changes by the user?

Thanks
Re: Help for new project [message #541716 is a reply to message #541137] Tue, 22 June 2010 05:57 Go to previous messageGo to next message
Eclipse UserFriend
hi,

To remove the palette at runtime, you can right click on the palette and select in the palette menu which palette you want to see or not. It is not possible yet to remove a palette using plugins. We are currently making specification about life cycle management for palettes in the following bug, where people could post their use case and the enhancement they would like to see for the palette. See Bug 317556: [Palette] Papyrus shall support a life cycle management for palettes

To register listeners on the model, you can use the following extension point: org.eclipse.papyrus.core.modelListener. There are 2 examples of this extension point in the plugin org.eclipse.papyrus.diagram.common, which react on stereotype and profile application.

Regards
Rémi

[Updated on: Tue, 22 June 2010 05:58] by Moderator

Re: Help for new project [message #542213 is a reply to message #541716] Thu, 24 June 2010 05:21 Go to previous messageGo to next message
Eclipse UserFriend
Thank you very much!
Re: Help for new project [message #602034 is a reply to message #541137] Tue, 22 June 2010 05:57 Go to previous messageGo to next message
Eclipse UserFriend
hi,

To remove the palette at runtime, you can right click on the palette and select in the palette menu which palette you want to see or not. It is not possible yet to remove a palette using plugins. We are currently making specification about life cycle management for palettes in the following bug, where people could post their use case and the enhancement they would like to see for the palette. See http://bugs.eclipse.org/bugs/show_bug.cgi?id=317556

To register listeners on the model, you can use the following extension point: org.eclipse.papyrus.core.modelListener. There are 2 examples of this extension point in the plugin org.eclipse.papyrus.diagram.common, which react on stereotype and profile application.

Regards
Rémi

--
http://www.eclipse.org/papyrus
Re: Help for new project [message #602041 is a reply to message #602034] Thu, 24 June 2010 05:21 Go to previous message
Eclipse UserFriend
Thank you very much!
Previous Topic:Help for new project
Next Topic:Re: OCL in drawing tool!!
Goto Forum:
  


Current Time: Fri Jul 25 17:56:35 EDT 2025

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

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

Back to the top