Announcement Announcement Module
Collapse
No announcement yet.
A dynamically enabled ActionCommand Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • A dynamically enabled ActionCommand

    Good Day,

    Version: Spring RCP 0.1.0

    If I have an ActionCommand that I would to make visible if certain criteria is met in the front-end.

    For example, in the menu I have an import action but I would only like to make this action available if the user has configured the remote server.

    Note: something similar to the securityControllerId property

    Regards,
    Mark P Ashworth

  • #2
    Mark,

    the commands have the boolean isEnabled() method which can be used to dynamically enable/disable a command based on application state, such as whether something has been configured. I do this very successfully.

    Do you have a more specific question I'm missing?

    Jonny

    Comment

    Working...
    X