Search in sources :

Example 1 with Editor

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();
}
Also used : ArrayList(java.util.ArrayList) Editor(org.apache.wiki.ui.Editor) WikiEngine(org.apache.wiki.WikiEngine) EditorManager(org.apache.wiki.ui.EditorManager)

Aggregations

ArrayList (java.util.ArrayList)1 WikiEngine (org.apache.wiki.WikiEngine)1 Editor (org.apache.wiki.ui.Editor)1 EditorManager (org.apache.wiki.ui.EditorManager)1