* Ok, now we gonna place the text in the document, each of the staves (stanzas)
* of the poem will be a separate paragprah. This will serve us well since our
* intention is to format every paragprah in a different way.
*/
for(int i=0;i<allTexts2BePlaced.length;i++) {
ITextCursor textCursor =
textDocument.getTextService().getText().getTextCursorService().getTextCursor();
textCursor.gotoEnd(false);
IParagraph paragraph =
textDocument.getTextService().getTextContentService().constructNewParagraph();
textCursor.gotoEnd(false);
textDocument.getTextService().getTextContentService().insertTextContent(textCursor.getEnd(),paragraph);
StringBuffer bufferedString = new StringBuffer();
for(int j=0;j<allTexts2BePlaced[i].length;j++ ) {
bufferedString.append(allTexts2BePlaced[i][j] +"\n");
}