com.intellij.openapi.actionSystem
Interface DataContext


public interface DataContext

Allows an action to retrieve information about the context in which it was invoked.

See Also:
AnActionEvent.getDataContext(), DataConstants, DataProvider

Method Summary
 java.lang.Object getData(java.lang.String dataId)
          Returns the object corresponding to the specified data identifier.
 

Method Detail

getData

@Nullable
java.lang.Object getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier. Some of the supported data identifiers are defined in the DataConstants class.

Parameters:
dataId - the data identifier for which the value is requested.
Returns:
the value, or null if no value is available in the current context for this identifier.