Examples of RefactoringWodElement


Examples of org.objectstyle.wolips.wodclipse.core.refactoring.RefactoringWodElement

    _elementTypeField.setText(elementType);
    _elementTypeField.setEnabled(elementTypeEnabled);

    if (cache != null) {
      _dataBindingContext = new DataBindingContext();
      _refactoringElement = new RefactoringWodElement(_wodElement, cache);

      if (elementNameEnabled) {
        bindElementName(cache);
      }
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.refactoring.RefactoringWodElement

    enableButtons();
  }

  protected void addNewBinding() {
    RefactoringWodElement element = getRefactoringElement();
    if (element != null) {
      try {
        String newBindingName = RefactoringWodElement.findUnusedBindingName(element.getWodElement(), "newBinding");
        element.addBindingValueNamed("\"\"", null, newBindingName);
        BindingsInspector.this.refresh();
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.refactoring.RefactoringWodElement

  }

  protected void removeBinding() {
    IApiBinding binding = (IApiBinding) ((IStructuredSelection) _bindingsTableViewer.getSelection()).getFirstElement();
    if (binding != null) {
      RefactoringWodElement element = getRefactoringElement();
      if (element != null) {
        try {
          element.removeBindingNamed(binding.getName());
          BindingsInspector.this.refresh();
        } catch (Exception e) {
          e.printStackTrace();
        }
      }
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.refactoring.RefactoringWodElement

      TableItem selectedItem = getSelectedItemAtPoint(_inspector, controlDropPoint);
      if (selectedItem != null) {
        IApiBinding binding = getBindingForItem(selectedItem);
        if (binding != null) {
          String droppedKeyPath = column.getSelectedKeyPath();
          RefactoringWodElement element = _inspector.getRefactoringElement();
          if (element != null) {
            try {
              element.setValueForBinding(droppedKeyPath, binding.getName());
            } catch (Exception e) {
              e.printStackTrace();
            }
          }
        }
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.refactoring.RefactoringWodElement

    public void widgetSelected(SelectionEvent event) {
      MenuItem item = (MenuItem) event.widget;
      item.setImage(ComponenteditorPlugin.getDefault().getImage(ComponenteditorPlugin.CONNECTED_ICON));
      IApiBinding apiBinding = (IApiBinding) item.getData();
      RefactoringWodElement refactoringWodElement = new RefactoringWodElement(_wodElement, _cache);
      try {
        refactoringWodElement.setValueForBinding(_droppedKeyPath, apiBinding.getName());
      } catch (Exception e) {
        e.printStackTrace();
        ComponenteditorPlugin.getDefault().log("Failed to add binding.", e);
      }
    }
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.