From: ishmal Date: Wed, 12 Mar 2008 18:18:39 +0000 (+0000) Subject: Improve call to callMain() X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0f9b2865fa8c5186474c580305dab3d0e75aa53c;p=inkscape.git Improve call to callMain() --- diff --git a/src/bind/javabind-private.h b/src/bind/javabind-private.h index 9b7b4e995..5a810480b 100644 --- a/src/bind/javabind-private.h +++ b/src/bind/javabind-private.h @@ -54,7 +54,8 @@ public: const std::vector ¶ms, Value &retval); - virtual bool callMain(const String &className); + virtual bool callMain(const String &className, + const std::vector &args); virtual bool isLoaded(); diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp index f4905e153..b03d562ce 100644 --- a/src/bind/javabind.cpp +++ b/src/bind/javabind.cpp @@ -930,11 +930,19 @@ String JavaBinderyImpl::getException() * method of a given class * * @param className full name of the java class + * @args the argument strings to the method * @return true if successful, else false */ -bool JavaBinderyImpl::callMain(const String &className) +bool JavaBinderyImpl::callMain(const String &className, + const std::vector &args) { std::vector parms; + for (unsigned int i=0 ; i &/*args*/) { return false; }