public class PlatformDataKeys extends CommonDataKeys
Modifier and Type | Field and Description |
---|---|
static DataKey<java.util.Comparator<? super AnAction>> |
ACTIONS_SORTER
Deprecated.
use
ActionPromoter |
static DataKey<ContentManager> |
CONTENT_MANAGER |
static DataKey<java.awt.Component> |
CONTEXT_COMPONENT
Returns
Component currently in focus, DataContext should be retrieved for. |
static DataKey<java.awt.Point> |
CONTEXT_MENU_POINT
Returns
Point to guess where to show context menu invoked by key. |
static DataKey<CopyProvider> |
COPY_PROVIDER |
static DataKey<CutProvider> |
CUT_PROVIDER |
static DataKey<DeleteProvider> |
DELETE_ELEMENT_PROVIDER |
static DataKey<java.awt.Rectangle> |
DOMINANT_HINT_AREA_RECTANGLE |
static DataKey<ExporterToTextFile> |
EXPORTER_TO_TEXT_FILE |
static DataKey<FileEditor> |
FILE_EDITOR |
static DataKey<java.lang.String> |
FILE_TEXT
Returns the text of currently selected file/file revision
|
static DataKey<java.lang.String> |
HELP_ID
Returns help id.
|
static DataKey<java.lang.Boolean> |
IS_MODAL_CONTEXT
Returns
Boolean.TRUE if action is executed in modal context and
Boolean.FALSE if action is executed not in modal context. |
static DataKey<ModalityState> |
MODALITY_STATE |
static DataKey<ContentManager> |
NONEMPTY_CONTENT_MANAGER |
static DataKey<PasteProvider> |
PASTE_PROVIDER |
static DataKey<java.lang.String> |
PREDEFINED_TEXT |
static DataKey<Project> |
PROJECT_CONTEXT
Returns project if project node is selected (in project view)
|
static DataKey<VirtualFile> |
PROJECT_FILE_DIRECTORY |
static DataKey<java.lang.String> |
SEARCH_INPUT_TEXT |
static DataKey<java.lang.Object> |
SELECTED_ITEM
Returns single selection item.
|
static DataKey<java.lang.Object[]> |
SELECTED_ITEMS
Returns multi selection items.
|
static DataKey<java.lang.Boolean> |
SOURCE_NAVIGATION_LOCKED |
static DataKey<java.lang.Object> |
SPEED_SEARCH_COMPONENT |
static DataKey<StatusBar> |
STATUS_BAR |
static DataKey<ToolWindow> |
TOOL_WINDOW |
static DataKey<TreeExpander> |
TREE_EXPANDER |
static DataKey<Disposable> |
UI_DISPOSABLE |
CARET, EDITOR, EDITOR_EVEN_IF_INACTIVE, EDITOR_VIRTUAL_SPACE, HOST_EDITOR, NAVIGATABLE, NAVIGATABLE_ARRAY, PROJECT, PSI_ELEMENT, PSI_FILE, VIRTUAL_FILE, VIRTUAL_FILE_ARRAY
Constructor and Description |
---|
PlatformDataKeys() |
public static final DataKey<FileEditor> FILE_EDITOR
public static final DataKey<java.lang.String> FILE_TEXT
public static final DataKey<java.lang.Boolean> IS_MODAL_CONTEXT
Boolean.TRUE
if action is executed in modal context and
Boolean.FALSE
if action is executed not in modal context. If context
is unknown returns null
.public static final DataKey<java.lang.String> HELP_ID
HelpManager.invokeHelp(String)
public static final DataKey<Project> PROJECT_CONTEXT
public static final DataKey<java.awt.Component> CONTEXT_COMPONENT
Component
currently in focus, DataContext should be retrieved for.public static final DataKey<CopyProvider> COPY_PROVIDER
public static final DataKey<CutProvider> CUT_PROVIDER
public static final DataKey<PasteProvider> PASTE_PROVIDER
public static final DataKey<DeleteProvider> DELETE_ELEMENT_PROVIDER
public static final DataKey<java.lang.Object> SELECTED_ITEM
SELECTED_ITEMS
public static final DataKey<java.lang.Object[]> SELECTED_ITEMS
SELECTED_ITEM
public static final DataKey<java.awt.Rectangle> DOMINANT_HINT_AREA_RECTANGLE
public static final DataKey<ContentManager> CONTENT_MANAGER
public static final DataKey<ContentManager> NONEMPTY_CONTENT_MANAGER
public static final DataKey<ToolWindow> TOOL_WINDOW
public static final DataKey<TreeExpander> TREE_EXPANDER
public static final DataKey<ExporterToTextFile> EXPORTER_TO_TEXT_FILE
ExportToTextFileAction
public static final DataKey<VirtualFile> PROJECT_FILE_DIRECTORY
public static final DataKey<Disposable> UI_DISPOSABLE
public static final DataKey<ModalityState> MODALITY_STATE
public static final DataKey<java.lang.Boolean> SOURCE_NAVIGATION_LOCKED
public static final DataKey<java.lang.String> PREDEFINED_TEXT
public static final DataKey<java.lang.String> SEARCH_INPUT_TEXT
public static final DataKey<java.lang.Object> SPEED_SEARCH_COMPONENT
public static final DataKey<java.awt.Point> CONTEXT_MENU_POINT
Point
to guess where to show context menu invoked by key.
This point should be relative to the currently focused component@Deprecated public static final DataKey<java.util.Comparator<? super AnAction>> ACTIONS_SORTER
ActionPromoter