diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-05-19 07:20:06 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-05-19 07:20:06 +0000 |
commit | f167316afe16999bf0c4a658b63b8900583e5648 (patch) | |
tree | f238e2ff67b82e52c66c156df7ddad5f0fcf4c44 /scripting | |
parent | 854d9c4cb1389c09f2b244bb472ab54a45e53298 (diff) |
INTEGRATION: CWS scriptingf4 (1.2.4); FILE MERGED
2004/05/17 13:06:59 dfoster 1.2.4.2: #i26923#
Removing System.err messages
Issue number:
Submitted by:
Reviewed by:
2004/04/30 15:42:42 dfoster 1.2.4.1: #i26923#
Issue number:
Submitted by:
Reviewed by:
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java | 29 |
1 files changed, 13 insertions, 16 deletions
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 94ca604490d1..419e7bdbea6b 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java @@ -2,9 +2,9 @@ * * $RCSfile: ProviderBrowseNode.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: svesik $ $Date: 2004-04-19 23:03:03 $ + * last change: $Author: rt $ $Date: 2004-05-19 08:20:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -122,21 +122,18 @@ public class ProviderBrowseNode extends PropertySet { LogUtils.DEBUG("** ProviderBrowseNode.getChildNodes(), container is " + container ); String[] parcels = container.getElementNames(); - if ( browsenodes == null ) + browsenodes = new ArrayList( parcels.length ); + for ( int index = 0; index < parcels.length; index++ ) { - browsenodes = new ArrayList( parcels.length ); - for ( int index = 0; index < parcels.length; index++ ) + try { - try - { - XBrowseNode node = new ParcelBrowseNode( provider, container, parcels[ index ] ); - browsenodes.add( node ); - } - catch ( Exception e ) - { - LogUtils.DEBUG("*** Failed to create parcel node for " + parcels[ index ] ); - LogUtils.DEBUG( e.toString() ); - } + XBrowseNode node = new ParcelBrowseNode( provider, container, parcels[ index ] ); + browsenodes.add( node ); + } + catch ( Exception e ) + { + LogUtils.DEBUG("*** Failed to create parcel node for " + parcels[ index ] ); + LogUtils.DEBUG( e.toString() ); } } } @@ -247,7 +244,7 @@ public class ProviderBrowseNode extends PropertySet } catch (Exception e) { - System.err.print("create failed with: " + e ); + //System.err.print("create failed with: " + e ); LogUtils.DEBUG( LogUtils.getTrace( e ) ); result = new Any(new Type(Boolean.class), Boolean.FALSE); |