diff options
-rw-r--r-- | scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java | 18 |
1 files changed, 8 insertions, 10 deletions
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 71535e1127ec..abe00e1a5f99 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java @@ -20,7 +20,10 @@ package com.sun.star.script.framework.browse; import com.sun.star.beans.XIntrospectionAccess; +import com.sun.star.container.NoSuchElementException; + import com.sun.star.lang.XMultiComponentFactory; +import com.sun.star.lang.WrappedTargetException; import com.sun.star.lib.uno.helper.PropertySet; @@ -62,19 +65,14 @@ public class ParcelBrowseNode extends PropertySet implements public boolean renamable = true; public ParcelBrowseNode(ScriptProvider provider, ParcelContainer container, - String parcelName) { + String parcelName) throws + com.sun.star.container.NoSuchElementException, + com.sun.star.lang.WrappedTargetException { this.provider = provider; this.container = container; - // TODO decide whether exception is propagated out or not - try { - this.parcel = (Parcel)this.container.getByName(parcelName); - } catch (Exception e) { - LogUtils.DEBUG("** Exception: " + e); - LogUtils.DEBUG(" ** Failed to get parcel named " + parcelName + - " from container"); - } + this.parcel = (Parcel)this.container.getByName(parcelName); registerProperty("Deletable", new Type(boolean.class), (short)0, "deletable"); registerProperty("Editable", new Type(boolean.class), (short)0, "editable"); @@ -314,4 +312,4 @@ public class ParcelBrowseNode extends PropertySet implements public boolean hasProperty(String aName) { return false; } -}
\ No newline at end of file +} |