Examples of EntryActions


Examples of org.springframework.ide.eclipse.webflow.core.internal.model.EntryActions

      entryActions = new ArrayList<IActionElement>();
      entryActions.addAll(this.actionStateClone.getEntryActions().getEntryActions());
    }
    else {
      entryActions = new ArrayList<IActionElement>();
      EntryActions entry = new EntryActions();
      entry.createNew(actionStateClone);
      actionStateClone.setEntryActions(entry);
    }
    if (this.actionStateClone.getExitActions() != null) {
      exitActions = new ArrayList<IActionElement>();
      exitActions.addAll(this.actionStateClone.getExitActions().getExitActions());
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.EntryActions

      if (!WebflowModelXmlUtils.isVersion1Flow(actionState)) {
        this.actionStateClone.setParent(trimString(getParent()));
      }

      if (actionState.getEntryActions() == null && this.entryActions.size() > 0) {
        EntryActions entry = new EntryActions();
        entry.createNew(actionStateClone);
        for (IActionElement a : this.entryActions) {
          entry.addEntryAction(a);
        }
        actionStateClone.setEntryActions(entry);
      }
      else if (this.entryActions.size() == 0) {
        actionStateClone.setEntryActions(null);
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.EntryActions

      entryActions = new ArrayList<IActionElement>();
      entryActions.addAll(this.stateClone.getEntryActions().getEntryActions());
    }
    else {
      entryActions = new ArrayList<IActionElement>();
      EntryActions entry = new EntryActions();
      entry.createNew(stateClone);
      stateClone.setEntryActions(entry);
    }
    if (this.stateClone.getExitActions() != null) {
      exitActions = new ArrayList<IActionElement>();
      exitActions.addAll(this.stateClone.getExitActions().getExitActions());
    }
    else {
      exitActions = new ArrayList<IActionElement>();
      ExitActions exit = new ExitActions();
      exit.createNew(stateClone);
      stateClone.setExitActions(exit);
    }

    outputAttributes = new ArrayList<IOutputAttribute>();
    outputMapping = new ArrayList<IMapping>();
    inputAttributes = new ArrayList<IInputAttribute>();
    inputMapping = new ArrayList<IMapping>();

    if (WebflowModelXmlUtils.isVersion1Flow(state)) {
      if (this.stateClone.getOutputMapper() != null) {
        outputAttributes = new ArrayList<IOutputAttribute>();
        outputMapping = new ArrayList<IMapping>();
        outputAttributes.addAll(this.stateClone.getOutputMapper().getOutputAttributes());
        outputMapping.addAll(this.stateClone.getOutputMapper().getMapping());
      }
      else {
        outputAttributes = new ArrayList<IOutputAttribute>();
        outputMapping = new ArrayList<IMapping>();
        OutputMapper entry = new OutputMapper();
        entry.createNew(stateClone);
        stateClone.setOutputMapper(entry);
      }
    }
    else {
      outputAttributes = new ArrayList<IOutputAttribute>();
      outputAttributes.addAll(this.stateClone.getOutputAttributes());
      outputMapping = new ArrayList<IMapping>();
      OutputMapper entry = new OutputMapper();
      entry.createNew(stateClone);
      stateClone.setOutputMapper(entry);
    }

    if (WebflowModelXmlUtils.isVersion1Flow(state)) {
      if (this.stateClone.getInputMapper() != null) {
        inputAttributes = new ArrayList<IInputAttribute>();
        inputMapping = new ArrayList<IMapping>();
        inputAttributes.addAll(this.stateClone.getInputMapper().getInputAttributes());
        inputMapping.addAll(this.stateClone.getInputMapper().getMapping());
      }
      else {
        inputAttributes = new ArrayList<IInputAttribute>();
        inputMapping = new ArrayList<IMapping>();
        InputMapper entry = new InputMapper();
        entry.createNew(stateClone);
        stateClone.setInputMapper(entry);
      }
    }
    else {
      inputAttributes = new ArrayList<IInputAttribute>();
      inputAttributes.addAll(this.stateClone.getInputAttributes());
      inputMapping = new ArrayList<IMapping>();
      InputMapper entry = new InputMapper();
      entry.createNew(stateClone);
      stateClone.setInputMapper(entry);
    }

    if (this.stateClone.getGlobalTransitions() != null) {
      globalTransitions = new ArrayList<IStateTransition>();
      globalTransitions.addAll(this.stateClone.getGlobalTransitions().getGlobalTransitions());
    }
    else {
      globalTransitions = new ArrayList<IStateTransition>();
      GlobalTransitions entry = new GlobalTransitions();
      entry.createNew(stateClone);
      stateClone.setGlobalTransitions(entry);
    }

    exceptionHandler = new ArrayList<org.springframework.ide.eclipse.webflow.core.model.IExceptionHandler>();
    if (this.stateClone.getExceptionHandlers() != null) {
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.EntryActions

          this.stateClone.removePersistenceContext();
        }
      }

      if (state.getEntryActions() == null && this.entryActions.size() > 0) {
        EntryActions entry = new EntryActions();
        entry.createNew(stateClone);
        for (IActionElement a : this.entryActions) {
          entry.addEntryAction(a);
        }
        stateClone.setEntryActions(entry);
      }
      else if (this.entryActions.size() == 0) {
        stateClone.setEntryActions(null);
      }
      else {
        stateClone.getEntryActions().removeAll();
        for (IActionElement a : this.entryActions) {
          stateClone.getEntryActions().addEntryAction(a);
        }
      }

      if (state.getExitActions() == null && this.exitActions.size() > 0) {
        ExitActions exit = new ExitActions();
        exit.createNew(stateClone);
        for (IActionElement a : this.exitActions) {
          exit.addExitAction(a);
        }
        stateClone.setExitActions(exit);
      }
      else if (this.exitActions.size() == 0) {
        stateClone.setExitActions(null);
      }
      else {
        stateClone.getExitActions().removeAll();
        for (IActionElement a : this.exitActions) {
          stateClone.getExitActions().addExitAction(a);
        }
      }

      if (this.exceptionHandler != null && this.exceptionHandler.size() > 0) {
        stateClone.removeAllExceptionHandler();
        for (org.springframework.ide.eclipse.webflow.core.model.IExceptionHandler a : this.exceptionHandler) {
          stateClone.addExceptionHandler(a);
        }
      }
      else {
        stateClone.removeAllExceptionHandler();
      }

      if (state.getOutputMapper() == null
          && (this.outputAttributes.size() > 0 || this.outputMapping.size() > 0)) {
        if (WebflowModelXmlUtils.isVersion1Flow(state)) {
          OutputMapper entry = new OutputMapper();
          entry.createNew(stateClone);
          for (IInputAttribute a : this.outputAttributes) {
            entry.addOutputAttribute((IOutputAttribute) a);
          }
          for (IMapping a : this.outputMapping) {
            entry.addMapping(a);
          }
          stateClone.setOutputMapper(entry);
        }
        else {
          stateClone.removeAllOutputAttribute();
          for (IInputAttribute a : this.outputAttributes) {
            stateClone.addOutputAttribute((IOutputAttribute) a);
          }
          stateClone.setOutputMapper(null);
        }
      }
      else if (this.outputAttributes.size() == 0 && this.outputMapping.size() == 0) {
        stateClone.setOutputMapper(null);
      }
      else {
        stateClone.getOutputMapper().removeAllOutputAttribute();
        stateClone.getOutputMapper().removeAllMapping();
        for (IInputAttribute a : this.outputAttributes) {
          stateClone.getOutputMapper().addOutputAttribute((IOutputAttribute) a);
        }
        for (IMapping a : this.outputMapping) {
          stateClone.getOutputMapper().addMapping(a);
        }
      }

      if (state.getInputMapper() == null
          && (this.inputAttributes.size() > 0 || this.inputMapping.size() > 0)) {
        if (WebflowModelXmlUtils.isVersion1Flow(state)) {
          InputMapper entry = new InputMapper();
          entry.createNew(stateClone);
          for (IInputAttribute a : this.inputAttributes) {
            entry.addInputAttribute(a);
          }
          for (IMapping a : this.inputMapping) {
            entry.addMapping(a);
          }
          stateClone.setInputMapper(entry);
        }
        else {
          stateClone.removeAllInputAttribute();
          for (IInputAttribute a : this.inputAttributes) {
            stateClone.addInputAttribute(a);
          }
          stateClone.setInputMapper(null);
        }
      }
      else if (this.inputAttributes.size() == 0 && this.inputMapping.size() == 0) {
        stateClone.setInputMapper(null);
      }
      else {
        stateClone.getInputMapper().removeAllInputAttribute();
        stateClone.getInputMapper().removeAllMapping();
        for (IInputAttribute a : this.inputAttributes) {
          stateClone.getInputMapper().addInputAttribute(a);
        }
        for (IMapping a : this.inputMapping) {
          stateClone.getInputMapper().addMapping(a);
        }
      }

      if (state.getGlobalTransitions() == null && this.globalTransitions.size() > 0) {
        GlobalTransitions entry = new GlobalTransitions();
        entry.createNew(stateClone);
        for (IStateTransition a : this.globalTransitions) {
          entry.addGlobalTransition(a);
        }
        stateClone.setGlobalTransitions(entry);
      }
      else if (this.globalTransitions.size() == 0) {
        stateClone.setGlobalTransitions(null);
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.EntryActions

      entryActions = new ArrayList<IActionElement>();
      entryActions.addAll(this.endStateClone.getEntryActions().getEntryActions());
    }
    else {
      entryActions = new ArrayList<IActionElement>();
      EntryActions entry = new EntryActions();
      entry.createNew(endStateClone);
      endStateClone.setEntryActions(entry);
    }

    if (this.endStateClone.getOutputMapper() != null) {
      outputAttributes = new ArrayList<IOutputAttribute>();
      outputMapping = new ArrayList<IMapping>();
      outputAttributes.addAll(this.endStateClone.getOutputMapper().getOutputAttributes());
      outputMapping.addAll(this.endStateClone.getOutputMapper().getMapping());
    }
    else {
      outputAttributes = new ArrayList<IOutputAttribute>();
      outputMapping = new ArrayList<IMapping>();
      OutputMapper entry = new OutputMapper();
      entry.createNew(endStateClone);
      endStateClone.setOutputMapper(entry);
    }

    exceptionHandler = new ArrayList<org.springframework.ide.eclipse.webflow.core.model.IExceptionHandler>();
    if (this.endStateClone.getExceptionHandlers() != null) {
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.EntryActions

        this.endStateClone.setParent(trimString(parentText.getText()));
        this.endStateClone.setCommit(Boolean.toString(commitText.getSelection()));
      }

      if (endState.getEntryActions() == null && this.entryActions.size() > 0) {
        EntryActions entry = new EntryActions();
        entry.createNew(endStateClone);
        for (IActionElement a : this.entryActions) {
          entry.addEntryAction(a);
        }
        endStateClone.setEntryActions(entry);
      }
      else if (this.entryActions.size() == 0) {
        endStateClone.setEntryActions(null);
      }
      else {
        endStateClone.getEntryActions().removeAll();
        for (IActionElement a : this.entryActions) {
          endStateClone.getEntryActions().addEntryAction(a);
        }
      }

      if (this.exceptionHandler != null && this.exceptionHandler.size() > 0) {
        endStateClone.removeAllExceptionHandler();
        for (org.springframework.ide.eclipse.webflow.core.model.IExceptionHandler a : this.exceptionHandler) {
          endStateClone.addExceptionHandler(a);
        }
      }
      else {
        endStateClone.removeAllExceptionHandler();
      }

      if (endState.getOutputMapper() == null
          && (this.outputAttributes.size() > 0 || this.outputMapping.size() > 0)) {
        OutputMapper entry = new OutputMapper();
        entry.createNew(endStateClone);
        for (IInputAttribute a : this.outputAttributes) {
          entry.addOutputAttribute((IOutputAttribute) a);
        }
        for (IMapping a : this.outputMapping) {
          entry.addMapping(a);
        }
        endStateClone.setOutputMapper(entry);
      }
      else if (this.outputAttributes.size() == 0 && this.outputMapping.size() == 0) {
        endStateClone.setOutputMapper(null);
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.EntryActions

      entryActions = new ArrayList<IActionElement>();
      entryActions.addAll(this.stateClone.getEntryActions().getEntryActions());
    }
    else {
      entryActions = new ArrayList<IActionElement>();
      EntryActions entry = new EntryActions();
      entry.createNew(stateClone);
      stateClone.setEntryActions(entry);
    }
    if (this.stateClone.getExitActions() != null) {
      exitActions = new ArrayList<IActionElement>();
      exitActions.addAll(this.stateClone.getExitActions().getExitActions());
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.EntryActions

      if (!WebflowModelXmlUtils.isVersion1Flow(state)) {
        this.stateClone.setParent(trimString(parentText.getText()));
      }

      if (state.getEntryActions() == null && this.entryActions.size() > 0) {
        EntryActions entry = new EntryActions();
        entry.createNew(stateClone);
        for (IActionElement a : this.entryActions) {
          entry.addEntryAction(a);
        }
        stateClone.setEntryActions(entry);
      }
      else if (this.entryActions.size() == 0) {
        stateClone.setEntryActions(null);
      }
      else {
        stateClone.getEntryActions().removeAll();
        for (IActionElement a : this.entryActions) {
          stateClone.getEntryActions().addEntryAction(a);
        }
      }

      if (state.getExitActions() == null && this.exitActions.size() > 0) {
        ExitActions exit = new ExitActions();
        exit.createNew(stateClone);
        for (IActionElement a : this.exitActions) {
          exit.addExitAction(a);
        }
        stateClone.setExitActions(exit);
      }
      else if (this.exitActions.size() == 0) {
        stateClone.setExitActions(null);
      }
      else {
        stateClone.getExitActions().removeAll();
        for (IActionElement a : this.exitActions) {
          stateClone.getExitActions().addExitAction(a);
        }
      }

      if (this.exceptionHandler != null && this.exceptionHandler.size() > 0) {
        stateClone.removeAllExceptionHandler();
        for (org.springframework.ide.eclipse.webflow.core.model.IExceptionHandler a : this.exceptionHandler) {
          stateClone.addExceptionHandler(a);
        }
      }
      else {
        stateClone.removeAllExceptionHandler();
      }

      if (WebflowModelXmlUtils.isVersion1Flow(state)) {
        if (trimString(this.attributeMapperBeanText.getText()) != null
            || this.inputAttributes.size() > 0 || this.outputAttributes.size() > 0
            || this.outputMapping.size() > 0 || this.inputMapping.size() > 0) {

          IAttributeMapper mapper = null;

          if (stateClone.getAttributeMapper() == null) {
            mapper = new AttributeMapper();
            mapper.createNew(stateClone);
            stateClone.setAttributeMapper(mapper);
          }
          else {
            mapper = stateClone.getAttributeMapper();
          }

          mapper.setBean(trimString(this.attributeMapperBeanText.getText()));

          if (mapper.getOutputMapper() == null
              && (this.outputAttributes.size() > 0 || this.outputMapping.size() > 0)) {
            OutputMapper entry = new OutputMapper();
            entry.createNew(mapper);
            for (IInputAttribute a : this.outputAttributes) {
              entry.addOutputAttribute((IOutputAttribute) a);
            }
            for (IMapping a : this.outputMapping) {
              entry.addMapping(a);
            }
            mapper.setOutputMapper(entry);
          }
          else if (this.outputAttributes.size() == 0 && this.outputMapping.size() == 0) {
            mapper.setOutputMapper(null);
          }
          else {
            mapper.getOutputMapper().removeAllOutputAttribute();
            mapper.getOutputMapper().removeAllMapping();
            for (IInputAttribute a : this.outputAttributes) {
              mapper.getOutputMapper().addOutputAttribute((IOutputAttribute) a);
            }
            for (IMapping a : this.outputMapping) {
              mapper.getOutputMapper().addMapping(a);
            }
          }

          if (mapper.getInputMapper() == null
              && (this.inputAttributes.size() > 0 || this.inputMapping.size() > 0)) {
            InputMapper entry = new InputMapper();
            entry.createNew(mapper);
            for (IInputAttribute a : this.inputAttributes) {
              entry.addInputAttribute(a);
            }
            for (IMapping a : this.inputMapping) {
              entry.addMapping(a);
            }
            mapper.setInputMapper(entry);
          }
          else if (this.inputAttributes.size() == 0 && this.inputMapping.size() == 0) {
            mapper.setInputMapper(null);
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.EntryActions

  }

  private static PaletteContainer createEntryActionDrawer(boolean version1) {
    List<ToolEntry> entries = new ArrayList<ToolEntry>();

    IEntryActions exit = new EntryActions();
    IAction action = new Action();
    action.setElementParent(exit);

    WebflowModelLabelDecorator dec = new WebflowModelLabelDecorator();
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.EntryActions

        viewState.getRenderActions().addRenderAction(child);
      }
    }
    else if (child.getType() == IActionElement.ACTION_TYPE.ENTRY_ACTION) {
      if (parent.getEntryActions() == null) {
        EntryActions entry = new EntryActions();
        entry.createNew(parent);
        parent.setEntryActions(entry);
      }
      child.setElementParent(parent.getEntryActions());
      if (index > 0) {
        parent.getEntryActions().addEntryAction(child, index);
      }
      else {
        parent.getEntryActions().addEntryAction(child);
      }
    }
    else if (child.getType() == IActionElement.ACTION_TYPE.EXIT_ACTION) {
      if (parent.getExitActions() == null) {
        ExitActions entry = new ExitActions();
        entry.createNew(parent);
        parent.setExitActions(entry);
      }
      child.setElementParent(parent.getExitActions());
      if (index > 0) {
        parent.getExitActions().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.