file Custom View for Module

4 months 1 week ago #4977 by psiotwo
Dear all,

I need to equip the module containing a custom view (not being a diagram, properties, etc.) - it should be a simple dockable (e.g. SWT, or Swing) panel with a list of items to select from.

is there any example/tutorial on how to create a custom view inside a Modelio module ? I tried to go through all the modules ad forge, but there seems to be only <PropertyPage> tag inside <Views> in module.xml ...

Thanks,
Petr

Please Log in or Create an account to join the conversation.

3 months 3 days ago - 3 months 3 days ago #5099 by abe
Hi,

To create a custom view for a module, you need to create a PropertyPage, so you can check this guide .
Your handler need to implement the IModulePropertyCustomPanel interface, instead of extending the AbstractModulePropertyPage.
You will then have access to the IPanelProvider interface from which you can provide your own SWT panel.

I hope this will help.
abe

Please Log in or Create an account to join the conversation.

Moderators: tmachmaab
Time to create page: 0.026 seconds
^ Back to Top