Example usage for com.intellij.openapi.fileChooser FileSystemTree DATA_KEY

List of usage examples for com.intellij.openapi.fileChooser FileSystemTree DATA_KEY

Introduction

In this page you can find the example usage for com.intellij.openapi.fileChooser FileSystemTree DATA_KEY.

Prototype

DataKey DATA_KEY

To view the source code for com.intellij.openapi.fileChooser FileSystemTree DATA_KEY.

Click Source Link

Usage

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;
    });
}