protected void createLibraryHandlingGroup ( Composite parent ) { fLibraryHandlingGroup = new Composite ( parent , SWT . NONE ) ; GridLayout layout = new GridLayout ( ) ; fLibraryHandlingGroup . setLayout ( layout ) ; fLibraryHandlingGroup . setLayoutData ( new GridData ( GridData . HORIZONTAL_ALIGN_FILL | GridData . VERTICAL_ALIGN_FILL | GridData . GRAB_HORIZONTAL ) ) ; createLabel ( fLibraryHandlingGroup , FatJarPackagerMessages . FatJarPackageWizardPage_libraryHandlingGroupTitle , false ) ; fExtractJarsRadioButton = new Button ( fLibraryHandlingGroup , SWT . RADIO | SWT . LEFT ) ; fExtractJarsRadioButton . setText ( FatJarPackagerMessages . FatJarPackageWizardPage_extractJars_text ) ; fExtractJarsRadioButton . setLayoutData ( new GridData ( GridData . FILL_HORIZONTAL ) ) ; fExtractJarsRadioButton . addListener ( SWT . Selection , new Listener ( ) { @ Override public void handleEvent ( Event event ) { if ( ( ( Button ) event . widget ) . getSelection ( ) ) fLibraryHandler = new ExtractLibraryHandler ( ) ; } } ) ; fPackageJarsRadioButton = new Button ( fLibraryHandlingGroup , SWT . RADIO | SWT . LEFT ) ; fPackageJarsRadioButton . setText ( FatJarPackagerMessages . FatJarPackageWizardPage_packageJars_text ) ; fPackageJarsRadioButton . setLayoutData ( new GridData ( GridData . FILL_HORIZONTAL ) ) ; fPackageJarsRadioButton . addListener ( SWT . Selection , new Listener ( ) { @ Override public void handleEvent ( Event event ) { if ( ( ( Button ) event . widget ) . getSelection ( ) ) fLibraryHandler = new PackageLibraryHandler ( ) ; } } ) ; fCopyJarFilesRadioButton = new Button ( fLibraryHandlingGroup , SWT . RADIO | SWT . LEFT ) ; fCopyJarFilesRadioButton . setText ( FatJarPackagerMessages . FatJarPackageWizardPage_copyJarFiles_text ) ; fCopyJarFilesRadioButton . setLayoutData ( new GridData ( GridData . FILL_HORIZONTAL ) ) ; fCopyJarFilesRadioButton . addListener ( SWT . Selection , new Listener ( ) { @ Override public void handleEvent ( Event event ) { if ( ( ( Button ) event . widget ) . getSelection ( ) ) fLibraryHandler = new CopyLibraryHandler ( ) ; } } ) ; // set default for first selection (no previous widget settings to restore) setLibraryHandler ( new ExtractLibraryHandler ( ) ) ; }
Create the export options specification widgets .