List of usage examples for com.intellij.openapi.fileChooser FileSystemTree DATA_KEY
DataKey DATA_KEY
To view the source code for com.intellij.openapi.fileChooser FileSystemTree DATA_KEY.
Click Source Link
From source file:com.intellij.javaee.MapExternalResourceDialog.java
License:Apache License
private void createUIComponents() { myExplorerPanel = new JPanel(new BorderLayout()); DataManager.registerDataProvider(myExplorerPanel, dataId -> { if (CommonDataKeys.VIRTUAL_FILE_ARRAY == dataId) { return myExplorer.getSelectedFiles(); } else if (FileSystemTree.DATA_KEY == dataId) { return myExplorer; }/* ww w. jav a 2 s . c o m*/ return null; }); }