Examples of canAddKey()


Examples of org.objectstyle.wolips.bindings.wod.BindingValueKeyPath.canAddKey()

  protected void addKey() {
    IApiBinding binding = (IApiBinding) ((IStructuredSelection) _bindingsTableViewer.getSelection()).getFirstElement();
    if (binding != null && _cache != null) {
      try {
        BindingValueKeyPath bindingValueKeyPath = new BindingValueKeyPath(_wodElement.getBindingValue(binding.getName()), _cache);
        if (bindingValueKeyPath.canAddKey()) {
          String name = WodCompletionUtils.addKeyOrAction(bindingValueKeyPath, binding, _cache.getComponentType());
          getRefactoringElement().setValueForBinding(name, binding.getName());
          BindingsInspector.this.refresh();
        }
      } catch (Exception e) {
View Full Code Here

Examples of org.objectstyle.wolips.bindings.wod.BindingValueKeyPath.canAddKey()

        _addKeyActionButton.setEnabled(false);
      } else {
        _removeBindingButton.setEnabled(true);
        try {
          BindingValueKeyPath bindingValueKeyPath = new BindingValueKeyPath(_wodElement.getBindingValue(binding.getName()), _cache);
          if (bindingValueKeyPath.canAddKey()) {
            _addKeyActionButton.setEnabled(true);
          } else {
            _addKeyActionButton.setEnabled(false);
          }
        } catch (Exception e) {
View Full Code Here

Examples of org.objectstyle.wolips.bindings.wod.BindingValueKeyPath.canAddKey()

          if (member != null) {
            JavaUI.openInEditor(member, true, true);
          }
        }
      }
      else if (bindingValueKeyPath.canAddKey()) {
        WodCompletionUtils.addKeyOrAction(bindingValueKeyPath, binding, componentType);
      }
    }
  }
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.