Package org.springframework.ide.eclipse.webflow.core.model

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


  /* (non-Javadoc)
   * @see org.springframework.ide.eclipse.webflow.ui.graph.parts.AbstractStatePart#onGetModelChildren(java.util.List)
   */
  @SuppressWarnings("unchecked")
  protected void onGetModelChildren(List children) {
    IState state = (IState) getModel();
    if (state instanceof IActionState) {
      if (((IActionState) state).getActions() != null) {
        children.addAll(((IActionState) state).getActions());
      }
    }
View Full Code Here


  }

  public IState getStateFromParentState(String stateId) {
    if (!isVersion1() && stateId != null && stateId.contains("#")) {
      IStructuredModel model = null;
      IState state = null;
      int i = stateId.lastIndexOf('#');
      String parentFlowId = stateId.substring(0, i);
      String parentStateId = stateId.substring(i + 1);

      IWebflowProject project = Activator.getModel().getProject(
View Full Code Here

        model = null;
      }

      if (parent != null) {
        for (Object p : StringUtils.commaDelimitedListToSet(parent)) {
          IState state = null;

          IWebflowProject project = Activator.getModel().getProject(
              getRootElement().getElementResource().getProject());
          IWebflowConfig parentConfig = project.getConfig((String) p);
          try {
View Full Code Here

        context.error(state, "NO_FLOW_ATTRIBUTE",
            "Element 'subflow-state' requires unique '"
                + (context.isVersion1() ? "flow" : "subflow") + "' attribute");
      }
      else {
        IState parentState = context.getStateFromParentState(state.getAttribute(state
            .getNode(), "parent"));
        if (parentState == null
            || (parentState instanceof ISubflowState && !StringUtils
                .hasText(((ISubflowState) parentState).getFlow()))) {
          context.error(state, "NO_FLOW_ATTRIBUTE",
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.webflow.core.model.IState

Copyright © 2018 www.massapicom. 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.