Search in sources :

Example 1 with ThreeCompositesSashForm

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;
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) ThreeCompositesSashForm(org.talend.commons.ui.swt.advanced.composite.ThreeCompositesSashForm) IProxyRepositoryFactory(org.talend.repository.model.IProxyRepositoryFactory)

Example 2 with ThreeCompositesSashForm

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;
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) ThreeCompositesSashForm(org.talend.commons.ui.swt.advanced.composite.ThreeCompositesSashForm) IProxyRepositoryFactory(org.talend.repository.model.IProxyRepositoryFactory)

Example 3 with ThreeCompositesSashForm

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;
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) ThreeCompositesSashForm(org.talend.commons.ui.swt.advanced.composite.ThreeCompositesSashForm)

Example 4 with ThreeCompositesSashForm

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;
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) ThreeCompositesSashForm(org.talend.commons.ui.swt.advanced.composite.ThreeCompositesSashForm) IProxyRepositoryFactory(org.talend.repository.model.IProxyRepositoryFactory)

Example 5 with ThreeCompositesSashForm

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;
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) ThreeCompositesSashForm(org.talend.commons.ui.swt.advanced.composite.ThreeCompositesSashForm) IProxyRepositoryFactory(org.talend.repository.model.IProxyRepositoryFactory)

Aggregations

GridData (org.eclipse.swt.layout.GridData)5 GridLayout (org.eclipse.swt.layout.GridLayout)5 Composite (org.eclipse.swt.widgets.Composite)5 ThreeCompositesSashForm (org.talend.commons.ui.swt.advanced.composite.ThreeCompositesSashForm)5 IProxyRepositoryFactory (org.talend.repository.model.IProxyRepositoryFactory)4