the external references need to be extracted in here...
This commit is contained in:
		
							parent
							
								
									4c5c7ffe85
								
							
						
					
					
						commit
						d0d8611d15
					
				@ -813,13 +813,34 @@ class TopicUserContextImpl implements TopicContext
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    String real_pseud, real_text;
 | 
					    String real_pseud, real_text;
 | 
				
			||||||
    int text_linecount;
 | 
					    int text_linecount;
 | 
				
			||||||
 | 
					    Set internal_refs, external_refs;
 | 
				
			||||||
    try
 | 
					    try
 | 
				
			||||||
    { // retrieve the processed values
 | 
					    { // retrieve the processed values
 | 
				
			||||||
      real_pseud = pseud_ch.getValue();
 | 
					      real_pseud = pseud_ch.getValue();
 | 
				
			||||||
      real_text = text_ch.getValue();
 | 
					      real_text = text_ch.getValue();
 | 
				
			||||||
      text_linecount = text_ch.getLines();
 | 
					      text_linecount = text_ch.getLines();
 | 
				
			||||||
 | 
					      internal_refs = text_ch.getInternalReferences();
 | 
				
			||||||
 | 
					      external_refs = text_ch.getExternalReferences();
 | 
				
			||||||
      if (logger.isDebugEnabled())
 | 
					      if (logger.isDebugEnabled())
 | 
				
			||||||
 | 
					      { // do some debugging output
 | 
				
			||||||
	logger.debug("new post has " + text_linecount + " lines");
 | 
						logger.debug("new post has " + text_linecount + " lines");
 | 
				
			||||||
 | 
						if (internal_refs.size()>0)
 | 
				
			||||||
 | 
						{ // display internal references
 | 
				
			||||||
 | 
						  logger.debug("Internal references here:");
 | 
				
			||||||
 | 
						  for (Iterator it=internal_refs.iterator(); it.hasNext(); )
 | 
				
			||||||
 | 
						    logger.debug("   " + it.next());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						} // end if
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (external_refs.size()>0)
 | 
				
			||||||
 | 
						{ // display external references
 | 
				
			||||||
 | 
						  logger.debug("External references here:");
 | 
				
			||||||
 | 
						  for (Iterator it=external_refs.iterator(); it.hasNext(); )
 | 
				
			||||||
 | 
						    logger.debug("   " + it.next());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						} // end if
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      } // end if
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    } // end try
 | 
					    } // end try
 | 
				
			||||||
    catch (NotYetFinishedException e)
 | 
					    catch (NotYetFinishedException e)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user