harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r629764 - /harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/PluginAppletFactory.java
Date Thu, 21 Feb 2008 12:05:19 GMT
Author: apetrenko
Date: Thu Feb 21 04:05:18 2008
New Revision: 629764

URL: http://svn.apache.org/viewvc?rev=629764&view=rev
Log:
One more static applet execution method is added

Modified:
    harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/PluginAppletFactory.java

Modified: harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/PluginAppletFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/PluginAppletFactory.java?rev=629764&r1=629763&r2=629764&view=diff
==============================================================================
--- harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/PluginAppletFactory.java
(original)
+++ harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/PluginAppletFactory.java
Thu Feb 21 04:05:18 2008
@@ -18,6 +18,7 @@
 package org.apache.harmony.applet;
 
 import java.net.URL;
+import java.net.MalformedURLException;
 import java.util.HashMap;
 
 public class PluginAppletFactory {
@@ -40,5 +41,14 @@
                 String []paramStrings, String name, Object container) {
         Factory f = getFactory(pluginInstance);
         f.createAndRun(id, parentWindowId, documentBase, documentId, codeBase, className,
paramStrings, name, container);
+    }    
+
+    public static void createAndRun(long pluginInstance, int id, long parentWindowId, String
documentBase,
+                int documentId, String codeBase, String className,
+                String []paramStrings, String name, Object container) throws MalformedURLException
{
+        // Code base URL is relative to document base
+        URL docBaseURL = new URL(documentBase);
+        
+        createAndRun(pluginInstance, id, parentWindowId, docBaseURL, documentId, new URL(docBaseURL,
codeBase), className, paramStrings, name, container);
     }    
 }



Mime
View raw message