public AbstractWsdlModelItem<?> getWsdlModelItemByName(
      Collection<? extends AbstractWsdlModelItem<?>> items, String name) {
    for (AbstractWsdlModelItem<?> item : items) {
      if (item.getName() != null && item.getName().equals(name)) return item;
    }

    return null;
  }
Beispiel #2
0
  public void setUpdating(boolean updating) {
    if (this.updating == updating) return;

    if (updating) {
      List<AbstractWsdlModelItem<?>> messages = getAllMessages();
      for (AbstractWsdlModelItem<?> modelItem : messages) {
        modelItem.beforeSave();
      }
    }

    boolean oldValue = this.updating;
    this.updating = updating;

    notifyPropertyChanged(UPDATING_PROPERTY, oldValue, updating);
  }
Beispiel #3
0
  @Override
  public void release() {
    ((AbstractSoapUIDesktop) SoapUI.getDesktop()).closeDependantPanels(this);
    super.release();
    for (int i = requests.size(); i > 0; i--) {
      // removeRequest(requests.get(i-1));
      requests.get(i - 1).release();
    }
    getOperation().removePropertyChangeListener(this);
    params.release();

    removeTestPropertyListener(testPropertyListener);
  }