本文整理汇总了Java中org.eclipse.jface.internal.text.html.HTMLPrinter.addPageProlog方法的典型用法代码示例。如果您正苦于以下问题:Java HTMLPrinter.addPageProlog方法的具体用法?Java HTMLPrinter.addPageProlog怎么用?Java HTMLPrinter.addPageProlog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.internal.text.html.HTMLPrinter
的用法示例。
在下文中一共展示了HTMLPrinter.addPageProlog方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: formatMultipleMessages
import org.eclipse.jface.internal.text.html.HTMLPrinter; //导入方法依赖的package包/类
/**
* Hook method to formats the given messages.
* <p>
* Subclasses can change this to create a different format like HTML.
* </p>
*
* @param messages
* the messages to format (element type: {@link String})
* @return the formatted message
*/
@SuppressWarnings("rawtypes")
protected String formatMultipleMessages(List messages)
{
StringBuffer buffer = new StringBuffer();
HTMLPrinter.addPageProlog(buffer);
HTMLPrinter.addParagraph(buffer,
HTMLPrinter.convertToHTMLContent(Messages.CommonAnnotationHover_multipleMarkersMessage));
HTMLPrinter.startBulletList(buffer);
Iterator e = messages.iterator();
while (e.hasNext())
{
HTMLPrinter.addBullet(buffer, HTMLPrinter.convertToHTMLContent((String) e.next()));
}
HTMLPrinter.endBulletList(buffer);
HTMLPrinter.addPageEpilog(buffer);
return buffer.toString();
}
示例2: formatMultipleMessages
import org.eclipse.jface.internal.text.html.HTMLPrinter; //导入方法依赖的package包/类
@Override
protected String formatMultipleMessages(@SuppressWarnings("rawtypes") List messages) {
StringBuffer buffer = new StringBuffer();
HTMLPrinter.addPageProlog(buffer);
HTMLPrinter.addParagraph(buffer, HTMLPrinter
.convertToHTMLContent(JavaUIMessages.JavaAnnotationHover_multipleMarkersAtThisLine));
HTMLPrinter.startBulletList(buffer);
Iterator<?> e = messages.iterator();
while (e.hasNext())
HTMLPrinter.addBullet(buffer, HTMLPrinter.convertToHTMLContent((String) e.next()));
HTMLPrinter.endBulletList(buffer);
HTMLPrinter.addPageEpilog(buffer);
return buffer.toString();
}
示例3: formatSingleMessage
import org.eclipse.jface.internal.text.html.HTMLPrinter; //导入方法依赖的package包/类
/**
* Hook method to format the given single message.
* <p>
* Subclasses can change this to create a different format like HTML.
* </p>
*
* @param message
* the message to format
* @return the formatted message
*/
protected String formatSingleMessage(String message)
{
StringBuffer buffer = new StringBuffer();
HTMLPrinter.addPageProlog(buffer);
HTMLPrinter.addParagraph(buffer, HTMLPrinter.convertToHTMLContent(message));
HTMLPrinter.addPageEpilog(buffer);
return buffer.toString();
}
示例4: formatSingleMessage
import org.eclipse.jface.internal.text.html.HTMLPrinter; //导入方法依赖的package包/类
@Override
protected String formatSingleMessage(String message) {
StringBuffer buffer= new StringBuffer();
HTMLPrinter.addPageProlog(buffer);
HTMLPrinter.addParagraph(buffer, HTMLPrinter.convertToHTMLContent(message));
HTMLPrinter.addPageEpilog(buffer);
return buffer.toString();
}
示例5: formatMultipleMessages
import org.eclipse.jface.internal.text.html.HTMLPrinter; //导入方法依赖的package包/类
@Override
protected String formatMultipleMessages(List messages) {
StringBuffer buffer= new StringBuffer();
HTMLPrinter.addPageProlog(buffer);
HTMLPrinter.addParagraph(buffer, HTMLPrinter.convertToHTMLContent(JavaUIMessages.JavaAnnotationHover_multipleMarkersAtThisLine));
HTMLPrinter.startBulletList(buffer);
Iterator<?> e= messages.iterator();
while (e.hasNext())
HTMLPrinter.addBullet(buffer, HTMLPrinter.convertToHTMLContent((String) e.next()));
HTMLPrinter.endBulletList(buffer);
HTMLPrinter.addPageEpilog(buffer);
return buffer.toString();
}
示例6: formatSingleMessage
import org.eclipse.jface.internal.text.html.HTMLPrinter; //导入方法依赖的package包/类
@Override
protected String formatSingleMessage(String message) {
StringBuffer buffer = new StringBuffer();
HTMLPrinter.addPageProlog(buffer);
HTMLPrinter.addParagraph(buffer, HTMLPrinter.convertToHTMLContent(message));
HTMLPrinter.addPageEpilog(buffer);
return buffer.toString();
}