Search in sources :

Example 6 with XulSpoonResourceBundle

use of org.pentaho.di.ui.spoon.XulSpoonResourceBundle in project pentaho-kettle by pentaho.

the class AbstractRepositoryExplorerUISupport method apply.

public void apply(XulDomContainer container) throws XulException {
    this.container = container;
    container.registerClassLoader(getClass().getClassLoader());
    for (XulEventHandler handler : handlers) {
        container.addEventHandler(handler);
    }
    for (XulOverlay overlay : overlays) {
        if (overlay instanceof RepositoryExplorerDefaultXulOverlay) {
            container.loadOverlay(overlay.getOverlayUri(), new XulSpoonResourceBundle(((RepositoryExplorerDefaultXulOverlay) overlay).getPackageClass()));
        } else {
            container.loadOverlay(overlay.getOverlayUri(), overlay.getResourceBundleUri());
        }
    }
}
Also used : XulOverlay(org.pentaho.ui.xul.XulOverlay) XulSpoonResourceBundle(org.pentaho.di.ui.spoon.XulSpoonResourceBundle) XulEventHandler(org.pentaho.ui.xul.impl.XulEventHandler)

Aggregations

XulSpoonResourceBundle (org.pentaho.di.ui.spoon.XulSpoonResourceBundle)6 ResourceBundle (java.util.ResourceBundle)5 ToolBar (org.eclipse.swt.widgets.ToolBar)5 ErrorDialog (org.pentaho.di.ui.core.dialog.ErrorDialog)5 KettleXulLoader (org.pentaho.di.ui.xul.KettleXulLoader)5 XulDomContainer (org.pentaho.ui.xul.XulDomContainer)5 XulLoader (org.pentaho.ui.xul.XulLoader)4 KettleValueException (org.pentaho.di.core.exception.KettleValueException)2 KettleException (org.pentaho.di.core.exception.KettleException)1 XulOverlay (org.pentaho.ui.xul.XulOverlay)1 XulEventHandler (org.pentaho.ui.xul.impl.XulEventHandler)1