summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorRelease Engineers <releng@openoffice.org>2009-05-07 06:54:56 +0000
committerRelease Engineers <releng@openoffice.org>2009-05-07 06:54:56 +0000
commit193d793b79d09e3ce4828f2d4c92ad5ba87ff4a7 (patch)
tree7925de93d1b8fcb1ff9311aea3f2959ec88c62a2 /scripting
parent262b6f4b50d166a50f6cd223968f52bbf0fbb7d8 (diff)
CWS-TOOLING: integrate CWS cmcfixes58
2009-05-04 13:51:10 +0200 cmc r271450 : #i101533# latest sw warnings 2009-05-04 00:02:46 +0200 cmc r271436 : #i101517# silence new warnings 2009-05-03 23:13:53 +0200 cmc r271435 : #i101305# add that one back in 2009-05-02 16:30:42 +0200 cmc r271431 : #i101493# get it to build, and remove some warnings 2009-05-02 16:12:37 +0200 cmc r271430 : CWS-TOOLING: rebase CWS cmcfixes58 to trunk@271427 (milestone: DEV300:m47) 2009-04-23 13:19:33 +0200 cmc r271163 : #i101305# remove annoying import foo is unused warnings 2009-04-21 17:10:34 +0200 cmc r271048 : #i101246# remove AVMEDIA_MANAGER_SERVICE_NAME defines again 2009-04-21 17:07:41 +0200 cmc r271047 : #i86323# remove xml2cmp unused methods
Diffstat (limited to 'scripting')
-rw-r--r--scripting/examples/java/MemoryUsage/MemoryUsage.java1
-rw-r--r--scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java5
-rw-r--r--scripting/java/com/sun/star/script/framework/browse/DialogFactory.java1
-rw-r--r--scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java2
-rw-r--r--scripting/java/com/sun/star/script/framework/browse/PkgProviderBrowseNode.java11
-rw-r--r--scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java2
-rw-r--r--scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java4
-rw-r--r--scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java8
-rw-r--r--scripting/java/com/sun/star/script/framework/container/Parcel.java8
-rw-r--r--scripting/java/com/sun/star/script/framework/container/ParcelContainer.java5
-rw-r--r--scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java15
-rw-r--r--scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java32
-rw-r--r--scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java4
-rw-r--r--scripting/java/com/sun/star/script/framework/io/XStorageHelper.java9
-rwxr-xr-xscripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java6
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java16
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/PathUtils.java18
-rwxr-xr-xscripting/java/com/sun/star/script/framework/provider/ScriptProvider.java3
-rwxr-xr-xscripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java8
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java6
-rwxr-xr-xscripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java1
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceModel.java4
-rwxr-xr-xscripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java1
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java1
-rwxr-xr-xscripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java20
25 files changed, 1 insertions, 190 deletions
diff --git a/scripting/examples/java/MemoryUsage/MemoryUsage.java b/scripting/examples/java/MemoryUsage/MemoryUsage.java
index 3337c2eb8a82..727f94a9291c 100644
--- a/scripting/examples/java/MemoryUsage/MemoryUsage.java
+++ b/scripting/examples/java/MemoryUsage/MemoryUsage.java
@@ -8,7 +8,6 @@ import com.sun.star.lang.XComponent;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.frame.XComponentLoader;
import com.sun.star.document.XEmbeddedObjectSupplier;
-import com.sun.star.awt.ActionEvent;
import com.sun.star.awt.Rectangle;
import com.sun.star.beans.XPropertySet;
import com.sun.star.beans.PropertyValue;
diff --git a/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java b/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java
index fe38c30315eb..02d91c4aad34 100644
--- a/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java
+++ b/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java
@@ -31,7 +31,6 @@
package com.sun.star.script.framework.security;
import com.sun.star.awt.ActionEvent;
-import com.sun.star.awt.XActionListener;
import com.sun.star.awt.ItemEvent;
import com.sun.star.awt.XItemListener;
import com.sun.star.awt.XButton;
@@ -40,7 +39,6 @@ import com.sun.star.awt.XControl;
import com.sun.star.awt.XControlModel;
import com.sun.star.awt.XControlContainer;
import com.sun.star.awt.XDialog;
-import com.sun.star.awt.XFixedText;
import com.sun.star.awt.XToolkit;
import com.sun.star.awt.XWindow;
@@ -52,14 +50,11 @@ import com.sun.star.lang.EventObject;
import com.sun.star.lang.XMultiComponentFactory;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.lang.XSingleServiceFactory;
-import com.sun.star.lang.XTypeProvider;
import com.sun.star.lang.XServiceInfo;
import com.sun.star.lang.XInitialization;
import com.sun.star.lang.IllegalArgumentException;
import com.sun.star.lib.uno.helper.WeakBase;
import com.sun.star.registry.XRegistryKey;
-import com.sun.star.task.XJobExecutor;
-import com.sun.star.uno.Type;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.AnyConverter;
import com.sun.star.uno.RuntimeException;
diff --git a/scripting/java/com/sun/star/script/framework/browse/DialogFactory.java b/scripting/java/com/sun/star/script/framework/browse/DialogFactory.java
index 9a934075333c..bee77e81caf1 100644
--- a/scripting/java/com/sun/star/script/framework/browse/DialogFactory.java
+++ b/scripting/java/com/sun/star/script/framework/browse/DialogFactory.java
@@ -42,7 +42,6 @@ import com.sun.star.container.XNameContainer;
import com.sun.star.awt.*;
-import com.sun.star.script.framework.log.LogUtils;
public class DialogFactory
{
diff --git a/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java
index cad201333bd8..15e8170af63c 100644
--- a/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java
+++ b/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java
@@ -31,7 +31,6 @@
package com.sun.star.script.framework.browse;
import com.sun.star.beans.XIntrospectionAccess;
-import com.sun.star.beans.PropertyAttribute;
import com.sun.star.lib.uno.helper.PropertySet;
@@ -60,7 +59,6 @@ import com.sun.star.script.framework.container.Parcel;
import com.sun.star.script.framework.container.ParcelContainer;
import com.sun.star.script.framework.browse.DialogFactory;
-import java.io.*;
import java.util.*;
import javax.swing.JOptionPane;
diff --git a/scripting/java/com/sun/star/script/framework/browse/PkgProviderBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/PkgProviderBrowseNode.java
index 91396c9454d9..98698e019828 100644
--- a/scripting/java/com/sun/star/script/framework/browse/PkgProviderBrowseNode.java
+++ b/scripting/java/com/sun/star/script/framework/browse/PkgProviderBrowseNode.java
@@ -30,27 +30,16 @@
package com.sun.star.script.framework.browse;
-import com.sun.star.beans.PropertyAttribute;
-import com.sun.star.lib.uno.helper.PropertySet;
-import com.sun.star.uno.Any;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
import com.sun.star.uno.XComponentContext;
-import com.sun.star.beans.XIntrospectionAccess;
import com.sun.star.script.XInvocation;
import com.sun.star.script.browse.XBrowseNode;
-import com.sun.star.script.browse.BrowseNodeTypes;
import com.sun.star.script.framework.provider.ScriptProvider;
import com.sun.star.script.framework.log.*;
import com.sun.star.script.framework.container.*;
-import com.sun.star.script.framework.browse.DialogFactory;
-import java.io.*;
-import java.util.*;
-import javax.swing.JOptionPane;
public class PkgProviderBrowseNode extends ProviderBrowseNode
implements XBrowseNode, XInvocation
diff --git a/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java
index 09836cd7891d..195912720949 100644
--- a/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java
+++ b/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java
@@ -30,7 +30,6 @@
package com.sun.star.script.framework.browse;
-import com.sun.star.beans.PropertyAttribute;
import com.sun.star.lib.uno.helper.PropertySet;
import com.sun.star.uno.Any;
import com.sun.star.uno.AnyConverter;
@@ -53,7 +52,6 @@ import com.sun.star.script.framework.log.*;
import com.sun.star.script.framework.container.*;
import com.sun.star.script.framework.browse.DialogFactory;
-import java.io.*;
import java.util.*;
import javax.swing.JOptionPane;
diff --git a/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java
index 8abe84d9e82b..4f5aaf793291 100644
--- a/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java
+++ b/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java
@@ -33,7 +33,6 @@ import com.sun.star.script.browse.XBrowseNode;
import com.sun.star.script.browse.BrowseNodeTypes;
import com.sun.star.script.provider.XScriptContext;
-import com.sun.star.beans.PropertyAttribute;
import com.sun.star.lib.uno.helper.PropertySet;
import com.sun.star.uno.AnyConverter;
import com.sun.star.uno.Any;
@@ -52,13 +51,10 @@ import com.sun.star.reflection.InvocationTargetException;
import com.sun.star.container.NoSuchElementException;
import com.sun.star.container.ElementExistException;
-import java.io.File;
import java.util.*;
-import javax.swing.JOptionPane;
import com.sun.star.script.framework.log.LogUtils;
import com.sun.star.script.framework.provider.ScriptProvider;
-import com.sun.star.script.framework.browse.DialogFactory;
import com.sun.star.script.framework.container.*;
public class ScriptBrowseNode extends PropertySet
diff --git a/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java b/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java
index 8b924600ad47..3612e6650d05 100644
--- a/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java
+++ b/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java
@@ -33,18 +33,10 @@ package com.sun.star.script.framework.container;
import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
import java.io.IOException;
-import java.io.FileNotFoundException;
import java.io.ByteArrayInputStream;
import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.Hashtable;
-import java.util.Enumeration;
-import java.util.Iterator;
// import javax.xml.parsers.DocumentBuilderFactory;
// import javax.xml.parsers.DocumentBuilder;
diff --git a/scripting/java/com/sun/star/script/framework/container/Parcel.java b/scripting/java/com/sun/star/script/framework/container/Parcel.java
index 75ca7effc811..6d33130c7d40 100644
--- a/scripting/java/com/sun/star/script/framework/container/Parcel.java
+++ b/scripting/java/com/sun/star/script/framework/container/Parcel.java
@@ -30,23 +30,15 @@
package com.sun.star.script.framework.container;
import com.sun.star.script.framework.log.*;
import com.sun.star.script.framework.io.*;
-import com.sun.star.script.framework.browse.*;
import com.sun.star.script.framework.provider.PathUtils;
import com.sun.star.container.*;
import com.sun.star.uno.Type;
import com.sun.star.uno.UnoRuntime;
-import com.sun.star.lang.*;
-import com.sun.star.io.*;
-import com.sun.star.frame.*;
-
-import com.sun.star.embed.*;
import com.sun.star.ucb.XSimpleFileAccess;
import com.sun.star.ucb.XSimpleFileAccess2;
import java.io.*;
-import java.util.*;
-import java.net.*;
public class Parcel implements XNameContainer
{
diff --git a/scripting/java/com/sun/star/script/framework/container/ParcelContainer.java b/scripting/java/com/sun/star/script/framework/container/ParcelContainer.java
index 70673c48a01c..7c6148ee2fae 100644
--- a/scripting/java/com/sun/star/script/framework/container/ParcelContainer.java
+++ b/scripting/java/com/sun/star/script/framework/container/ParcelContainer.java
@@ -37,19 +37,14 @@ import com.sun.star.script.framework.provider.PathUtils;
import com.sun.star.container.*;
import com.sun.star.uno.Type;
import com.sun.star.lang.*;
-import com.sun.star.frame.*;
import com.sun.star.io.*;
import java.io.*;
import java.util.*;
import com.sun.star.ucb.XSimpleFileAccess;
import com.sun.star.ucb.XSimpleFileAccess2;
import com.sun.star.lang.XMultiComponentFactory;
-import com.sun.star.beans.XPropertySet;
import com.sun.star.uno.XComponentContext;
import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.deployment.*;
-import com.sun.star.embed.*;
import com.sun.star.uri.XUriReference;
import com.sun.star.uri.XUriReferenceFactory;
diff --git a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
index f0c42da57d4d..a415b02470a4 100644
--- a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
+++ b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
@@ -30,20 +30,14 @@
package com.sun.star.script.framework.container;
-import java.net.URLEncoder;
-import java.net.URLDecoder;
-import java.net.URLStreamHandler;
import java.net.URL;
import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
import java.util.Vector;
import java.util.StringTokenizer;
-import java.io.File;
import java.io.InputStream;
-import java.io.FileOutputStream;
import java.io.OutputStream;
import com.sun.star.script.framework.log.LogUtils;
@@ -52,22 +46,13 @@ import com.sun.star.script.framework.provider.PathUtils;
import com.sun.star.script.framework.io.XInputStreamImpl;
-
import com.sun.star.script.framework.container.ScriptEntry;
import com.sun.star.script.framework.container.Parcel;
-import com.sun.star.script.framework.io.XOutputStreamWrapper;
-import com.sun.star.script.framework.io.UCBStreamHandler;
import com.sun.star.script.framework.io.UCBStreamHandler;
-import com.sun.star.io.XTruncate;
-import com.sun.star.io.XOutputStream;
-
import com.sun.star.ucb.XSimpleFileAccess2;
-
-import com.sun.star.io.XStream;
-
import com.sun.star.uno.UnoRuntime;
public class ScriptMetaData extends ScriptEntry implements Cloneable {
diff --git a/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java b/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java
index c2ea432e10cf..40eb7080aa32 100644
--- a/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java
+++ b/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java
@@ -36,7 +36,6 @@ import com.sun.star.script.framework.io.XInputStreamWrapper;
import java.util.Map;
import java.util.HashMap;
-import java.util.StringTokenizer;
import java.io.OutputStream;
import java.io.InputStream;
@@ -44,41 +43,10 @@ import com.sun.star.uno.XComponentContext;
import com.sun.star.uno.UnoRuntime;
-import com.sun.star.frame.XModel;
-import com.sun.star.lang.XEventListener;
-import com.sun.star.lang.EventObject;
-import com.sun.star.lang.XComponent;
-
import com.sun.star.io.XOutputStream;
import com.sun.star.io.XTruncate;
-
-import com.sun.star.uno.Type;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Any;
-
-import com.sun.star.ucb.Command;
-import com.sun.star.ucb.XContentProvider;
-import com.sun.star.ucb.XContent;
-import com.sun.star.ucb.XCommandProcessor;
-import com.sun.star.ucb.XContentIdentifier;
-import com.sun.star.ucb.XContentIdentifierFactory;
-import com.sun.star.ucb.XSimpleFileAccess;
-
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.beans.Property;
-
-import com.sun.star.sdbc.XRow;
-
import com.sun.star.deployment.XPackage;
-import com.sun.star.deployment.XPackageManager;
-import com.sun.star.deployment.XPackageManagerFactory;
-
-import com.sun.star.uno.XComponentContext;
-
-import com.sun.star.lang.XMultiComponentFactory;
-
-import com.sun.star.script.provider.XScriptContext;
public class UnoPkgContainer extends ParcelContainer
{
diff --git a/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java b/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java
index 61435fd55bcb..d12c22fe259a 100644
--- a/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java
+++ b/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java
@@ -29,11 +29,7 @@
************************************************************************/
package com.sun.star.script.framework.io;
import java.io.*;
-import com.sun.star.io.XInputStream;
import com.sun.star.io.XOutputStream;
-import com.sun.star.io.XStream;
-import com.sun.star.util.XModifiable;
-import com.sun.star.script.framework.log.*;
public class XOutputStreamWrapper extends OutputStream {
diff --git a/scripting/java/com/sun/star/script/framework/io/XStorageHelper.java b/scripting/java/com/sun/star/script/framework/io/XStorageHelper.java
index 8ff5e4672eba..81d2f33435b0 100644
--- a/scripting/java/com/sun/star/script/framework/io/XStorageHelper.java
+++ b/scripting/java/com/sun/star/script/framework/io/XStorageHelper.java
@@ -39,21 +39,13 @@ import com.sun.star.uno.UnoRuntime;
import com.sun.star.lang.XComponent;
-import com.sun.star.uno.Any;
import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.XComponentContext;
-
-
import com.sun.star.io.XStream;
import com.sun.star.io.XInputStream;
import com.sun.star.io.XOutputStream;
-import com.sun.star.io.XTruncate;
-import com.sun.star.io.XSeekable;
import com.sun.star.embed.XStorage;
-import com.sun.star.embed.ElementModes;
import com.sun.star.embed.XTransactedObject;
import com.sun.star.document.XDocumentSubStorageSupplier;
@@ -68,7 +60,6 @@ import com.sun.star.script.framework.provider.PathUtils;
import java.util.*;
import java.io.*;
-import java.util.zip.*;
public class XStorageHelper implements XEventListener
diff --git a/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java b/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java
index 15b601a27294..e3b4989657da 100755
--- a/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java
+++ b/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java
@@ -30,13 +30,7 @@
package com.sun.star.script.framework.provider;
-import java.util.ArrayList;
-import java.util.Vector;
-import java.io.File;
-import java.io.IOException;
import java.net.*;
-import com.sun.star.frame.XModel;
-import com.sun.star.uno.XComponentContext;
import com.sun.star.script.framework.log.LogUtils;
import com.sun.star.script.framework.container.ScriptMetaData;
diff --git a/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java b/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java
index 73e5656b1580..5a8b16ff2850 100644
--- a/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java
+++ b/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java
@@ -32,27 +32,11 @@ package com.sun.star.script.framework.provider;
import com.sun.star.frame.XModel;
import com.sun.star.frame.XDesktop;
import com.sun.star.uno.XComponentContext;
-import com.sun.star.lang.XMultiComponentFactory;
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.beans.UnknownPropertyException;
-import com.sun.star.beans.PropertyVetoException;
-import com.sun.star.beans.XPropertyChangeListener;
-import com.sun.star.beans.XVetoableChangeListener;
-import com.sun.star.lang.WrappedTargetException;
-import com.sun.star.lang.IllegalArgumentException;
import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.beans.PropertyAttribute;
import com.sun.star.document.XScriptInvocationContext;
-import com.sun.star.lib.uno.helper.PropertySet;
-import com.sun.star.uno.Type;
-
-import java.util.HashMap;
import com.sun.star.script.provider.XScriptContext;
-import com.sun.star.script.framework.log.LogUtils;
-
/**
* Description of the Class
diff --git a/scripting/java/com/sun/star/script/framework/provider/PathUtils.java b/scripting/java/com/sun/star/script/framework/provider/PathUtils.java
index 85c8ecfe4393..cc45040e3c5c 100644
--- a/scripting/java/com/sun/star/script/framework/provider/PathUtils.java
+++ b/scripting/java/com/sun/star/script/framework/provider/PathUtils.java
@@ -30,28 +30,10 @@
package com.sun.star.script.framework.provider;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-
-import java.util.Vector;
import java.util.StringTokenizer;
-import java.net.URLStreamHandler;
-import java.net.URL;
-import java.net.URLDecoder;
-import java.net.MalformedURLException;
-
import java.lang.reflect.Method;
-import com.sun.star.uno.XComponentContext;
-
-import com.sun.star.script.framework.log.LogUtils;
-
-
-import com.sun.star.util.XMacroExpander;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.AnyConverter;
import com.sun.star.frame.XModel;
import com.sun.star.uno.IQueryInterface;
diff --git a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java
index c9484f55a3fe..65c07349d740 100755
--- a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java
+++ b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java
@@ -51,7 +51,6 @@ import com.sun.star.beans.XPropertyChangeListener;
import com.sun.star.beans.XPropertySetInfo;
import com.sun.star.beans.Property;
-import com.sun.star.uno.Type;
import com.sun.star.beans.XIntrospectionAccess;
import com.sun.star.script.XInvocation;
@@ -90,7 +89,7 @@ import com.sun.star.deployment.XPackage;
import com.sun.star.document.XScriptInvocationContext;
import com.sun.star.frame.XTransientDocumentsDocumentContentFactory;
import com.sun.star.uno.TypeClass;
-import java.util.*;
+
public abstract class ScriptProvider
implements XScriptProvider, XBrowseNode, XPropertySet, XInvocation,
XInitialization, XTypeProvider, XServiceInfo, XNameContainer
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
index cf0f47ddc96f..617c99051250 100755
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
@@ -30,17 +30,11 @@
package com.sun.star.script.framework.provider.beanshell;
import javax.swing.JTextArea;
-import javax.swing.JPanel;
import javax.swing.JScrollPane;
-import javax.swing.JButton;
import javax.swing.JComponent;
-import javax.swing.JFileChooser;
-import javax.swing.JOptionPane;
-import javax.swing.text.Document;
import javax.swing.event.DocumentListener;
import javax.swing.event.DocumentEvent;
-import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.Color;
import java.awt.Font;
@@ -48,8 +42,6 @@ import java.awt.FontMetrics;
import java.awt.Polygon;
import java.awt.Rectangle;
import java.awt.Dimension;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
public class PlainSourceView extends JScrollPane
implements ScriptSourceView, DocumentListener {
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java
index 0da72e415278..c7286ccb2a0a 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java
@@ -33,7 +33,6 @@ import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JButton;
-import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import java.awt.FlowLayout;
@@ -42,18 +41,13 @@ import java.awt.event.ActionEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
-import java.io.File;
import java.io.InputStream;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
import java.io.OutputStream;
import java.io.IOException;
import java.net.URL;
import java.util.Map;
import java.util.HashMap;
-import bsh.Interpreter;
-
import com.sun.star.script.provider.XScriptContext;
import com.sun.star.script.framework.provider.ScriptEditor;
import com.sun.star.script.framework.container.ScriptMetaData;
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
index 00f6f1c7eb75..732013601c76 100755
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
@@ -42,7 +42,6 @@ import com.sun.star.uno.Any;
import com.sun.star.reflection.InvocationTargetException;
import java.util.StringTokenizer;
-import java.io.*;
import java.net.URL;
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceModel.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceModel.java
index 1cbf156262e1..186fed25a6e4 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceModel.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceModel.java
@@ -29,15 +29,11 @@
************************************************************************/
package com.sun.star.script.framework.provider.beanshell;
-import java.io.File;
import java.io.InputStream;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
-import java.lang.reflect.InvocationTargetException;
import com.sun.star.script.provider.XScriptContext;
public class ScriptSourceModel {
diff --git a/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java b/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java
index d36821ece7bd..14fcfa348137 100755
--- a/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java
+++ b/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java
@@ -30,7 +30,6 @@
package com.sun.star.script.framework.provider.java;
import com.sun.star.frame.XModel;
-import com.sun.star.frame.XDesktop;
import com.sun.star.comp.loader.FactoryHelper;
import com.sun.star.document.XScriptInvocationContext;
import com.sun.star.uno.XComponentContext;
diff --git a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java
index 23def8559b41..45e99c8c324d 100644
--- a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java
+++ b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java
@@ -48,7 +48,6 @@ import java.net.URL;
import java.util.Map;
import java.util.HashMap;
-import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
diff --git a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java
index 04b4a8e60990..d913129c5f87 100755
--- a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java
+++ b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java
@@ -29,7 +29,6 @@
************************************************************************/
package com.sun.star.script.framework.provider.javascript;
-import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XComponentContext;
import com.sun.star.lang.XMultiComponentFactory;
import com.sun.star.lang.XMultiServiceFactory;
@@ -37,31 +36,14 @@ import com.sun.star.lang.XSingleServiceFactory;
import com.sun.star.frame.XModel;
import com.sun.star.registry.XRegistryKey;
import com.sun.star.comp.loader.FactoryHelper;
-import com.sun.star.lang.XTypeProvider;
-import com.sun.star.lang.XServiceInfo;
-import com.sun.star.lang.XInitialization;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.Any;
-import com.sun.star.beans.XPropertySet;
import com.sun.star.document.XScriptInvocationContext;
-import com.sun.star.lang.IllegalArgumentException;
-import com.sun.star.lang.WrappedTargetException;
import com.sun.star.reflection.InvocationTargetException;
-import com.sun.star.script.CannotConvertException;
-import java.io.*;
-import java.util.Vector;
-import java.util.Map;
-import java.net.MalformedURLException;
import java.net.URL;
-import com.sun.star.script.provider.XScriptProvider;
import com.sun.star.script.provider.XScript;
-import com.sun.star.script.provider.XScriptContext;
-import com.sun.star.script.provider.ScriptErrorRaisedException;
import com.sun.star.script.provider.ScriptExceptionRaisedException;
import com.sun.star.script.provider.ScriptFrameworkErrorException;
import com.sun.star.script.provider.ScriptFrameworkErrorType;
@@ -72,13 +54,11 @@ import com.sun.star.script.framework.provider.ClassLoaderFactory;
import com.sun.star.script.framework.provider.ScriptProvider;
import com.sun.star.script.framework.provider.ScriptEditor;
import com.sun.star.script.framework.container.ScriptMetaData;
-import com.sun.star.script.framework.log.*;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.ImporterTopLevel;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.JavaScriptException;
-import org.mozilla.javascript.EcmaError;
public class ScriptProviderForJavaScript
{