protected PaletteViewerPage createPaletteViewerPage() {
if (_paletteViewerPageFactory != null) {
_paletteViewerPage = _paletteViewerPageFactory.createPaletteViewerPage(createPaletteViewerProvider());
}
if (_paletteViewerPage == null) {
DefaultEditDomain editDomain = getEditDomain();
// PaletteItemManager manager = PaletteItemManager
// .getInstance(getCurrentFile(getEditorInput()));
// manager.reset();
PaletteRoot paletteRoot = getPaletteRoot();
editDomain.setPaletteRoot(paletteRoot);
// _paletteViewerPage = (PaletteViewerPage) super.getAdapter(PalettePage.class);
// if possible, try to use the
if (_paletteViewerPage == null)
{