Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Help for new project
Help for new project [message #540286] Tue, 15 June 2010 14:25 Go to next message
123star  is currently offline 123star Friend
Messages: 70
Registered: June 2010
Member
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 12:58 Go to previous messageGo to next message
123star  is currently offline 123star Friend
Messages: 70
Registered: June 2010
Member
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 09:57 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 168
Registered: July 2009
Location: Palaiseau, France
Senior Member
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


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/

[Updated on: Tue, 22 June 2010 09:58]

Report message to a moderator

Re: Help for new project [message #542213 is a reply to message #541716] Thu, 24 June 2010 09:21 Go to previous messageGo to next message
123star  is currently offline 123star Friend
Messages: 70
Registered: June 2010
Member
Thank you very much!
Re: Help for new project [message #602034 is a reply to message #541137] Tue, 22 June 2010 09:57 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 168
Registered: July 2009
Location: Palaiseau, France
Senior Member
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


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: Help for new project [message #602041 is a reply to message #602034] Thu, 24 June 2010 09:21 Go to previous message
123star  is currently offline 123star Friend
Messages: 70
Registered: June 2010
Member
Thank you very much!
Previous Topic:Help for new project
Next Topic:Re: OCL in drawing tool!!
Goto Forum:
  


Current Time: Wed Aug 12 21:49:06 GMT 2020

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

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

Back to the top