Examples of IWebflowModelElement


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

      result = DialogUtils.openPropertiesDialog(
          (IWebflowModelElement) ((IWebflowModelElement) parent).getElementParent(),
          newChild, true, 1);
    }
    if (result == Dialog.OK) {
      IWebflowModelElement tempChild = ((ICloneableModelElement<IWebflowModelElement>) newChild)
          .cloneModelElement();
      ((ICloneableModelElement<IWebflowModelElement>) parent)
          .applyCloneValues(tempChild);
    }
  }
View Full Code Here

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

  /*
   * (non-Javadoc)
   * @see org.eclipse.gef.commands.Command#undo()
   */
  public void undo() {
    IWebflowModelElement tempChild = ((ICloneableModelElement<IWebflowModelElement>) undoChild)
        .cloneModelElement();
    ((ICloneableModelElement<IWebflowModelElement>) parent)
        .applyCloneValues(tempChild);
  }
View Full Code Here

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

  /*
   * (non-Javadoc)
   * @see org.eclipse.gef.commands.Command#undo()
   */
  public void undo() {
    IWebflowModelElement parent = (IWebflowModelElement) child.getElementParent();
    ((IState) parent).removeExceptionHandler(child);
  }
View Full Code Here

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

            .getAction(EditPropertiesAction.EDITPROPERTIES);
        action.setOpenDialog(true);
       
        EditPropertiesCommand command = new EditPropertiesCommand();

        IWebflowModelElement clone = null;

        if (state instanceof ICloneableModelElement) {
          clone = ((ICloneableModelElement) state)
              .cloneModelElement();
        }
View Full Code Here

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

   * @see org.eclipse.jface.action.Action#run()
   */
  public void run() {
    Object flowModelElement = getFirstSelectedEditPart().getModel();
    if (flowModelElement instanceof IWebflowModelElement) {
      IWebflowModelElement element = (IWebflowModelElement) flowModelElement;
      WebflowEditorInput input = WebflowUtils.getActiveFlowEditorInput();
      IResource file = input.getFile();
      if (file != null && file.exists()) {
        SpringUIUtils.openInEditor((IFile) file, input
            .getElementStartLine(element.getNode()));
      }
    }
  }
View Full Code Here

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

  /*
   * (non-Javadoc)
   * @see org.eclipse.gef.commands.Command#undo()
   */
  public void undo() {
    IWebflowModelElement parent = (IWebflowModelElement) child.getElementParent();
    ((ISubflowState) parent).setAttributeMapper(null);
  }
View Full Code Here

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

   * (non-Javadoc)
   * @see org.eclipse.gef.commands.Command#execute()
   */
  public void execute() {
    if (!onlyReconnect) {
      IWebflowModelElement tempChild = ((ICloneableModelElement<IWebflowModelElement>) child)
          .cloneModelElement();
      oldChild.applyCloneValues(tempChild);
    }
    if (oldChild instanceof IStateTransition && newTarget != null) {
      oldTarget = ((IStateTransition) oldChild).getToState();
View Full Code Here

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

   * (non-Javadoc)
   * @see org.eclipse.gef.commands.Command#undo()
   */
  public void undo() {
    if (!onlyReconnect) {
      IWebflowModelElement tempChild = ((ICloneableModelElement<IWebflowModelElement>) undoChild)
          .cloneModelElement();
      oldChild.applyCloneValues(tempChild);
    }
    if (oldChild instanceof IStateTransition && newTarget != null
        && oldTarget != null) {
View Full Code Here

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

  /**
   *
   */
  protected void primExecute() {
    IWebflowModelElement parent = (IWebflowModelElement) child.getElementParent();
    if (parent instanceof IEntryActions) {
      index = ((IEntryActions) parent).getEntryActions().indexOf(child);
      ((IEntryActions) parent).removeEntryAction(child);
    }
    else if (parent instanceof IExitActions) {
View Full Code Here

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

  /* (non-Javadoc)
   * @see org.eclipse.gef.commands.Command#undo()
   */
  public void undo() {
    IWebflowModelElement parent = (IWebflowModelElement) child.getElementParent();
    if (parent instanceof IEntryActions) {
      ((IEntryActions) parent).addEntryAction(child, index);
    }
    else if (parent instanceof IExitActions) {
      ((IExitActions) parent).addExitAction(child, index);
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.