提交 0721611f 编写于 作者: K kohsuke

added a convenience method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14787 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0c9deaf4
......@@ -35,6 +35,13 @@ public abstract class AbstractMarkupText {
*/
public abstract void addMarkup( int startPos, int endPos, String startTag, String endTag );
/**
* Adds a start tag and end tag around the entire text
*/
public final void wrapBy(String startTag, String endTag) {
addMarkup(0,getText().length(),startTag,endTag);
}
/**
* Find all "tokens" that match the given pattern in this text.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册