Examples of DataBindingContext


Examples of org.eclipse.core.databinding.DataBindingContext

    super.setInput(part, selection);
    removeListeners();
    if (selection instanceof IStructuredSelection) {
      _userInfoable = (UserInfoableEOModelObject) ((IStructuredSelection) selection).getFirstElement();

      _bindingContext = new DataBindingContext();
      _bindingContext.bindValue(SWTObservables.observeText(_documentationText, SWT.Modify), BeansObservables.observeValue(_userInfoable, UserInfoableEOModelObject.DOCUMENTATION_KEY), null, null);
      _bindingContext.bindValue(new BrowserTextObservableValue(_browser, "body { margin: 0px; margin-right: 10px; font-size: 0.8em; }"), BeansObservables.observeValue(_userInfoable, UserInfoableEOModelObject.DOCUMENTATION_KEY), null, null);
    } else {
      _userInfoable = null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.