jakaplan / matlabcontrol

matlabcontrol is a Java API that allows for calling MATLAB from Java. You can eval, feval, as well as get and set variables. Interaction can be performed from either inside MATLAB or outside MATLAB.
12 stars 5 forks source link

Add support for OSGi ClassLoaders and Copy-Paste callbacks #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Just wanted to contribute back some changes that I made:

https://github.com/diffplug/matlabcontrol

Added CopyPasteCallback to the set of options for creating a 
MatlabProxyFactory. The factory sends a chunk of code to the callback, and the 
user copy-pastes this code into a MATLAB terminal to initiate a connection.

ThrowableWrapper now initializes the getMessage() field with MATLAB's raw error 
text.

Added OSGiClassloaderFriendly to the set of factory options. When this flag is 
set to true, RMI is started in a way that doesn't get hosed by OSGi.

The CopyPasteCallback is very handy for implementing interactive applications 
such as this:

https://docs.diffplug.com/1.5.0/ViewerDiffers/SimulinkViewerDiffer/TrackInMatlab
/

Original issue reported on code.google.com by ned.tw...@diffplug.com on 16 Apr 2015 at 4:27