@Override public NamedClusterWidget createNamedClusterWidget( Composite parent, boolean showLabel ) { return new NamedClusterWidgetBridgedImpl( new NamedClusterWidgetImpl( parent, showLabel, namedClusterService, runtimeTestActionService, runtimeTester ) ); }
private void createConnectionPanel() { // The Connection group Group connectionGroup = new Group( this, SWT.SHADOW_ETCHED_IN ); connectionGroup.setText( BaseMessages.getString( PKG, "HadoopVfsFileChooserDialog.ConnectionGroup.Label" ) ); //$NON-NLS-1$ ; GridLayout connectionGroupLayout = new GridLayout(); connectionGroupLayout.marginWidth = 5; connectionGroupLayout.marginHeight = 5; connectionGroupLayout.verticalSpacing = 5; connectionGroupLayout.horizontalSpacing = 5; GridData gData = new GridData( SWT.FILL, SWT.FILL, true, false ); connectionGroup.setLayoutData( gData ); connectionGroup.setLayout( connectionGroupLayout ); setNamedClusterWidget( new NamedClusterWidgetImpl( connectionGroup, true, namedClusterService, runtimeTestActionService, runtimeTester ) ); getNamedClusterWidget().addSelectionListener( new SelectionAdapter() { public void widgetSelected( SelectionEvent evt ) { try { connect(); } catch ( Exception e ) { // To prevent errors from multiple event firings. } } } ); // The composite we need in the group Composite textFieldPanel = new Composite( connectionGroup, SWT.NONE ); GridData gridData = new GridData( SWT.FILL, SWT.FILL, true, false ); textFieldPanel.setLayoutData( gridData ); textFieldPanel.setLayout( new GridLayout( 5, false ) ); }
new NamedClusterWidgetImpl( connectionGroup, true, namedClusterService, runtimeTestActionService, runtimeTester ) ); getNamedClusterWidget().addSelectionListener( new SelectionAdapter() {
namedClusterLabel.setLayoutData( fd ); namedClusterWidgetImpl = new NamedClusterWidgetImpl( shell, false, namedClusterService, runtimeTestActionService, runtimeTester ); namedClusterWidgetImpl.initiate();
new NamedClusterWidgetImpl( this, false, namedClusterService, runtimeTestActionService, runtimeTester ); namedClusterWidget.initiate(); props.setLook( namedClusterWidget );
wFileComp.setLayout( fileLayout ); namedClusterWidget = new NamedClusterWidgetImpl( wFileComp, true, namedClusterService, runtimeTestActionService, runtimeTester ); namedClusterWidget.initiate(); props.setLook( namedClusterWidget );
new NamedClusterWidgetImpl( wConfigComp, false, namedClusterService, runtimeTestActionService, runtimeTester ); namedClusterWidget.initiate(); props.setLook( namedClusterWidget );
new NamedClusterWidgetImpl( wConfigComp, false, namedClusterService, runtimeTestActionService, runtimeTester ); namedClusterWidget.initiate(); props.setLook( namedClusterWidget );