if (_paletteViewerProvider == null) {
if (_paletteViewerPageFactory != null) {
_paletteViewerProvider = _paletteViewerPageFactory.createPaletteViewerProvider(getEditDomain());
}
if (_paletteViewerProvider == null) {//if still null
return new DesignerPaletteViewerProvider(getEditDomain()) {
protected void configurePaletteViewer(PaletteViewer viewer) {
super.configurePaletteViewer(viewer);
viewer.setCustomizer(new DesignerPaletteCustomizer());
// create a drag source listener for this palette viewer