Class SS_ContextActionSupport

java.lang.Object
org.jjazz.ss_editor.api.SS_ContextActionSupport

public class SS_ContextActionSupport extends Object
A helper class to write SS_Editor context aware actions.

Listen to RhyhmPart or SongPartParameter presence in the lookup. Fire the corresponding events to listeners.

  • Method Details

    • getInstance

      public static SS_ContextActionSupport getInstance(org.openide.util.Lookup context)
      If context == Utilities.actionsGlobalContext() return a shared instance. Otherwise return a new specific object.
      Parameters:
      context -
      Returns:
    • getContext

      public final org.openide.util.Lookup getContext()
      Returns:
      the Lookup context
    • getSelection

      public final SS_SelectionUtilities getSelection()
      Returns:
      The latest selection.
    • addListener

      public void addListener(SS_ContextActionListener l)
    • removeListener

      public void removeListener(SS_ContextActionListener l)