summaryrefslogtreecommitdiff
path: root/bean/test
diff options
context:
space:
mode:
Diffstat (limited to 'bean/test')
-rw-r--r--bean/test/Test.java4
-rw-r--r--bean/test/applet/oooapplet/OOoViewer.java26
2 files changed, 15 insertions, 15 deletions
diff --git a/bean/test/Test.java b/bean/test/Test.java
index 04f3a42132f9..84578f9f7599 100644
--- a/bean/test/Test.java
+++ b/bean/test/Test.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ public class Test
public void windowClosing( java.awt.event.WindowEvent e){
b.stopOOoConnection();
System.exit(0);
-
+
}});
}
catch (Exception e)
diff --git a/bean/test/applet/oooapplet/OOoViewer.java b/bean/test/applet/oooapplet/OOoViewer.java
index c7c96b6a0ab8..8139b9ffa352 100644
--- a/bean/test/applet/oooapplet/OOoViewer.java
+++ b/bean/test/applet/oooapplet/OOoViewer.java
@@ -1,7 +1,7 @@
//*************************************************************************
//
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,9 +42,9 @@ public class OOoViewer extends Applet {
private OOoBean oBean;
static private CustomURLClassLoader m_loader;
-
+
Object m_objBean;
-
+
public void init() {
try {
if (m_loader == null) {
@@ -88,7 +88,7 @@ public class OOoViewer extends Applet {
Method methLoad = beanClass.getMethod(
"loadFromURL", new Class[] {
String.class, arProp.getClass() });
-
+
methLoad.invoke(m_objBean, new Object[] {"private:factory/swriter", null});
} catch (ClassNotFoundException e) {
e.printStackTrace();
@@ -102,9 +102,9 @@ public class OOoViewer extends Applet {
e.printStackTrace();
} catch (java.lang.NoSuchMethodException e) {
e.printStackTrace(); }
-
-
-
+
+
+
validate();
}
@@ -135,11 +135,11 @@ public class OOoViewer extends Applet {
final class CustomURLClassLoader extends URLClassLoader {
private Vector resourcePaths;
-
+
public CustomURLClassLoader( URL[] urls ) {
super( urls );
}
-
+
protected Class findClass( String name ) throws ClassNotFoundException {
// This is only called via this.loadClass -> super.loadClass ->
// this.findClass, after this.loadClass has already called
@@ -149,10 +149,10 @@ final class CustomURLClassLoader extends URLClassLoader {
}
-
+
protected Class loadClass( String name, boolean resolve )
throws ClassNotFoundException
- {
+ {
Class c = findLoadedClass( name );
if ( c == null ) {
try {
@@ -179,12 +179,12 @@ final class CustomURLClassLoader extends URLClassLoader {
public URL getResource(String name) {
if (resourcePaths == null) return null;
-
+
URL result = super.getResource(name);
if (result != null) {
return result;
}
-
+
URL u = null;
URI uri = null;
for (Enumeration e = resourcePaths.elements(); e.hasMoreElements();) {