virtual void execute(JNIEnv* env) { MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance); nsILiveconnect* connection = getLiveconnectInstance(securityContext); jstring jresult = NULL; nsresult status = connection->ToString(env, mObject, &jresult); if (status == NS_OK && jresult != NULL) *mStringResult = (jstring) ToGlobalRef(env, jresult);
void MessageRunnable::execute(JNIEnv* env) {   nsIThreadManager* threadManager = NULL; if (MRJPlugin::GetService(nsIJVMManager::GetCID(), NS_GET_IID(nsIThreadManager), (void **)&threadManager) == NS_OK) { threadManager->PostEvent(mThreadID, this, PR_FALSE); NS_RELEASE(threadManager);
    virtual void execute(JNIEnv* env)    {        MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance);        nsILiveconnect* connection = getLiveconnectInstance(securityContext);        jstring jresult = NULL;        nsresult status = connection->ToString(env, mObject, &jresult);        if (status == NS_OK && jresult != NULL)            *mStringResult = (jstring) ToGlobalRef(env, jresult);    }