private Composite createAdvancedComposite(final Composite parent) { Composite composite= new Composite(parent, SWT.NONE); GridData gridData= new GridData(SWT.FILL, SWT.FILL, true, true); gridData.horizontalIndent= INDENT; composite.setLayoutData(gridData); GridLayout layout= new GridLayout(2, false); layout.marginHeight= 0; layout.marginWidth= 0; composite.setLayout(layout); fSelectedActionsText= new BulletListBlock(composite, SWT.NONE); gridData= new GridData(SWT.FILL, SWT.FILL, true, true); gridData.heightHint= new PixelConverter(composite).convertHeightInCharsToPixels(8); fSelectedActionsText.setLayoutData(gridData); fConfigureButton= new Button(composite, SWT.NONE); fConfigureButton.setText(SaveParticipantMessages.CleanUpSaveParticipantPreferenceConfiguration_Configure_Button); fConfigureButton.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false)); fConfigureButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Hashtable<String, String> workingValues= new Hashtable<>(fSettings); SaveActionSelectionDialog dialog= new SaveActionSelectionDialog(parent.getShell(), workingValues); if (dialog.open() == Window.OK) { fSettings= workingValues; settingsChanged(); } } }); return composite; }
private Composite createAdvancedComposite(final Composite parent) { Composite composite= new Composite(parent, SWT.NONE); GridData gridData= new GridData(SWT.FILL, SWT.FILL, true, true); gridData.horizontalIndent= INDENT; composite.setLayoutData(gridData); GridLayout layout= new GridLayout(2, false); layout.marginHeight= 0; layout.marginWidth= 0; composite.setLayout(layout); fSelectedActionsText= new BulletListBlock(composite, SWT.NONE); gridData= new GridData(SWT.FILL, SWT.FILL, true, true); gridData.heightHint= new PixelConverter(composite).convertHeightInCharsToPixels(8); fSelectedActionsText.setLayoutData(gridData); fConfigureButton= new Button(composite, SWT.NONE); fConfigureButton.setText(SaveParticipantMessages.CleanUpSaveParticipantPreferenceConfiguration_Configure_Button); fConfigureButton.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false)); fConfigureButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Hashtable<String, String> workingValues= new Hashtable<>(fSettings); SaveActionSelectionDialog dialog= new SaveActionSelectionDialog(parent.getShell(), workingValues); if (dialog.open() == Window.OK) { fSettings= workingValues; settingsChanged(); } } }); return composite; }
cleanUpListBlock.setLayoutData(gridData); cleanUpListBlock.setText(fCleanUpNames);
cleanUpListBlock.setLayoutData(gridData); cleanUpListBlock.setText(fCleanUpNames);
GridData gridData= new GridData(SWT.FILL, SWT.FILL, true, true); gridData.horizontalSpan= numColumns; cleanUpListBlock.setLayoutData(gridData); cleanUpListBlock.setText(getSelectedCleanUpsInfo(cleanUps));
GridData gridData= new GridData(SWT.FILL, SWT.FILL, true, true); gridData.horizontalSpan= numColumns; cleanUpListBlock.setLayoutData(gridData); cleanUpListBlock.setText(getSelectedCleanUpsInfo(cleanUps));
layoutData.horizontalIndent= 15; layoutData.grabExcessVerticalSpace= true; bulletListBlock.setLayoutData(layoutData);
layoutData.horizontalIndent= 15; layoutData.grabExcessVerticalSpace= true; bulletListBlock.setLayoutData(layoutData);