문제

I am trying to add some files dynamically to my project. I want to load those files as soon as they are added to my project. I am trying with the following code but it is not working :

public void actionPerformed(AnActionEvent e) {
     e.getProject().getProjectFile().refresh(true, true);

  }
도움이 되었습니까?

해결책

Auto refresh works with this code :

    VirtualFileManager.getInstance().syncRefresh();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top