use of org.talend.commons.ui.swt.advanced.composite.ThreeCompositesSashForm in project tdi-studio-se by Talend.
the class AbstractVersionManagementProjectSettingPage method createContents.
@Override
protected Control createContents(Composite parent) {
Composite composite = new Composite(parent, 0);
ThreeCompositesSashForm compositesSachForm = new ThreeCompositesSashForm(composite, SWT.NONE);
GridLayout gridLayout = new GridLayout(1, false);
gridLayout.marginHeight = 0;
gridLayout.marginWidth = 0;
gridLayout.horizontalSpacing = 0;
composite.setLayout(gridLayout);
GridData gridData = new GridData(GridData.FILL_BOTH);
gridData.widthHint = 570;
composite.setLayoutData(gridData);
IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();
if (factory.isUserReadOnlyOnCurrentProject()) {
compositesSachForm.setEnabled(false);
}
addRepositoryTreeViewer(compositesSachForm.getLeftComposite());
addButtons(compositesSachForm.getMidComposite());
addItemTableViewer(compositesSachForm.getRightComposite());
return composite;
}
use of org.talend.commons.ui.swt.advanced.composite.ThreeCompositesSashForm in project tdi-studio-se by Talend.
the class StatusManagerSettingPage method createContents.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
*/
@Override
protected Control createContents(Composite parent) {
Composite composite = new Composite(parent, 0);
ThreeCompositesSashForm compositesSachForm = new ThreeCompositesSashForm(composite, SWT.NONE);
GridLayout gridLayout = new GridLayout(1, false);
gridLayout.marginHeight = 0;
gridLayout.marginWidth = 0;
gridLayout.horizontalSpacing = 0;
composite.setLayout(gridLayout);
GridData gridData = new GridData(GridData.FILL_BOTH);
gridData.widthHint = 570;
composite.setLayoutData(gridData);
IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();
if (factory.isUserReadOnlyOnCurrentProject()) {
compositesSachForm.setEnabled(false);
}
//
addRepositoryTreeViewer(compositesSachForm.getLeftComposite());
addButtons(compositesSachForm.getMidComposite());
addItemTableViewer(compositesSachForm.getRightComposite());
statusHelper = new org.talend.repository.ui.properties.StatusHelper(service.getProxyRepositoryFactory());
return composite;
}
use of org.talend.commons.ui.swt.advanced.composite.ThreeCompositesSashForm in project tdi-studio-se by Talend.
the class PaletteSettingsDialog method createDialogArea.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
*/
@Override
protected Control createDialogArea(Composite parent) {
Composite composite = (Composite) super.createDialogArea(parent);
compositesSachForm = new ThreeCompositesSashForm(composite, SWT.NONE);
GridLayout gridLayout = new GridLayout(1, false);
gridLayout.marginBottom = 0;
gridLayout.marginHeight = 0;
gridLayout.marginLeft = 0;
gridLayout.marginRight = 0;
gridLayout.marginTop = 0;
gridLayout.marginWidth = 0;
gridLayout.horizontalSpacing = 0;
composite.setLayout(gridLayout);
GridData gridData = new GridData(GridData.FILL_BOTH);
composite.setLayoutData(gridData);
addTreeViewer(compositesSachForm);
// addFileds(composite);
return composite;
}
use of org.talend.commons.ui.swt.advanced.composite.ThreeCompositesSashForm in project tdi-studio-se by Talend.
the class CustomComponentSettingPage method createContents.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
*/
@Override
protected Control createContents(Composite parent) {
Composite composite = new Composite(parent, 0);
compositesSachForm = new ThreeCompositesSashForm(composite, SWT.NONE);
GridLayout gridLayout = new GridLayout(1, false);
gridLayout.marginBottom = 0;
gridLayout.marginHeight = 0;
gridLayout.marginLeft = 0;
gridLayout.marginRight = 0;
gridLayout.marginTop = 0;
gridLayout.marginWidth = 0;
gridLayout.horizontalSpacing = 0;
composite.setLayout(gridLayout);
GridData gridData = new GridData(GridData.FILL_BOTH);
composite.setLayoutData(gridData);
addTreeViewer(compositesSachForm);
init();
IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();
if (factory.isUserReadOnlyOnCurrentProject()) {
composite.setEnabled(false);
}
return composite;
}
use of org.talend.commons.ui.swt.advanced.composite.ThreeCompositesSashForm in project tdi-studio-se by Talend.
the class PaletteSettingPage method createContents.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
*/
@Override
protected Control createContents(Composite parent) {
init();
Composite composite = new Composite(parent, 0);
compositesSachForm = new ThreeCompositesSashForm(composite, SWT.NONE);
GridLayout gridLayout = new GridLayout(1, false);
gridLayout.marginBottom = 0;
gridLayout.marginHeight = 0;
gridLayout.marginLeft = 0;
gridLayout.marginRight = 0;
gridLayout.marginTop = 0;
gridLayout.marginWidth = 0;
gridLayout.horizontalSpacing = 0;
composite.setLayout(gridLayout);
GridData gridData = new GridData(GridData.FILL_BOTH);
composite.setLayoutData(gridData);
addTreeViewer(compositesSachForm);
IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();
if (factory.isUserReadOnlyOnCurrentProject()) {
compositesSachForm.setEnabled(false);
}
return composite;
}
Aggregations