]> gerrit.simantics Code Review - simantics/r.git/blob - org.simantics.r.scl/src/org/rosuda/REngine/REngineUIInterface.java
(refs #6833) Test RExp inheritance in SCL
[simantics/r.git] / org.simantics.r.scl / src / org / rosuda / REngine / REngineUIInterface.java
1 package org.rosuda.REngine;
2
3 /** interface defining delegate methods used by {@link REngine} to forward user interface callbacks from R. */
4 public interface REngineUIInterface {
5         /** called when the busy state of R changes - usual response is to change the shape of the cursor
6          *  @param eng calling engine
7          *  @param state busy state of R (0 = not busy)
8          */
9         public void   RBusyState  (REngine eng, int state);     
10         
11         /** called when R wants the user to choose a file.
12          *  @param eng calling engine
13          *  @param newFile if <code>true</code> then the user can specify a non-existing file to be created, otherwise an existing file must be selected.
14          *  @return full path and name of the selected file or <code>null</code> if the selection was cancelled.
15          */
16         public String RChooseFile  (REngine eng, boolean newFile);
17 }