Search in sources :

Example 6 with CheckBoxFieldEditor

use of org.talend.commons.ui.swt.preferences.CheckBoxFieldEditor in project tdi-studio-se by Talend.

the class ComponentsPreferencePage method addFontAndColorFieldsFortRunJob.

protected void addFontAndColorFieldsFortRunJob(Composite composite) {
    doNotShowJobAfterDoubleClickCheckBoxField = new CheckBoxFieldEditor(IComponentPreferenceConstant.IS_AVOID, Messages.getString("ComponenttRunJobPreferencePage.label"), //$NON-NLS-1$
    composite);
    addField(doNotShowJobAfterDoubleClickCheckBoxField);
}
Also used : CheckBoxFieldEditor(org.talend.commons.ui.swt.preferences.CheckBoxFieldEditor)

Example 7 with CheckBoxFieldEditor

use of org.talend.commons.ui.swt.preferences.CheckBoxFieldEditor in project tdi-studio-se by Talend.

the class ComponentsPreferencePage method addFontAndColorFieldsForAssist.

protected void addFontAndColorFieldsForAssist(Composite composite) {
    enableComponentAssistCheckBoxField = new CheckBoxFieldEditor(TalendDesignerPrefConstants.COMPONENT_ASSIST, Messages.getString("ComponentsPreferencePage.componentAssist"), //$NON-NLS-1$
    composite);
    addField(enableComponentAssistCheckBoxField);
}
Also used : CheckBoxFieldEditor(org.talend.commons.ui.swt.preferences.CheckBoxFieldEditor)

Example 8 with CheckBoxFieldEditor

use of org.talend.commons.ui.swt.preferences.CheckBoxFieldEditor in project tdi-studio-se by Talend.

the class ComponenttRunJobPreferencePage method createFieldEditors.

@Override
public void createFieldEditors() {
    // doNotShowJobAfterDoubleClickCheckBoxField = new CheckBoxFieldEditor(IS_AVOID, Messages
    //                .getString("ComponenttRunJobPreferencePage.label"), getFieldEditorParent()); //$NON-NLS-1$
    doNotShowJobAfterDoubleClickCheckBoxField = new CheckBoxFieldEditor(IS_AVOID, Messages.getString("ComponenttRunJobPreferencePage.showCorrespondingJob"), //$NON-NLS-1$
    getFieldEditorParent());
    addField(doNotShowJobAfterDoubleClickCheckBoxField);
}
Also used : CheckBoxFieldEditor(org.talend.commons.ui.swt.preferences.CheckBoxFieldEditor)

Example 9 with CheckBoxFieldEditor

use of org.talend.commons.ui.swt.preferences.CheckBoxFieldEditor in project tdi-studio-se by Talend.

the class PaletteSettingsPreferencePage method createFieldEditors.

@Override
protected void createFieldEditors() {
    recentlyUsedListSize = new IntegerFieldEditor(TalendDesignerPrefConstants.PALETTE_SETTINGS_RECENTLY_USED_LIST_SIZE, //$NON-NLS-1$
    Messages.getString("PaletteSettingsPreferencePage.paletteSettingsRecentlyUsedListSize"), getFieldEditorParent());
    recentlyUsedListSize.setValidRange(1, 1000);
    addField(recentlyUsedListSize);
    shouldSearchFromHelp = new CheckBoxFieldEditor(TalendDesignerPrefConstants.PALETTE_SETTINGS_SEARCH_FROM_HELP, //$NON-NLS-1$
    Messages.getString("PaletteSettingsPreferencePage.paletteSettingsSearchFromHelp"), getFieldEditorParent());
    addField(shouldSearchFromHelp);
    resultLimitFromHelp = new IntegerFieldEditor(TalendDesignerPrefConstants.PALETTE_SETTINGS_SEARCH_RESULT_LIMIT_FROM_HELP, //$NON-NLS-1$
    Messages.getString("PaletteSettingsPreferencePage.paletteSettingsSearchResultLimitFromHelp"), getFieldEditorParent());
    resultLimitFromHelp.setValidRange(1, 1000);
    addField(resultLimitFromHelp);
    initStatus();
    initListeners();
}
Also used : IntegerFieldEditor(org.eclipse.jface.preference.IntegerFieldEditor) CheckBoxFieldEditor(org.talend.commons.ui.swt.preferences.CheckBoxFieldEditor)

Example 10 with CheckBoxFieldEditor

use of org.talend.commons.ui.swt.preferences.CheckBoxFieldEditor in project tdi-studio-se by Talend.

the class PerformancePreferencePage method createFieldEditors.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
     */
@Override
protected void createFieldEditors() {
    IBrandingService breaningService = (IBrandingService) GlobalServiceRegister.getDefault().getService(IBrandingService.class);
    if (breaningService.isPoweredOnlyCamel()) {
        addField(new BooleanFieldEditor(ITalendCorePrefConstants.DEACTIVE_REPOSITORY_UPDATE, //$NON-NLS-1$
        Messages.getString("PerformancePreferencePage.display.deactiveRepositoryUpdate"), getFieldEditorParent()));
        addField(new BooleanFieldEditor(TalendDesignerPrefConstants.PROPERTY_CODE_CHECK, Messages.getString("PerformancePreferencePage.propertyCodeCheck"), //$NON-NLS-1$
        getFieldEditorParent()));
        addField(new BooleanFieldEditor(TalendDesignerPrefConstants.GENERATE_CODE_WHEN_OPEN_JOB, //$NON-NLS-1$
        Messages.getString("PerformancePreferencePage.generateCode"), getFieldEditorParent()));
        addField(new BooleanFieldEditor(TalendDesignerPrefConstants.CHECK_ONLY_LAST_VERSION, //$NON-NLS-1$
        Messages.getString("PerformancePreferencePage.checkVersion"), getFieldEditorParent()));
        addField(new BooleanFieldEditor(TalendDesignerPrefConstants.PROPAGATE_CONTEXT_VARIABLE, //$NON-NLS-1$
        Messages.getString("PerformancePreferencePage.addOrDeleteVariable"), getFieldEditorParent()));
        dbConnTimeoutActive = new CheckBoxFieldEditor(ITalendCorePrefConstants.DB_CONNECTION_TIMEOUT_ACTIVED, Messages.getString("PerformancePreferencePage.ActivedTimeoutSetting"), //$NON-NLS-1$
        getFieldEditorParent());
        dbConnTimeoutActive.getButton().addSelectionListener(new SelectionAdapter() {

            @Override
            public void widgetSelected(SelectionEvent e) {
                checkDBTimeout();
            }
        });
        dbConnTimeout = new IntegerFieldEditor(ITalendCorePrefConstants.DB_CONNECTION_TIMEOUT, //$NON-NLS-1$
        Messages.getString("PerformancePreferencePage.ConnectionTimeout"), getFieldEditorParent());
        Text textControl = dbConnTimeout.getTextControl(getFieldEditorParent());
        //$NON-NLS-1$
        textControl.setToolTipText(Messages.getString("PerformancePreferencePage.ConnectionTimeoutTip"));
        dbConnTimeout.setValidRange(0, Short.MAX_VALUE);
        textControl.setEnabled(getPreferenceStore().getBoolean(ITalendCorePrefConstants.DB_CONNECTION_TIMEOUT_ACTIVED));
        addField(dbConnTimeoutActive);
        addField(dbConnTimeout);
        addSVNInforAutoCheckFiled();
    } else {
        addField(new BooleanFieldEditor(ITalendCorePrefConstants.DEACTIVE_REPOSITORY_UPDATE, //$NON-NLS-1$
        Messages.getString("PerformancePreferencePage.display.deactiveRepositoryUpdate"), getFieldEditorParent()));
        addField(new BooleanFieldEditor(TalendDesignerPrefConstants.PROPERTY_CODE_CHECK, Messages.getString("PerformancePreferencePage.propertyCodeCheck"), //$NON-NLS-1$
        getFieldEditorParent()));
        addField(new BooleanFieldEditor(TalendDesignerPrefConstants.GENERATE_CODE_WHEN_OPEN_JOB, //$NON-NLS-1$
        Messages.getString("PerformancePreferencePage.generateCode"), getFieldEditorParent()));
        addField(new BooleanFieldEditor(TalendDesignerPrefConstants.CHECK_ONLY_LAST_VERSION, //$NON-NLS-1$
        Messages.getString("PerformancePreferencePage.checkVersion"), getFieldEditorParent()));
        addField(new BooleanFieldEditor(TalendDesignerPrefConstants.PROPAGATE_CONTEXT_VARIABLE, //$NON-NLS-1$
        Messages.getString("PerformancePreferencePage.addOrDeleteVariable"), getFieldEditorParent()));
        dbConnTimeoutActive = new CheckBoxFieldEditor(ITalendCorePrefConstants.DB_CONNECTION_TIMEOUT_ACTIVED, Messages.getString("PerformancePreferencePage.ActivedTimeoutSetting"), //$NON-NLS-1$
        getFieldEditorParent());
        dbConnTimeoutActive.getButton().addSelectionListener(new SelectionAdapter() {

            @Override
            public void widgetSelected(SelectionEvent e) {
                checkDBTimeout();
            }
        });
        dbConnTimeout = new IntegerFieldEditor(ITalendCorePrefConstants.DB_CONNECTION_TIMEOUT, //$NON-NLS-1$
        Messages.getString("PerformancePreferencePage.ConnectionTimeout"), getFieldEditorParent());
        Text textControl = dbConnTimeout.getTextControl(getFieldEditorParent());
        //$NON-NLS-1$
        textControl.setToolTipText(Messages.getString("PerformancePreferencePage.ConnectionTimeoutTip"));
        dbConnTimeout.setValidRange(0, Short.MAX_VALUE);
        textControl.setEnabled(getPreferenceStore().getBoolean(ITalendCorePrefConstants.DB_CONNECTION_TIMEOUT_ACTIVED));
        addField(dbConnTimeoutActive);
        addField(dbConnTimeout);
        addField(new BooleanFieldEditor(ITalendCorePrefConstants.ADD_USER_ROUTINES, //$NON-NLS-1$
        Messages.getString("PerformancePreferencePage.addAllUserRoutines"), getFieldEditorParent()));
        // TDI-8323:remove this one,we do not need this since we always add all system routines for new job
        // addField(new BooleanFieldEditor(ITalendCorePrefConstants.ADD_SYSTEM_ROUTINES, Messages
        // .getString("PerformancePreferencePage.addAllSystemRoutines"),//$NON-NLS-1$
        // getFieldEditorParent()));
        addSVNInforAutoCheckFiled();
    }
    IntegerFieldEditor codeFormatTimeout = new IntegerFieldEditor(ITalendCorePrefConstants.PERFORMANCE_JAVA_PROCESS_CODE_FORMATE_TIMEOUT, //$NON-NLS-1$
    Messages.getString("PerformancePreferencePage.CodeFormatTimeout"), getFieldEditorParent());
    codeFormatTimeout.setValidRange(1, Short.MAX_VALUE);
    addField(codeFormatTimeout);
}
Also used : SelectionAdapter(org.eclipse.swt.events.SelectionAdapter) SelectionEvent(org.eclipse.swt.events.SelectionEvent) IntegerFieldEditor(org.eclipse.jface.preference.IntegerFieldEditor) BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor) Text(org.eclipse.swt.widgets.Text) IBrandingService(org.talend.core.ui.branding.IBrandingService) CheckBoxFieldEditor(org.talend.commons.ui.swt.preferences.CheckBoxFieldEditor)

Aggregations

CheckBoxFieldEditor (org.talend.commons.ui.swt.preferences.CheckBoxFieldEditor)11 SelectionEvent (org.eclipse.swt.events.SelectionEvent)4 IntegerFieldEditor (org.eclipse.jface.preference.IntegerFieldEditor)3 IPreferenceStore (org.eclipse.jface.preference.IPreferenceStore)2 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)2 SelectionListener (org.eclipse.swt.events.SelectionListener)2 BooleanFieldEditor (org.eclipse.jface.preference.BooleanFieldEditor)1 GridData (org.eclipse.swt.layout.GridData)1 Composite (org.eclipse.swt.widgets.Composite)1 Label (org.eclipse.swt.widgets.Label)1 Text (org.eclipse.swt.widgets.Text)1 LabelFieldEditor (org.talend.commons.ui.swt.advanced.dataeditor.LabelFieldEditor)1 IBrandingService (org.talend.core.ui.branding.IBrandingService)1