Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366142 - Allow user-defined dialogs for palette entries
Summary: Allow user-defined dialogs for palette entries
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.9.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 03:12 EST by Marc-Florian Wendland CLA
Modified: 2017-03-01 05:29 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-Florian Wendland CLA 2011-12-09 03:12:57 EST
The system shall allow the user to customize the kind of dialog that is displayed when an element is created from a user-defined palette.

As an example, the message elements popup a selection dialog to determine what kind of message shall be created. The content of the dialog is predefined by Papyrus (SelectOrCreateDialog) as demonstrated in org.eclipse.papyrus.uml.diagram.sequence.util.CommandHelper. 

For a more fine-grained customization, the user might want to create his own content/dialog for a user-defined palette. This could be realized by providing a specific extension point pointing to dialog implementation that shall popup, when the palette element is used for element creation. Within palette customization, the user may select among registered additional dialogs for the customized element.

The user might be assisted in creating such a dialog by providing abstract and predefined dialog classes.

If there are any further questions on this, drop me a mail.
Comment 1 Mickael ADAM CLA 2017-03-01 05:29:09 EST
hi,

it seems that the new palette framework handle this use case. In fact you can now add "runtime action" to a tool. This action allow to popup a View from Papyrus properties framework when you create the Element.