Kaydet (Commit) 5f4d1772 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS scriptingf9 (1.6.2); FILE MERGED

2004/12/02 10:24:32 toconnor 1.6.2.2: #i37976# need to load source before inserting when renaming script
2004/12/01 10:30:49 toconnor 1.6.2.1: #i37001# remove temporary workaround for tdoc problem
üst 03c3c3d5
......@@ -2,9 +2,9 @@
*
* $RCSfile: ParcelContainer.java,v $
*
* $Revision: 1.6 $
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2004-11-15 15:56:06 $
* last change: $Author: vg $ $Date: 2004-12-23 11:49:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -59,7 +59,6 @@
*
************************************************************************/
package com.sun.star.script.framework.container;
import com.sun.star.script.framework.log.*;
......@@ -431,19 +430,15 @@ public class ParcelContainer implements XNameAccess
for ( int i = 0; i < children.length; i++)
{
LogUtils.DEBUG("Processing " + children[ i ] );
// TODO remove this once ucb workarounds are removed
if ( !children[ i ].endsWith("this_is_a_dummy_stream_just_there_as_a_workaround_for_a_temporary_limitation_of_the_storage_api_implementation" ) )
try
{
loadParcel( children[ i ] );
}
catch (java.lang.Exception e)
{
try
{
loadParcel( children[ i ] );
}
catch (java.lang.Exception e)
{
// print an error message and move on to
// the next parcel
LogUtils.DEBUG("ParcelContainer.loadParcels caught " + e.getClass().getName() + " exception loading parcel " + children[i] + ": " + e.getMessage() );
}
// print an error message and move on to
// the next parcel
LogUtils.DEBUG("ParcelContainer.loadParcels caught " + e.getClass().getName() + " exception loading parcel " + children[i] + ": " + e.getMessage() );
}
}
}
......@@ -485,7 +480,7 @@ public class ParcelContainer implements XNameAccess
ParcelDescriptor pd = new ParcelDescriptor();
pd.setLanguage( language );
String parcelDesc = PathUtils.make_url( pathToParcel, "parcel-descriptor.xml" );
String parcelDesc = PathUtils.make_url( pathToParcel, ParcelDescriptor.PARCEL_DESCRIPTOR_NAME );
XSimpleFileAccess2 xSFA2 = ( XSimpleFileAccess2 )
UnoRuntime.queryInterface( XSimpleFileAccess2.class, m_xSFA );
if ( xSFA2 != null )
......@@ -515,7 +510,7 @@ public class ParcelContainer implements XNameAccess
String name = null;
String parcelDescUrl = PathUtils.make_url( parcelUrl, "parcel-descriptor.xml");
String parcelDescUrl = PathUtils.make_url( parcelUrl, ParcelDescriptor.PARCEL_DESCRIPTOR_NAME );
Parcel parcel = null;
XInputStream xis = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment