private Button clearButton;
private Button distClearButton;
- public static String testCertKey = "testCert"; //$NON-NLS-1$
- private Button testCertButton;
-
private IPreferenceStore preferenceStore;
public SigningPreferencePage() {
layout.marginHeight = 0;
composite.setLayout(layout);
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
- createTestCertButton(composite);
createProfileListButtons(composite);
createProfileItemsTable(composite);
return parent;
labelComposite.setLayout(compLayout);
GridData compData = new GridData(GridData.FILL_HORIZONTAL);
labelComposite.setLayoutData(compData);
-
-// final Label noteLabel = new Label(labelComposite, SWT.NONE);
-// noteLabel.setText( Messages.NOTE_LABEL );
-// noteLabel.setFont( new Font( getDisplay(), boldFont( noteLabel.getParent().getFont() ) ) );
-// GridData noteData = new GridData();
-// noteData.verticalAlignment = SWT.TOP;
-// noteLabel.setLayoutData( noteData );
-
-// Label label = new Label(labelComposite, SWT.WRAP);
-// Font smallFont = new Font(Display.getDefault(), smallFont(label.getParent().getFont()));
-// label.setFont(smallFont);
-// label.setText( Messages.NOTE_DESC );
- }
-
- private void createTestCertButton(Composite composite) {
- this.testCertButton = new Button(composite, SWT.LEFT | SWT.CHECK);
- this.testCertButton.setText( Messages.AUTOINSERT_BTN );
-
- // get preference value
- //FIXME make default value false release a4 RC1
- preferenceStore.setDefault( testCertKey, false );
- testCertButton.setSelection(preferenceStore.getBoolean(testCertKey));
-
- this.testCertButton.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- preferenceStore.setValue(testCertKey, testCertButton.getSelection());
- }
- });
-
- GridData gridData = new GridData();
- gridData.horizontalAlignment = GridData.FILL;
- this.testCertButton.setLayoutData(gridData);
- this.testCertButton.setFont( composite.getFont() );
}
private void createProfileItemButtons(Composite composite) {