Search in sources :

Example 1 with RepositoryConnectMenu

use of org.pentaho.di.ui.repo.menu.RepositoryConnectMenu in project pentaho-kettle by pentaho.

the class RepositorySpoonPlugin method applyToContainer.

@Override
public void applyToContainer(String category, XulDomContainer container) throws XulException {
    if (category.equals(SPOON_CATEGORY)) {
        XulToolbar toolbar = (XulToolbar) container.getDocumentRoot().getElementById("main-toolbar");
        RepositoryConnectMenu repoConnectMenu = new RepositoryConnectMenu(Spoon.getInstance(), (ToolBar) toolbar.getManagedObject(), repositoryConnectController);
        repoConnectMenu.render();
    }
}
Also used : XulToolbar(org.pentaho.ui.xul.containers.XulToolbar) RepositoryConnectMenu(org.pentaho.di.ui.repo.menu.RepositoryConnectMenu)

Aggregations

RepositoryConnectMenu (org.pentaho.di.ui.repo.menu.RepositoryConnectMenu)1 XulToolbar (org.pentaho.ui.xul.containers.XulToolbar)1