if (isAllowOverride || isAdminPreference){
Composite activateComp = createComposite(composite);
-
+ Label separator= new Label(activateComp, SWT.HORIZONTAL | SWT.SEPARATOR);
+ GridData sepGrid = createTextGridData();
+ separator.setLayoutData(sepGrid);
+ separator.setVisible(false);
final Button activateCheckButton = new Button(activateComp, SWT.CHECK);
activateCheckButton.setText(Messages.ChecklistEditorGeneralPreference_enable);
activateCheckButton.setSelection(isEditorActivated);
child = createComposite(composite);
child.setVisible(isEditorActivated);
- Label separator= new Label(child, SWT.HORIZONTAL | SWT.SEPARATOR);
- GridData sepGrid = createTextGridData();
+ separator= new Label(child, SWT.HORIZONTAL | SWT.SEPARATOR);
+ sepGrid = createTextGridData();
GridData textGrid = createTextGridData();
textGrid.verticalSpan = 2;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
import eu.etaxonomy.cdm.model.metadata.CdmPreference;
import eu.etaxonomy.taxeditor.l10n.Messages;
getValues();
final Composite composite = createComposite(parent);
+ GridData gridData = createTextGridData();
+ Label separator= new Label(composite, SWT.HORIZONTAL | SWT.SEPARATOR);
+ separator.setLayoutData(gridData);
+ separator.setVisible(false);
final Button showIOMenuButton = new Button(composite, SWT.CHECK);
showIOMenuButton.setText(Messages.DatabasePreferncesPage_Show_IOMenu);
showIOMenuButton.setSelection(isShowIOMenu);
Label label = new Label(parent, SWT.NONE);
label.setText(DESCRIPTION);
Composite titleComp = createComposite(parent);
+ GridData gridData = createTextGridData();
+ Label separator= new Label(titleComp, SWT.HORIZONTAL | SWT.SEPARATOR);
+ separator.setLayoutData(gridData);
+ separator.setVisible(false);
final Button showSpecimenButton = new Button(titleComp, SWT.CHECK);
showSpecimenButton.setText(Messages.DatabasePreferncesPage_Show_Specimen);
}
});
Button allowOverrideIsShowSpecimenRelatedIssuesButton = createAllowOverrideButton(titleComp);
+
+
if (isAdminPreference){
allowOverrideIsShowSpecimenRelatedIssuesButton.setSelection(allowOverrideShowSpecimenRelatedIssues);
allowOverrideIsShowSpecimenRelatedIssuesButton.addSelectionListener(new SelectionAdapter(){
}
composite = createComposite(parent);
composite.setEnabled(isShowSpecimenRelatedIssues);
- GridData gridData = createTextGridData();
+ gridData = createTextGridData();
- Label separator= new Label(composite, SWT.HORIZONTAL | SWT.SEPARATOR);
+ separator= new Label(composite, SWT.HORIZONTAL | SWT.SEPARATOR);
separator.setLayoutData(gridData);
final Button showCollectingAreaInGeneralSectionButton = new Button(composite, SWT.CHECK);
Composite activateComp = new Composite(composite, SWT.NULL);
GridLayout layout = new GridLayout();
layout.numColumns = 2;
+
activateComp.setLayout(layout);
- GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL);
+ GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
activateComp.setLayoutData(gridData);
+
return activateComp;
}