how to display .class file and popup custom menu when Cilck VirtualFiles item


I use changesTreeImpl.VirtualFiles   to show the specific file list ,  and I want show decompiled file when click the item  and popup my menu when right click. what should I do?

when click the, I want display this file , right click to  popup menu . now I got nothing both actions.

1 comment
Comment actions Permalink

already resovled, display file by using

if(x.getPath()!= null) {
Object lastPathComponent = x.getPath().getLastPathComponent();
if (lastPathComponent instanceof ChangesBrowserFileNode) {
VirtualFile userObject = ((ChangesBrowserFileNode)lastPathComponent).getUserObject();
VirtualFileList#setComponentPopupMenu  to add popupMenu

Please sign in to leave a comment.