Package org.eclipse.wb.internal.core.databinding.ui.editor.contentproviders

Examples of org.eclipse.wb.internal.core.databinding.ui.editor.contentproviders.ChooseClassConfiguration


      IPageListener listener,
      DatabindingsProvider provider) throws Exception {
    super.createContentProviders(providers, listener, provider);
    if (!m_autobind) {
      if (m_configuration == null) {
        m_configuration = new ChooseClassConfiguration();
        m_configuration.setDialogFieldLabel("Converter:");
        m_configuration.setValueScope("com.extjs.gxt.ui.client.binding.Converter");
        m_configuration.setClearValue("N/S");
        m_configuration.setBaseClassName("com.extjs.gxt.ui.client.binding.Converter");
        m_configuration.setConstructorParameters(ArrayUtils.EMPTY_CLASS_ARRAY);
View Full Code Here


    MultiTargetRunnable multiTargetRunnable = null;
    //
    if (m_model instanceof WidgetObserveInfo) {
      WidgetObserveInfo model = (WidgetObserveInfo) m_model;
      if (model.isGrid()) {
        ChooseClassConfiguration configuration = new ChooseClassConfiguration();
        configuration.setDialogFieldLabel("Grid selection element:");
        configuration.setBaseClassName("com.extjs.gxt.ui.client.data.ModelData");
        configuration.setValueScope("beans");
        configuration.setChooseInterfaces(true);
        configuration.setEmptyClassErrorMessage("Choose Grid selection element");
        configuration.setErrorMessagePrefix("Grid selection element");
        //
        ChooseClassUiContentProvider gridSelectionElementEditor =
            new ChooseClassUiContentProvider(configuration) {
              public void updateFromObject() throws Exception {
                if (m_gridSelectionModel == null) {
                  calculateFinish();
                } else {
                  setClassName(m_gridSelectionModel.getObjectType().getName());
                }
              }

              public void saveToObject() throws Exception {
                m_gridSelectionModel =
                    new BeanObserveInfo(provider.getBeansContainer().getBeanSupport(),
                        m_modelProperty,
                        getChoosenClass());
                ((WidgetObserveInfo) m_model).getSelfProperty().setProperties(
                    m_gridSelectionModel.getChildren(ChildrenContext.ChildrenForPropertiesTable));
              }
            };
        providers.add(gridSelectionElementEditor);
        //
        multiTargetRunnable = new MultiTargetRunnable(gridSelectionElementEditor);
        new ChooseClassRouter(gridSelectionElementEditor, multiTargetRunnable);
      }
    }
    //
    TabContainerConfiguration configuration = new TabContainerConfiguration();
    configuration.setUseMultiAddButton(true);
    configuration.setCreateEmptyPage("Bindings", "Add field bindings for this form.");
    //
    providers.add(new FormBindingUiContentProvider(provider,
        configuration,
        (BooleanDialogField) autoBindEditor.getDialogField(),
        multiTargetRunnable,
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.databinding.ui.editor.contentproviders.ChooseClassConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.