def __init__(self, application): self._application = application self._appearancePanel = None self._appearanceController = None self._spellController = SimpleSpellController( self._application, HtmlWikiPage.getTypeString())
def __onPageDialogPageTypeChanged(self, page, params): if params.pageType == HtmlWikiPage.getTypeString(): self._addTab(params.dialog) elif self._appearancePanel is not None: params.dialog.removeController(self._appearanceController) params.dialog.removePanel(self._appearancePanel) self._appearancePanel = None self._appearanceController = None
def initialize(self, page): if page.getTypeString() == HtmlWikiPage.getTypeString(): self._bindEvents()
def initialize (self, page): if page.getTypeString() == HtmlWikiPage.getTypeString(): self._bindEvents()