use of org.apache.wiki.ui.Editor in project jspwiki by apache.
the class EditorIteratorTag method doStartTag.
public final int doStartTag() {
m_wikiContext = WikiContext.findContext(pageContext);
WikiEngine engine = m_wikiContext.getEngine();
EditorManager mgr = engine.getEditorManager();
String[] editorList = mgr.getEditorList();
Collection<Editor> editors = new ArrayList<Editor>();
for (int i = 0; i < editorList.length; i++) {
editors.add(new Editor(m_wikiContext, editorList[i]));
}
setList(editors);
return super.doStartTag();
}
Aggregations