Ignore:
Timestamp:
07/16/10 02:28:10 (23 months ago)
Author:
jharrop
Message:

Extract method createRelationshipsPartForPart, and use it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/openpackaging/Base.java

    r1107 r1176  
    196196 
    197197                // Create RelationshipsPart for this part if necessary 
    198                 if (this.getRelationshipsPart() == null ) { 
    199                         RelationshipsPart rp = new RelationshipsPart( this ); 
    200                         rp.setPackage(this.getPackage()); 
    201                          
    202                         this.setRelationships(rp); 
    203                          
    204                         // Make sure content manager knows how to handle .rels 
    205                         getPackage().getContentTypeManager().addDefaultContentType("rels",  
    206                                         org.docx4j.openpackaging.contenttype.ContentTypes.RELATIONSHIPS_PART); 
    207                 } 
     198                if (this.getRelationshipsPart() == null )  
     199                        RelationshipsPart.createRelationshipsPartForPart(this); 
    208200                 
    209201                // Now add the targetpart to the relationships 
Note: See TracChangeset for help on using the changeset viewer.