Vra

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

  }
Was dit nuttig?

Oplossing

Auto refresh works with this code :

    VirtualFileManager.getInstance().syncRefresh();
Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow
scroll top