Class KeyBindingsManager

java.lang.Object
org.eclipse.tracecompass.tmf.ui.views.uml2sd.handlers.KeyBindingsManager

public class KeyBindingsManager extends Object

Singleton class that manages key-bindings for certain commands across multiple sequence diagram view instances.

Version:
1.0
Author:
Bernd Hufmann
  • Method Details

    • getInstance

      public static KeyBindingsManager getInstance()
      Returns the KeyBindingsManager singleton instance.
      Returns:
      the KeyBindingsManager singleton instance
    • add

      public void add(String viewId)
      Adds a view list of managed view list.
      Parameters:
      viewId - Id of SD view to add and to manage
    • remove

      public void remove(String viewId)
      Removes a view from managed view list
      Parameters:
      viewId - Id of SD view to remove
    • setSdView

      public void setSdView(SDView view)
      Set the view in all supported actions
      Parameters:
      view - to set in global actions
    • setFindEnabled

      public void setFindEnabled(boolean enabled)
      Enable / disable find action
      Parameters:
      enabled - true for enabling else false