Search in sources :

Example 6 with RepositoryDialog

use of org.pentaho.di.ui.repo.dialog.RepositoryDialog in project pentaho-kettle by pentaho.

the class RepositoryConnectMenu method renderConnectButton.

private void renderConnectButton() {
    connectButton = new ToolItem(toolBar, toolBar.getItems().length);
    connectButton.setText(BaseMessages.getString(PKG, "RepositoryConnectMenu.Connect"));
    connectButton.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent selectionEvent) {
            new RepositoryDialog(spoon.getShell(), repoConnectController).openCreation();
            renderAndUpdate();
        }
    });
}
Also used : RepositoryDialog(org.pentaho.di.ui.repo.dialog.RepositoryDialog) SelectionAdapter(org.eclipse.swt.events.SelectionAdapter) SelectionEvent(org.eclipse.swt.events.SelectionEvent) ToolItem(org.eclipse.swt.widgets.ToolItem)

Aggregations

RepositoryDialog (org.pentaho.di.ui.repo.dialog.RepositoryDialog)6 RepositoryMeta (org.pentaho.di.repository.RepositoryMeta)4 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)2 SelectionEvent (org.eclipse.swt.events.SelectionEvent)2 ToolItem (org.eclipse.swt.widgets.ToolItem)2 Point (org.eclipse.swt.graphics.Point)1 Rectangle (org.eclipse.swt.graphics.Rectangle)1 Menu (org.eclipse.swt.widgets.Menu)1 MenuItem (org.eclipse.swt.widgets.MenuItem)1 MessageBox (org.eclipse.swt.widgets.MessageBox)1 LastUsedFile (org.pentaho.di.core.LastUsedFile)1 KettleException (org.pentaho.di.core.exception.KettleException)1 CommandLineOption (org.pentaho.di.pan.CommandLineOption)1