def __init__(self, application): self._application = application self._appearancePanel = None self._appearanceController = None self._colorizerController = WikiColorizerController( self._application, WikiWikiPage.getTypeString())
def __onPageDialogPageTypeChanged(self, page, params): if params.pageType == WikiWikiPage.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 __onPageDialogPageTypeChanged (self, page, params): if params.pageType == WikiWikiPage.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 __onPageUpdateNeeded(self, page, params): if (page is None or page.getTypeString() != WikiWikiPage.getTypeString() or page.readonly): return if not params.allowCache: HtmlCache(page, self._application).resetHash() self._updatePage(page)
def initialize (self, page): if page.getTypeString() == WikiWikiPage.getTypeString(): self._bindEvents()
def initialize(self, page): if page.getTypeString() == WikiWikiPage.getTypeString(): self._bindEvents()