Package org.jjazz.ss_editor.api
Class SS_ContextActionSupport
java.lang.Object
org.jjazz.ss_editor.api.SS_ContextActionSupport
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 Summary
Modifier and TypeMethodDescriptionvoid
final org.openide.util.Lookup
static SS_ContextActionSupport
getInstance
(org.openide.util.Lookup context) If context == Utilities.actionsGlobalContext() return a shared instance.final SS_SelectionUtilities
void
-
Method Details
-
getInstance
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
- Returns:
- The latest selection.
-
addListener
-
removeListener
-