Search in sources :

Example 1 with CheckedElementsUiContentProvider

use of org.eclipse.wb.internal.rcp.databinding.ui.contentproviders.CheckedElementsUiContentProvider in project windowbuilder by eclipse.

the class CheckedElementsObservableInfo method createContentProviders.

// //////////////////////////////////////////////////////////////////////////
// 
// Editing
// 
// //////////////////////////////////////////////////////////////////////////
@Override
public void createContentProviders(List<IUiContentProvider> providers, BindingUiContentProviderContext context, DatabindingsProvider provider) throws Exception {
    super.createContentProviders(providers, context, provider);
    // 
    ChooseClassConfiguration configuration = new ChooseClassConfiguration();
    configuration.setDialogFieldLabel(Messages.CheckedElementsObservableInfo_label);
    configuration.setValueScope("beans");
    configuration.setChooseInterfaces(true);
    configuration.setEmptyClassErrorMessage(MessageFormat.format(Messages.CheckedElementsObservableInfo_emptyMessage, context.getDirection()));
    configuration.setErrorMessagePrefix(MessageFormat.format(Messages.CheckedElementsObservableInfo_errorPrefix, context.getDirection()));
    // 
    providers.add(new CheckedElementsUiContentProvider(configuration, this, provider));
}
Also used : CheckedElementsUiContentProvider(org.eclipse.wb.internal.rcp.databinding.ui.contentproviders.CheckedElementsUiContentProvider) ChooseClassConfiguration(org.eclipse.wb.internal.core.databinding.ui.editor.contentproviders.ChooseClassConfiguration)

Aggregations

ChooseClassConfiguration (org.eclipse.wb.internal.core.databinding.ui.editor.contentproviders.ChooseClassConfiguration)1 CheckedElementsUiContentProvider (org.eclipse.wb.internal.rcp.databinding.ui.contentproviders.CheckedElementsUiContentProvider)1