How to set highlight color in plugin DevKit Follow
Answered
In plugin dev kit
I have found out how to get color of selected file:
final Project currentProject = DataKeys.PROJECT.getData(anActionEvent.getDataContext());
VirtualFile[] currentFiles = DataKeys.VIRTUAL_FILE_ARRAY.getData(anActionEvent.getDataContext());
if(currentFiles != null) {
Arrays.asList(currentFiles).forEach(virtualFile -> {
FileColorManager colorManager = FileColorManager.getInstance(currentProject);
Color color = colorManager.getFileColor(virtualFile);
}
}
But how to SET color of selected file?
Please sign in to leave a comment.
Please see answer https://stackoverflow.com/questions/55182389/how-to-set-file-highlight-color-in-project-tree-with-plugin-devkit