summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-03-23 07:58:58 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-03-23 07:58:58 +0000
commit387e1ba5a388d5311aa62cb16cd6300a4f9d691c (patch)
tree9c6999ad26c0feb179780c7f55442a1a88169f7c /bean
parentbd0a40c3c72ebb2447aeb97d7800cd66c63b2b01 (diff)
INTEGRATION: CWS jl18 (1.2.8); FILE MERGED
2005/03/18 09:54:13 jl 1.2.8.1: #45371# replaced CallWatchThread by new com.sun.star.comp.bean.CallWatchThreadImplemenation
Diffstat (limited to 'bean')
-rw-r--r--bean/com/sun/star/comp/beans/LocalOfficeWindow.java49
1 files changed, 2 insertions, 47 deletions
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
index 6d9b9d2054d8..3f8a35318bbb 100644
--- a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
+++ b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
@@ -2,9 +2,9 @@
*
* $RCSfile: LocalOfficeWindow.java,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mi $ $Date: 2004-10-14 10:37:13 $
+ * last change: $Author: vg $ $Date: 2005-03-23 08:58:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -297,49 +297,4 @@ public class LocalOfficeWindow
*/
private native int getNativeWindowSystemType();
- //---------------------------------------------------------------------------
- /** Helper class to watch calls into OOo with a timeout.
- */
- class CallWatchThread extends Thread
- {
- Thread aWatchedThread;
- long nTimeout;
-
- CallWatchThread( long nTimeout )
- {
- this.aWatchedThread = Thread.currentThread();
- this.nTimeout = nTimeout;
- start();
- }
-
- void cancel()
- throws java.lang.InterruptedException
- {
- Thread aThread = aWatchedThread;
- aWatchedThread = null;
- stop();
-
- if ( aThread.interrupted() )
- throw new InterruptedException();
- }
-
- public void run()
- {
- while ( aWatchedThread != null )
- {
- try { sleep( nTimeout ); }
- catch ( java.lang.InterruptedException aExc )
- {}
-
- //synchronized
- {
- if ( aWatchedThread != null )
- {
- aWatchedThread.interrupt();
- }
- }
- }
- }
- };
-
}