summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-09-06 07:57:41 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-06 17:13:58 +0200
commit743e22ec8b5e5f22696a69a2c305f7a8173a77aa (patch)
tree1349102a14f28a7d63cc558c3288c61d2607b4a8 /odk
parentbf4352084b991981975a24a8e61cbb3cbf3e0159 (diff)
Java cleanup, remove unnecessary imports
Change-Id: I2629a3068d8abd61957097268f5ab0fabf3e9722
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/Accessibility/ConnectionTask.java5
-rw-r--r--odk/examples/DevelopersGuide/Accessibility/EventHandler.java1
-rw-r--r--odk/examples/DevelopersGuide/Accessibility/GraphicalDisplay.java2
-rw-r--r--odk/examples/DevelopersGuide/Accessibility/MessageArea.java1
-rw-r--r--odk/examples/DevelopersGuide/Accessibility/RegistrationThread.java9
-rw-r--r--odk/examples/DevelopersGuide/Accessibility/TextualDisplay.java2
-rw-r--r--odk/examples/DevelopersGuide/Drawing/Organigram.java4
-rw-r--r--odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java1
-rw-r--r--odk/examples/DevelopersGuide/Forms/ControlLock.java1
-rw-r--r--odk/examples/DevelopersGuide/Forms/ControlValidation.java6
-rw-r--r--odk/examples/DevelopersGuide/Forms/DateValidator.java2
-rw-r--r--odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java2
-rw-r--r--odk/examples/DevelopersGuide/Forms/DocumentHelper.java3
-rw-r--r--odk/examples/DevelopersGuide/Forms/DocumentType.java2
-rw-r--r--odk/examples/DevelopersGuide/Forms/GridFieldValidator.java4
-rw-r--r--odk/examples/DevelopersGuide/Forms/HsqlDatabase.java1
-rw-r--r--odk/examples/DevelopersGuide/Forms/InteractionRequest.java1
-rw-r--r--odk/examples/DevelopersGuide/Forms/NumericValidator.java2
-rw-r--r--odk/examples/DevelopersGuide/Forms/RowSet.java1
-rw-r--r--odk/examples/DevelopersGuide/Forms/SalesFilter.java5
-rw-r--r--odk/examples/DevelopersGuide/Forms/SingleControlValidation.java4
-rw-r--r--odk/examples/DevelopersGuide/Forms/SpreadsheetDocument.java1
-rw-r--r--odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java6
-rw-r--r--odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java2
-rw-r--r--odk/examples/DevelopersGuide/Forms/TextValidator.java2
-rw-r--r--odk/examples/DevelopersGuide/Forms/TimeValidator.java2
-rw-r--r--odk/examples/DevelopersGuide/Forms/ValueBinding.java1
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java3
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java1
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java3
-rw-r--r--odk/examples/DevelopersGuide/UCB/Helper.java2
-rw-r--r--odk/examples/DevelopersGuide/UCB/PropertiesComposer.java1
-rw-r--r--odk/examples/DevelopersGuide/UCB/ResourceManager.java1
-rw-r--r--odk/examples/java/Inspector/HideableMutableTreeNode.java2
-rw-r--r--odk/examples/java/Inspector/HideableTreeModel.java3
-rw-r--r--odk/examples/java/Inspector/InspectorAddon.java2
-rw-r--r--odk/examples/java/Inspector/InspectorPane.java4
-rw-r--r--odk/examples/java/Inspector/Introspector.java11
-rw-r--r--odk/examples/java/Inspector/MethodParametersDialog.java3
-rw-r--r--odk/examples/java/Inspector/ProtocolHandlerAddon.java3
-rw-r--r--odk/examples/java/Inspector/SourceCodeGenerator.java8
-rw-r--r--odk/examples/java/Inspector/SwingDialogProvider.java2
-rw-r--r--odk/examples/java/Inspector/SwingTreeControlProvider.java1
-rw-r--r--odk/examples/java/Inspector/SwingUnoFacetteNode.java5
-rw-r--r--odk/examples/java/Inspector/TestInspector.java2
-rw-r--r--odk/examples/java/Inspector/UnoMethodNode.java2
-rw-r--r--odk/examples/java/Inspector/UnoPropertyNode.java8
-rw-r--r--odk/examples/java/Inspector/UnoTreeRenderer.java3
-rw-r--r--odk/examples/java/Inspector/XLanguageSourceCodeGenerator.java1
55 files changed, 7 insertions, 149 deletions
diff --git a/odk/examples/DevelopersGuide/Accessibility/ConnectionTask.java b/odk/examples/DevelopersGuide/Accessibility/ConnectionTask.java
index 7bf9bdb88cd5..fdfd8a8c767a 100644
--- a/odk/examples/DevelopersGuide/Accessibility/ConnectionTask.java
+++ b/odk/examples/DevelopersGuide/Accessibility/ConnectionTask.java
@@ -32,14 +32,9 @@
*
*************************************************************************/
-import java.awt.event.ActionListener;
-import javax.swing.*;
-import java.awt.*;
import java.util.*;
-import com.sun.star.awt.XFocusListener;
import com.sun.star.uno.UnoRuntime;
-import com.sun.star.bridge.XUnoUrlResolver;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.accessibility.*;
import com.sun.star.awt.XExtendedToolkit;
diff --git a/odk/examples/DevelopersGuide/Accessibility/EventHandler.java b/odk/examples/DevelopersGuide/Accessibility/EventHandler.java
index 61395bba7d70..3bfaa87cb3a8 100644
--- a/odk/examples/DevelopersGuide/Accessibility/EventHandler.java
+++ b/odk/examples/DevelopersGuide/Accessibility/EventHandler.java
@@ -35,7 +35,6 @@
import java.util.Vector;
import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.Type;
import com.sun.star.accessibility.*;
diff --git a/odk/examples/DevelopersGuide/Accessibility/GraphicalDisplay.java b/odk/examples/DevelopersGuide/Accessibility/GraphicalDisplay.java
index 37579e1c3242..86e2d486e733 100644
--- a/odk/examples/DevelopersGuide/Accessibility/GraphicalDisplay.java
+++ b/odk/examples/DevelopersGuide/Accessibility/GraphicalDisplay.java
@@ -35,8 +35,6 @@
import javax.swing.*;
import java.awt.Dimension;
import java.awt.*;
-import java.awt.geom.*;
-
import com.sun.star.accessibility.XAccessible;
import com.sun.star.accessibility.XAccessibleContext;
import com.sun.star.accessibility.XAccessibleComponent;
diff --git a/odk/examples/DevelopersGuide/Accessibility/MessageArea.java b/odk/examples/DevelopersGuide/Accessibility/MessageArea.java
index 9f3280a591a1..eebcc36e2ae2 100644
--- a/odk/examples/DevelopersGuide/Accessibility/MessageArea.java
+++ b/odk/examples/DevelopersGuide/Accessibility/MessageArea.java
@@ -33,7 +33,6 @@
*************************************************************************/
import java.awt.Font;
-import java.awt.Rectangle;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JScrollPane;
diff --git a/odk/examples/DevelopersGuide/Accessibility/RegistrationThread.java b/odk/examples/DevelopersGuide/Accessibility/RegistrationThread.java
index 092941b323a7..3dbb03525830 100644
--- a/odk/examples/DevelopersGuide/Accessibility/RegistrationThread.java
+++ b/odk/examples/DevelopersGuide/Accessibility/RegistrationThread.java
@@ -32,17 +32,8 @@
*
*************************************************************************/
-import java.awt.event.ActionListener;
-import javax.swing.*;
-import java.awt.*;
-import java.util.*;
-
-import com.sun.star.awt.XTopWindowListener;
import com.sun.star.uno.UnoRuntime;
-import com.sun.star.bridge.XUnoUrlResolver;
-import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.accessibility.*;
-import com.sun.star.awt.XExtendedToolkit;
/** This class is used as a thread and registers or unregsiters a listener
given the constructor at all nodes of a tree of accessibility objects.
diff --git a/odk/examples/DevelopersGuide/Accessibility/TextualDisplay.java b/odk/examples/DevelopersGuide/Accessibility/TextualDisplay.java
index 0d8ce96d978d..02699e239d84 100644
--- a/odk/examples/DevelopersGuide/Accessibility/TextualDisplay.java
+++ b/odk/examples/DevelopersGuide/Accessibility/TextualDisplay.java
@@ -34,7 +34,6 @@
import java.awt.Color;
import java.awt.Font;
-import java.awt.Dimension;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import java.util.Vector;
@@ -44,7 +43,6 @@ import com.sun.star.accessibility.XAccessibleContext;
import com.sun.star.accessibility.XAccessibleComponent;
import com.sun.star.accessibility.XAccessibleStateSet;
-import com.sun.star.uno.AnyConverter;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.awt.Point;
diff --git a/odk/examples/DevelopersGuide/Drawing/Organigram.java b/odk/examples/DevelopersGuide/Drawing/Organigram.java
index c564fd273178..03f6e541efc1 100644
--- a/odk/examples/DevelopersGuide/Drawing/Organigram.java
+++ b/odk/examples/DevelopersGuide/Drawing/Organigram.java
@@ -33,10 +33,6 @@
*************************************************************************/
import com.sun.star.beans.PropertyValue;
-import com.sun.star.beans.XPropertySet;
-
-import com.sun.star.bridge.XUnoUrlResolver;
-
import com.sun.star.frame.XComponentLoader;
import com.sun.star.lang.XComponent;
diff --git a/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java b/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java
index a8ae5f468417..8bd28f78ef68 100644
--- a/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java
+++ b/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java
@@ -32,7 +32,6 @@
*
*************************************************************************/
-import com.sun.star.uno.*;
import com.sun.star.container.*;
import com.sun.star.lang.*;
diff --git a/odk/examples/DevelopersGuide/Forms/ControlLock.java b/odk/examples/DevelopersGuide/Forms/ControlLock.java
index 5dada0d8fca7..a24a28203119 100644
--- a/odk/examples/DevelopersGuide/Forms/ControlLock.java
+++ b/odk/examples/DevelopersGuide/Forms/ControlLock.java
@@ -37,7 +37,6 @@ import com.sun.star.lang.*;
import com.sun.star.container.*;
import com.sun.star.beans.*;
import com.sun.star.form.*;
-import com.sun.star.util.*;
import com.sun.star.sdbc.*;
diff --git a/odk/examples/DevelopersGuide/Forms/ControlValidation.java b/odk/examples/DevelopersGuide/Forms/ControlValidation.java
index a3ea88730990..67d0cec1d255 100644
--- a/odk/examples/DevelopersGuide/Forms/ControlValidation.java
+++ b/odk/examples/DevelopersGuide/Forms/ControlValidation.java
@@ -16,13 +16,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-import com.sun.star.uno.*;
-import com.sun.star.util.*;
-import com.sun.star.lang.*;
-import com.sun.star.accessibility.*;
-import com.sun.star.container.*;
import com.sun.star.beans.*;
-import com.sun.star.form.binding.*;
/**
*
diff --git a/odk/examples/DevelopersGuide/Forms/DateValidator.java b/odk/examples/DevelopersGuide/Forms/DateValidator.java
index be2387bac657..dc2cd5335833 100644
--- a/odk/examples/DevelopersGuide/Forms/DateValidator.java
+++ b/odk/examples/DevelopersGuide/Forms/DateValidator.java
@@ -16,7 +16,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-import com.sun.star.form.binding.*;
+
/**
*
diff --git a/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java b/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java
index 0dfc26906d74..2b10138471e3 100644
--- a/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java
+++ b/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java
@@ -15,8 +15,6 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-import com.sun.star.bridge.XUnoUrlResolver;
-import com.sun.star.lang.XMultiComponentFactory;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XComponentContext;
import com.sun.star.util.XCloseable;
diff --git a/odk/examples/DevelopersGuide/Forms/DocumentHelper.java b/odk/examples/DevelopersGuide/Forms/DocumentHelper.java
index df43d8af03a1..9132a9c27f0a 100644
--- a/odk/examples/DevelopersGuide/Forms/DocumentHelper.java
+++ b/odk/examples/DevelopersGuide/Forms/DocumentHelper.java
@@ -19,14 +19,11 @@
/**************************************************************************/
import com.sun.star.uno.*;
import com.sun.star.lang.*;
-import com.sun.star.util.*;
-import com.sun.star.awt.*;
import com.sun.star.drawing.*;
import com.sun.star.frame.*;
import com.sun.star.form.*;
import com.sun.star.beans.*;
import com.sun.star.container.*;
-import com.sun.star.container.*;
/**************************************************************************/
/** provides a small wrapper around a document
diff --git a/odk/examples/DevelopersGuide/Forms/DocumentType.java b/odk/examples/DevelopersGuide/Forms/DocumentType.java
index 4ada8e07ee2d..273d5ffad171 100644
--- a/odk/examples/DevelopersGuide/Forms/DocumentType.java
+++ b/odk/examples/DevelopersGuide/Forms/DocumentType.java
@@ -15,7 +15,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-import com.sun.star.uno.*;
+
/** a helper "enumeration class" for classifying a document type
*/
diff --git a/odk/examples/DevelopersGuide/Forms/GridFieldValidator.java b/odk/examples/DevelopersGuide/Forms/GridFieldValidator.java
index 03e8a931d528..e32cccc147c2 100644
--- a/odk/examples/DevelopersGuide/Forms/GridFieldValidator.java
+++ b/odk/examples/DevelopersGuide/Forms/GridFieldValidator.java
@@ -38,10 +38,6 @@ import com.sun.star.beans.*;
import com.sun.star.form.*;
import com.sun.star.lang.*;
import com.sun.star.sdb.*;
-import com.sun.star.sdbc.*;
-import com.sun.star.sdbcx.*;
-import com.sun.star.container.*;
-import com.sun.star.awt.*;
import com.sun.star.task.*;
/**************************************************************************/
diff --git a/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java b/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java
index b0c26872bf27..d967435163a8 100644
--- a/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java
+++ b/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java
@@ -34,7 +34,6 @@ import com.sun.star.uno.XComponentContext;
import java.io.File;
import com.sun.star.util.CloseVetoException;
-import java.io.File;
/**
*
diff --git a/odk/examples/DevelopersGuide/Forms/InteractionRequest.java b/odk/examples/DevelopersGuide/Forms/InteractionRequest.java
index 31b31c9ebd92..65dbba1af217 100644
--- a/odk/examples/DevelopersGuide/Forms/InteractionRequest.java
+++ b/odk/examples/DevelopersGuide/Forms/InteractionRequest.java
@@ -32,7 +32,6 @@
*
*************************************************************************/
-import com.sun.star.uno.*;
import com.sun.star.task.*;
import java.util.Vector;
diff --git a/odk/examples/DevelopersGuide/Forms/NumericValidator.java b/odk/examples/DevelopersGuide/Forms/NumericValidator.java
index 736cebfc98c5..d12574d847f6 100644
--- a/odk/examples/DevelopersGuide/Forms/NumericValidator.java
+++ b/odk/examples/DevelopersGuide/Forms/NumericValidator.java
@@ -16,7 +16,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-import com.sun.star.form.binding.*;
+
/**
*
diff --git a/odk/examples/DevelopersGuide/Forms/RowSet.java b/odk/examples/DevelopersGuide/Forms/RowSet.java
index 3853c2efe37c..acd56f96abff 100644
--- a/odk/examples/DevelopersGuide/Forms/RowSet.java
+++ b/odk/examples/DevelopersGuide/Forms/RowSet.java
@@ -20,7 +20,6 @@ import com.sun.star.beans.XPropertySet;
import com.sun.star.container.XIndexAccess;
import com.sun.star.container.XNameAccess;
import com.sun.star.io.XInputStream;
-import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.sdbc.SQLException;
import com.sun.star.sdbc.XArray;
import com.sun.star.sdbc.XBlob;
diff --git a/odk/examples/DevelopersGuide/Forms/SalesFilter.java b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
index fa6e9d19abc7..9fc561759633 100644
--- a/odk/examples/DevelopersGuide/Forms/SalesFilter.java
+++ b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
@@ -36,13 +36,8 @@ import com.sun.star.uno.*;
import com.sun.star.beans.*;
import com.sun.star.form.*;
import com.sun.star.lang.*;
-import com.sun.star.sdb.*;
-import com.sun.star.sdbc.*;
-import com.sun.star.sdbcx.*;
-import com.sun.star.container.*;
import com.sun.star.awt.*;
-import java.util.Vector;
import java.util.Calendar;
import java.util.GregorianCalendar;
diff --git a/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java b/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java
index 400251a18d59..0d24c6f04465 100644
--- a/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java
+++ b/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java
@@ -17,12 +17,8 @@
*/
import com.sun.star.uno.*;
-import com.sun.star.util.*;
import com.sun.star.lang.*;
-import com.sun.star.accessibility.*;
-import com.sun.star.container.*;
import com.sun.star.beans.*;
-import com.sun.star.form.binding.*;
import com.sun.star.form.validation.*;
/**
diff --git a/odk/examples/DevelopersGuide/Forms/SpreadsheetDocument.java b/odk/examples/DevelopersGuide/Forms/SpreadsheetDocument.java
index 7f1c3a53d0e1..2e01786c1dc7 100644
--- a/odk/examples/DevelopersGuide/Forms/SpreadsheetDocument.java
+++ b/odk/examples/DevelopersGuide/Forms/SpreadsheetDocument.java
@@ -17,7 +17,6 @@
*/
import com.sun.star.uno.*;
-import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.lang.XComponent;
import com.sun.star.table.XCellRange;
import com.sun.star.table.CellAddress;
diff --git a/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java b/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java
index 6e9eee130851..5b7c1c1b00e3 100644
--- a/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java
+++ b/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java
@@ -18,14 +18,8 @@
import com.sun.star.uno.UnoRuntime;
-import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.beans.XPropertySet;
import com.sun.star.table.XCellRange;
-import com.sun.star.table.XCell;
-import com.sun.star.text.XTextDocument;
-import com.sun.star.text.XText;
-import com.sun.star.text.XTextTable;
-import com.sun.star.text.XTextCursor;
import com.sun.star.text.XTextRange;
import com.sun.star.form.binding.XValueBinding;
import com.sun.star.form.binding.XBindableValue;
diff --git a/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java b/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java
index b353609699bb..bacb72240257 100644
--- a/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java
+++ b/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java
@@ -19,9 +19,7 @@ import com.sun.star.uno.Type;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.table.XCell;
import com.sun.star.util.XModifyListener;
-import com.sun.star.beans.XPropertySet;
import com.sun.star.text.XTextRange;
-import com.sun.star.form.binding.IncompatibleTypesException;
/** a value binding to be connected to a form control
diff --git a/odk/examples/DevelopersGuide/Forms/TextValidator.java b/odk/examples/DevelopersGuide/Forms/TextValidator.java
index e01c497b54e2..a5bfe07f589a 100644
--- a/odk/examples/DevelopersGuide/Forms/TextValidator.java
+++ b/odk/examples/DevelopersGuide/Forms/TextValidator.java
@@ -16,7 +16,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-import com.sun.star.form.binding.*;
+
/**
*
diff --git a/odk/examples/DevelopersGuide/Forms/TimeValidator.java b/odk/examples/DevelopersGuide/Forms/TimeValidator.java
index 514c2ddfed8c..61fd89b0b243 100644
--- a/odk/examples/DevelopersGuide/Forms/TimeValidator.java
+++ b/odk/examples/DevelopersGuide/Forms/TimeValidator.java
@@ -16,7 +16,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-import com.sun.star.form.binding.*;
+
/**
*
diff --git a/odk/examples/DevelopersGuide/Forms/ValueBinding.java b/odk/examples/DevelopersGuide/Forms/ValueBinding.java
index 2a6db4c9fe88..ffb7555eaf5f 100644
--- a/odk/examples/DevelopersGuide/Forms/ValueBinding.java
+++ b/odk/examples/DevelopersGuide/Forms/ValueBinding.java
@@ -18,7 +18,6 @@
import com.sun.star.uno.UnoRuntime;
-import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.beans.XPropertySet;
import com.sun.star.text.XTextDocument;
import com.sun.star.text.XText;
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
index 1f88a25ecb57..5b37832d46f2 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
@@ -32,13 +32,10 @@
*
*************************************************************************/
-import com.sun.star.uno.UnoRuntime;
-
import java.awt.*;
import javax.swing.*;
import java.lang.String;
import java.awt.event.*;
-import java.awt.*;
/**
* Makes it possible to change some states of currently loaded
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java
index f11be9f1d408..5251eb5a2051 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java
@@ -34,8 +34,6 @@
// __________ Imports __________
-import com.sun.star.uno.UnoRuntime;
-
import java.lang.String;
// __________ Implementation __________
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
index c2fbfa0d4857..37cc140a3dea 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
@@ -38,8 +38,6 @@ import com.sun.star.uno.UnoRuntime;
import java.awt.*;
import java.awt.event.*;
-import java.lang.*;
-import java.net.*;
import javax.swing.*;
import javax.swing.border.*;
import java.awt.AWTEvent;
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
index 0575beacd772..31d4522260ff 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
@@ -37,7 +37,6 @@
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.AnyConverter;
-import java.lang.*;
import java.awt.*;
import javax.swing.*;
import java.io.*;
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
index f8057b915585..66ab24d41512 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
@@ -36,8 +36,6 @@
import com.sun.star.uno.UnoRuntime;
-import java.lang.*;
-import javax.swing.*;
import java.util.Vector;
// __________ Implementation __________
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java
index 24cd05e2f526..9100f57f8a11 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java
@@ -32,7 +32,7 @@
*
*************************************************************************/
-import java.awt.*;
+
/** <p>Class to pass the system window handle to the OpenOffice.org toolkit.</p>
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java
index f3324e0b79ab..307f3e65ca69 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java
@@ -35,8 +35,6 @@
// __________ Imports __________
import java.awt.*;
-import java.lang.*;
-import java.awt.event.*;
// __________ Implementation __________
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
index ab19b7ecf30e..c250940b379d 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
@@ -34,8 +34,6 @@
// __________ Imports __________
-import com.sun.star.uno.UnoRuntime;
-
import java.awt.*;
import javax.swing.*;
import java.lang.String;
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
index 3a85b1fb0e18..451593f9a634 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
@@ -34,9 +34,6 @@
// __________ Imports __________
-import com.sun.star.uno.UnoRuntime;
-
-import java.lang.*;
import java.util.*;
// __________ Implementation __________
diff --git a/odk/examples/DevelopersGuide/UCB/Helper.java b/odk/examples/DevelopersGuide/UCB/Helper.java
index ccab5c0feb1e..103f6cddcdbd 100644
--- a/odk/examples/DevelopersGuide/UCB/Helper.java
+++ b/odk/examples/DevelopersGuide/UCB/Helper.java
@@ -32,8 +32,6 @@
*
*************************************************************************/
-import java.util.Vector;
-
import java.io.File;
import java.io.FileOutputStream;
diff --git a/odk/examples/DevelopersGuide/UCB/PropertiesComposer.java b/odk/examples/DevelopersGuide/UCB/PropertiesComposer.java
index 3807447a0dfa..739ba7b2e687 100644
--- a/odk/examples/DevelopersGuide/UCB/PropertiesComposer.java
+++ b/odk/examples/DevelopersGuide/UCB/PropertiesComposer.java
@@ -37,7 +37,6 @@ import java.util.StringTokenizer;
import com.sun.star.beans.PropertyValue;
import com.sun.star.ucb.XContent;
-import com.sun.star.uno.UnoRuntime;
/**
* Setting Property Values of a UCB Content
diff --git a/odk/examples/DevelopersGuide/UCB/ResourceManager.java b/odk/examples/DevelopersGuide/UCB/ResourceManager.java
index bfe94ed59667..eb48a151f2a5 100644
--- a/odk/examples/DevelopersGuide/UCB/ResourceManager.java
+++ b/odk/examples/DevelopersGuide/UCB/ResourceManager.java
@@ -35,7 +35,6 @@
import com.sun.star.ucb.NameClash;
import com.sun.star.ucb.TransferCommandOperation;
import com.sun.star.ucb.GlobalTransferCommandArgument;
-import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface;
/**
diff --git a/odk/examples/java/Inspector/HideableMutableTreeNode.java b/odk/examples/java/Inspector/HideableMutableTreeNode.java
index 817758243b36..8b00c407bef6 100644
--- a/odk/examples/java/Inspector/HideableMutableTreeNode.java
+++ b/odk/examples/java/Inspector/HideableMutableTreeNode.java
@@ -16,8 +16,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-// *** HideableMutableTreeNode ***
-import javax.swing.*;
import javax.swing.tree.*;
/**
diff --git a/odk/examples/java/Inspector/HideableTreeModel.java b/odk/examples/java/Inspector/HideableTreeModel.java
index 867fb6b01504..df5b0e26acba 100644
--- a/odk/examples/java/Inspector/HideableTreeModel.java
+++ b/odk/examples/java/Inspector/HideableTreeModel.java
@@ -16,9 +16,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-// *** HideableTreeModel ***
-import java.awt.*;
-import java.awt.event.*;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Vector;
diff --git a/odk/examples/java/Inspector/InspectorAddon.java b/odk/examples/java/Inspector/InspectorAddon.java
index e2cb95ee2559..f7605fd87c6d 100644
--- a/odk/examples/java/Inspector/InspectorAddon.java
+++ b/odk/examples/java/Inspector/InspectorAddon.java
@@ -33,9 +33,7 @@
*************************************************************************/
import com.sun.star.beans.XPropertySet;
import com.sun.star.frame.DispatchDescriptor;
-import com.sun.star.frame.FrameSearchFlag;
import com.sun.star.frame.XController;
-import com.sun.star.frame.XDesktop;
import com.sun.star.frame.XDispatch;
import com.sun.star.frame.XDispatchProvider;
import com.sun.star.frame.XFrame;
diff --git a/odk/examples/java/Inspector/InspectorPane.java b/odk/examples/java/Inspector/InspectorPane.java
index 2859ae8c212b..49339402fefd 100644
--- a/odk/examples/java/Inspector/InspectorPane.java
+++ b/odk/examples/java/Inspector/InspectorPane.java
@@ -35,7 +35,6 @@
import com.sun.star.lib.uno.helper.WeakBase;
import com.sun.star.uno.Any;
-import com.sun.star.uno.AnyConverter;
import com.sun.star.lang.XServiceInfo;
import com.sun.star.uno.TypeClass;
import com.sun.star.uno.UnoRuntime;
@@ -46,10 +45,7 @@ import com.sun.star.beans.Property;
import com.sun.star.beans.PropertyValue;
import com.sun.star.beans.XPropertySet;
import com.sun.star.reflection.XIdlMethod;
-import javax.swing.tree.ExpandVetoException;
import org.openoffice.XInstanceInspector;
-import javax.swing.tree.TreePath;
-import javax.swing.event.TreeWillExpandListener;
public class InspectorPane extends WeakBase implements XInstanceInspector{ //, XServiceInfo
private XIdlMethod[] xIdlMethods;
diff --git a/odk/examples/java/Inspector/Introspector.java b/odk/examples/java/Inspector/Introspector.java
index 7bc7e39e2bda..1ea2eb382a3c 100644
--- a/odk/examples/java/Inspector/Introspector.java
+++ b/odk/examples/java/Inspector/Introspector.java
@@ -34,25 +34,17 @@
import com.sun.star.beans.IllegalTypeException;
import com.sun.star.beans.MethodConcept;
-import com.sun.star.beans.NamedValue;
import com.sun.star.beans.Property;
import com.sun.star.beans.XIntrospection;
import com.sun.star.beans.XIntrospectionAccess;
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.bridge.UnoUrlResolver;
-import com.sun.star.bridge.XUnoUrlResolver;
-import com.sun.star.comp.helper.Bootstrap;
import com.sun.star.container.XEnumeration;
import com.sun.star.container.XEnumerationAccess;
import com.sun.star.container.XHierarchicalNameAccess;
import com.sun.star.container.XIndexAccess;
-import com.sun.star.container.XNameAccess;
import com.sun.star.lang.XMultiComponentFactory;
-import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.lang.XServiceInfo;
import com.sun.star.lang.XTypeProvider;
import com.sun.star.lib.uno.helper.WeakBase;
-import com.sun.star.reflection.ParamInfo;
import com.sun.star.reflection.TypeDescriptionSearchDepth;
import com.sun.star.reflection.XConstantTypeDescription;
import com.sun.star.reflection.XConstantsTypeDescription;
@@ -62,13 +54,11 @@ import com.sun.star.reflection.XIdlMethod;
import com.sun.star.reflection.XIdlReflection;
import com.sun.star.reflection.XIndirectTypeDescription;
import com.sun.star.reflection.XInterfaceTypeDescription;
-import com.sun.star.reflection.XInterfaceTypeDescription2;
import com.sun.star.reflection.XPropertyTypeDescription;
import com.sun.star.reflection.XServiceTypeDescription;
import com.sun.star.reflection.XTypeDescription;
import com.sun.star.reflection.XTypeDescriptionEnumeration;
import com.sun.star.reflection.XTypeDescriptionEnumerationAccess;
-import com.sun.star.ucb.CommandAbortedException;
import com.sun.star.ucb.XSimpleFileAccess;
import com.sun.star.uno.AnyConverter;
import com.sun.star.uno.Type;
@@ -78,7 +68,6 @@ import com.sun.star.uno.XComponentContext;
import com.sun.star.util.URL;
import java.util.List;
import java.util.Vector;
-import javax.swing.JOptionPane;
public class Introspector extends WeakBase{
diff --git a/odk/examples/java/Inspector/MethodParametersDialog.java b/odk/examples/java/Inspector/MethodParametersDialog.java
index a2ebf7e66c41..963fcaeed265 100644
--- a/odk/examples/java/Inspector/MethodParametersDialog.java
+++ b/odk/examples/java/Inspector/MethodParametersDialog.java
@@ -40,14 +40,11 @@ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
import java.util.Vector;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JDialog;
-import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
diff --git a/odk/examples/java/Inspector/ProtocolHandlerAddon.java b/odk/examples/java/Inspector/ProtocolHandlerAddon.java
index ad3b0efe8747..86d03ade53d0 100644
--- a/odk/examples/java/Inspector/ProtocolHandlerAddon.java
+++ b/odk/examples/java/Inspector/ProtocolHandlerAddon.java
@@ -39,13 +39,10 @@ import com.sun.star.lib.uno.helper.WeakBase;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.registry.XRegistryKey;
import com.sun.star.lang.XInitialization;
-import com.sun.star.lang.XTypeProvider;
import com.sun.star.lang.XServiceInfo;
-import com.sun.star.uno.Type;
import com.sun.star.frame.XStatusListener;
import com.sun.star.frame.XDispatchProvider;
import com.sun.star.frame.XDispatch;
-import com.sun.star.frame.XModel;
import com.sun.star.frame.XFrame;
import com.sun.star.frame.DispatchDescriptor;
import com.sun.star.awt.XToolkit;
diff --git a/odk/examples/java/Inspector/SourceCodeGenerator.java b/odk/examples/java/Inspector/SourceCodeGenerator.java
index 315224acd4c9..59092c76a5c1 100644
--- a/odk/examples/java/Inspector/SourceCodeGenerator.java
+++ b/odk/examples/java/Inspector/SourceCodeGenerator.java
@@ -32,22 +32,14 @@
*
*************************************************************************/
-import com.sun.star.beans.UnknownPropertyException;
-import com.sun.star.beans.XPropertySet;
-import com.sun.star.container.XNameAccess;
-import com.sun.star.lang.Locale;
-import com.sun.star.lang.WrappedTargetException;
-import com.sun.star.lang.XServiceInfo;
import com.sun.star.reflection.ParamInfo;
import com.sun.star.reflection.XIdlClass;
import com.sun.star.reflection.XIdlMethod;
import com.sun.star.reflection.XTypeDescription;
-import com.sun.star.text.XTextTablesSupplier;
import com.sun.star.uno.Any;
import com.sun.star.uno.AnyConverter;
import com.sun.star.uno.Type;
import com.sun.star.uno.TypeClass;
-import com.sun.star.uno.UnoRuntime;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
diff --git a/odk/examples/java/Inspector/SwingDialogProvider.java b/odk/examples/java/Inspector/SwingDialogProvider.java
index 59a35726e11e..51c56fb63e5d 100644
--- a/odk/examples/java/Inspector/SwingDialogProvider.java
+++ b/odk/examples/java/Inspector/SwingDialogProvider.java
@@ -43,9 +43,7 @@ import java.awt.event.KeyEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.ButtonGroup;
-import javax.swing.JCheckBoxMenuItem;
import javax.swing.JDialog;
-import javax.swing.JEditorPane;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
diff --git a/odk/examples/java/Inspector/SwingTreeControlProvider.java b/odk/examples/java/Inspector/SwingTreeControlProvider.java
index e02286ee222f..8ef3b158f11a 100644
--- a/odk/examples/java/Inspector/SwingTreeControlProvider.java
+++ b/odk/examples/java/Inspector/SwingTreeControlProvider.java
@@ -37,7 +37,6 @@ import com.sun.star.beans.PropertyValue;
import com.sun.star.lang.NullPointerException;
import com.sun.star.reflection.XConstantTypeDescription;
import com.sun.star.reflection.XIdlMethod;
-import com.sun.star.uno.AnyConverter;
import com.sun.star.uno.Type;
import java.awt.BorderLayout;
import java.awt.Container;
diff --git a/odk/examples/java/Inspector/SwingUnoFacetteNode.java b/odk/examples/java/Inspector/SwingUnoFacetteNode.java
index 96374f1e5b9e..2b51902bc963 100644
--- a/odk/examples/java/Inspector/SwingUnoFacetteNode.java
+++ b/odk/examples/java/Inspector/SwingUnoFacetteNode.java
@@ -32,10 +32,7 @@
*
*************************************************************************/
-import com.sun.star.reflection.XIdlMethod;
-import com.sun.star.uno.Type;
-import com.sun.star.uno.XComponentContext;
-import javax.swing.tree.DefaultMutableTreeNode;
+
public class SwingUnoFacetteNode extends SwingUnoNode implements XUnoFacetteNode{
String m_sFilter = "";
diff --git a/odk/examples/java/Inspector/TestInspector.java b/odk/examples/java/Inspector/TestInspector.java
index 3141a666490b..6b8758b0728c 100644
--- a/odk/examples/java/Inspector/TestInspector.java
+++ b/odk/examples/java/Inspector/TestInspector.java
@@ -35,8 +35,6 @@
import com.sun.star.lang.XSingleComponentFactory;
import com.sun.star.uno.UnoRuntime;
-import java.io.DataInputStream;
-
public class TestInspector {
public static void main(String args[]) {
diff --git a/odk/examples/java/Inspector/UnoMethodNode.java b/odk/examples/java/Inspector/UnoMethodNode.java
index 30960bba1723..cb2cb46769f7 100644
--- a/odk/examples/java/Inspector/UnoMethodNode.java
+++ b/odk/examples/java/Inspector/UnoMethodNode.java
@@ -37,8 +37,6 @@ import com.sun.star.reflection.ParamMode;
import com.sun.star.reflection.XIdlClass;
import com.sun.star.reflection.XIdlMethod;
import com.sun.star.uno.TypeClass;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
import java.util.Vector;
public class UnoMethodNode extends UnoNode{
diff --git a/odk/examples/java/Inspector/UnoPropertyNode.java b/odk/examples/java/Inspector/UnoPropertyNode.java
index 4b22b01f1b8a..24f7573bbeaf 100644
--- a/odk/examples/java/Inspector/UnoPropertyNode.java
+++ b/odk/examples/java/Inspector/UnoPropertyNode.java
@@ -35,17 +35,9 @@
import com.sun.star.beans.Property;
import com.sun.star.beans.PropertyValue;
import com.sun.star.lang.XServiceInfo;
-import com.sun.star.reflection.TypeDescriptionSearchDepth;
import com.sun.star.reflection.XConstantTypeDescription;
import com.sun.star.reflection.XPropertyTypeDescription;
-import com.sun.star.reflection.XServiceTypeDescription;
-import com.sun.star.reflection.XTypeDescription;
-import com.sun.star.reflection.XTypeDescriptionEnumeration;
-import com.sun.star.uno.AnyConverter;
-import com.sun.star.uno.TypeClass;
import com.sun.star.uno.UnoRuntime;
-import com.sun.star.uno.XComponentContext;
-import javax.swing.tree.DefaultMutableTreeNode;
public class UnoPropertyNode extends UnoNode{
diff --git a/odk/examples/java/Inspector/UnoTreeRenderer.java b/odk/examples/java/Inspector/UnoTreeRenderer.java
index 54094275606c..67080baceba9 100644
--- a/odk/examples/java/Inspector/UnoTreeRenderer.java
+++ b/odk/examples/java/Inspector/UnoTreeRenderer.java
@@ -31,14 +31,11 @@
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*************************************************************************/
-import java.awt.Color;
import java.awt.Component;
import java.awt.FontMetrics;
import java.awt.Graphics;
-import java.awt.SystemColor;
import javax.swing.Icon;
import javax.swing.ImageIcon;
-import javax.swing.JLabel;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
diff --git a/odk/examples/java/Inspector/XLanguageSourceCodeGenerator.java b/odk/examples/java/Inspector/XLanguageSourceCodeGenerator.java
index 832f0aa51d4b..630f3d9626c1 100644
--- a/odk/examples/java/Inspector/XLanguageSourceCodeGenerator.java
+++ b/odk/examples/java/Inspector/XLanguageSourceCodeGenerator.java
@@ -32,7 +32,6 @@
*
*************************************************************************/
import com.sun.star.uno.TypeClass;
-import java.util.Vector;
public interface XLanguageSourceCodeGenerator {