Examples of IArgument


Examples of org.springframework.ide.eclipse.webflow.core.model.IArgument

    NodeList children = node.getChildNodes();
    if (children != null && children.getLength() > 0) {
      for (int i = 0; i < children.getLength(); i++) {
        IDOMNode child = (IDOMNode) children.item(i);
        if ("argument".equals(child.getLocalName())) {
          IArgument arg = new Argument();
          arg.init(child, this);
          this.arguments.add(arg);
        }
      }
    }
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.model.IArgument

    data1.widthHint = 40;
    addButton.setLayoutData(data1);
    addButton.addSelectionListener(new SelectionAdapter() {

      public void widgetSelected(SelectionEvent e) {
        IArgument property = new Argument();
        property.createNew(actionClone);
        MethodArgumentEditorDialog dialog = new MethodArgumentEditorDialog(
            getParentShell(), property);
        if (dialog.open() == Dialog.OK) {
          methodArguments.add(property);
          configsViewer.refresh(true);
        }
      }
    });
    editButton = new Button(buttonArea, SWT.PUSH);
    editButton.setText("Edit");
    data1 = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    data1.widthHint = 40;
    editButton.setLayoutData(data1);
    editButton.addSelectionListener(new SelectionAdapter() {

      public void widgetSelected(SelectionEvent e) {
        IStructuredSelection selection = (IStructuredSelection) configsViewer
            .getSelection();
        if (selection.getFirstElement() != null) {
          if (selection.getFirstElement() instanceof IArgument) {
            IArgument property = (IArgument) selection
                .getFirstElement();
            MethodArgumentEditorDialog dialog = new MethodArgumentEditorDialog(
                getParentShell(), property);
            if (dialog.open() == Dialog.OK) {
              configsViewer.refresh(true);
            }
          }
        }
      }
    });

    removeButton = new Button(buttonArea, SWT.PUSH);
    removeButton.setText("Delete");
    GridData data2 = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    data1.widthHint = 40;
    removeButton.setLayoutData(data2);
    removeButton.addSelectionListener(new SelectionAdapter() {

      public void widgetSelected(SelectionEvent e) {
        IStructuredSelection selection = (IStructuredSelection) configsViewer
            .getSelection();
        if (selection.getFirstElement() != null) {
          if (selection.getFirstElement() instanceof IArgument) {
            IArgument property = (IArgument) selection
                .getFirstElement();
            methodArguments.remove(property);
            configsViewer.refresh(true);
          }
        }
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.