Class ElementActivationManager

java.lang.Object
com.nomagic.magicdraw.ui.ElementActivationManager

@OpenApiAll public final class ElementActivationManager extends Object
Register ElementActivator instances.
See Also:
  • Method Details

    • getInstance

      public static ElementActivationManager getInstance()
      Get singleton instance.
      Returns:
      manager.
    • addActivator

      public void addActivator(ElementActivator activator)
      Register given activator.
      Parameters:
      activator - activator to register.
    • removeActivator

      public void removeActivator(ElementActivator activator)
      Remove given registered activator.
      Parameters:
      activator - activator to remove.
    • activate

      public boolean activate(Element element)
      Activate given element with registered activators.
      Parameters:
      element - element to activate.
      Returns:
      true if activated, otherwise - false.