1 /* 2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 3 * Copyright (C) 2009 - DIGITEO - Vincent COUVERT 4 * 5 * Copyright (C) 2012 - 2016 - Scilab Enterprises 6 * 7 * This file is hereby licensed under the terms of the GNU GPL v2.0, 8 * pursuant to article 5.3.4 of the CeCILL v.2.1. 9 * This file was originally licensed under the terms of the CeCILL v2.1, 10 * and continues to be available under such terms. 11 * For more information, see the COPYING file which you should have received 12 * along with this program. 13 * 14 */ 15 16 #include "CallScilabBridge.hxx" 17 #include "GiwsException.hxx" 18 19 extern "C" 20 { 21 #include "api_scilab.h" 22 #include "getScilabJavaVM.h" 23 #include "gw_gui.h" 24 #include "localization.h" 25 #include "Scierror.h" 26 } 27 /*--------------------------------------------------------------------------*/ 28 using namespace org_scilab_modules_gui_bridge; 29 30 /*--------------------------------------------------------------------------*/ sci_about(char * fname,void * pvApiCtx)31int sci_about( char * fname, void* pvApiCtx ) 32 { 33 try 34 { 35 CallScilabBridge::scilabAboutBox(getScilabJavaVM()); 36 } 37 catch (const GiwsException::JniException & e) 38 { 39 Scierror(999, _("%s: A Java exception arisen:\n%s"), fname, e.whatStr().c_str()); 40 return FALSE; 41 } 42 43 AssignOutputVariable(pvApiCtx, 1) = 0; 44 ReturnArguments(pvApiCtx); 45 46 return 0; 47 } 48 /*--------------------------------------------------------------------------*/ 49