From 387e1ba5a388d5311aa62cb16cd6300a4f9d691c Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Wed, 23 Mar 2005 07:58:58 +0000 Subject: [PATCH] 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 --- .../star/comp/beans/LocalOfficeWindow.java | 49 +------------------ 1 file 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(); - } - } - } - } - }; - }