title: How to programmatically refresh an Eclipse view, or RSE file subsystem?
body: <p>How can I programmatically update an Eclipse view? (I suppose this might not need to be specific to RSE?).</p>
  
  <p>Background: I use <a href="http://www.eclipse.org/tm/" rel="nofollow">Remote System Explorer (RSE)</a> for Eclipse, do some stuff by executing remote commands via SSH, which creates new files on the remote host. I realized that the SFTP file listing in the Remote systems view does not automatically get updated to show the newly created file.</p>
  
  <p>I have managed so far to get the relevant view, like so:</p>
  
  <pre><code>IWorkbench workbench = PlatformUI.getWorkbench();
  IViewRegistry viewReg = workbench.getViewRegistry();
  IViewDescriptor[] views = viewReg.getViews();
  for (IViewDescriptor view : views) {
    String viewID = view.getId();
      System.out.println("View ID: " + viewID);
      if (viewID.equals("org.eclipse.rse.ui.view.systemView")) {
        // Do something with the view here
      }
  }
  </code></pre>
  
  <p>... and for possibly doing something RSE specific,  I tried grabbing the RemoteFileSubSystem:</p>
  
  <pre><code>IRemoteFileSubSystem rfss = RemoteFileUtility.getFileSubSystem(HPCUtils.getApplication().getHPCHost());
  </code></pre>
  
  <p>... but neither in the ViewDescriptor object, nor the FileSubSystem, I have found any way to refresh the view, or the file subsystem. What have I missed?</p>