Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ease-dev] Popup in Papyrus Model Explorer view

 

Hello EASE-devs,

 

We are from the Papyrus team, and we have a great interest in using EASE with one of the Papyrus components. We particularly appreciate the work done in the modeling modules.

 

However, we would like to add the possibility of executing scripts from a popup originated on the Model Explorer (a very important part of the papyrus perspective).

 

The popup 'enableFor' semantics allows us to add menus for EObjects, by doing "enableFor(org.eclipse.emf.ecore.EObject)", but we'd like to be more specific and check for the effective type of the selected object e.g. o.e.uml2.uml.Class.

 

Browsing through the code we found that  we can’t use the _expression_ framework. As an alternative, we thought we could create a new papyrus specific scripting keyword extending the existing "popup" but adapting the selected element as an  EObject first and then checking if it's instance of the class passed as parameter to the “enableFor”.

 

Do you think this is the best solution? or maybe do you have another suggestion?

 

Now, the thing is the package "org.eclipse.ease.ui.scripts.keywordhandler" is not being exported, so in our tests we had to copy paste several classes to get our PopupHandler working.

 

Do you think it would be possible to export the package?

Also if you think that our code could interest other people, we are really open to directly contribute to the project, maybe as part of the modeling module.

 

Cheers,

 

Sébastien Revol.

David López.


Back to the top