Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

API provides a way to create a popup menu from actions. Of course, you can use the standard java api for that, but we provide our own creators if you use our Actions.

Use com com.nomagic.magicdraw.actions.MenuCreatorFactory.getMenuCreator() to get an instance of a creator.

Use com.nomagic.actions.ActionsMenuCreator.createPopupMenu(ActionsManager) to create a popup menu. 


Steps to create a popup menu would be

  1. Create an instance of com.nomagic.actions.ActionsManager.
  2. Add com.nomagic.actions.NMAction actions and com com.nomagic.actions.ActionsCategory categories into ActionsManager.
  3. Call ActionsMenuCreator.createPopupMenu(ActionsManager)  to create a popup for your actions.


Panel
titleRelated pages