Package org.springframework.ide.eclipse.webflow.ui.graph.commands

Examples of org.springframework.ide.eclipse.webflow.ui.graph.commands.CreateExceptionHandlerCommand


    }
    else if (getHost().getModel() instanceof IState
        && !(getHost().getModel() instanceof IWebflowState)
        && !(getHost().getModel() instanceof IInlineFlowState)
        && request.getNewObject() instanceof IExceptionHandler) {
      CreateExceptionHandlerCommand command = new CreateExceptionHandlerCommand();
      command.setParent((IState) getHost().getModel());
      command.setChild((IExceptionHandler) request.getNewObject());
      return command;
    }
    else if (getHost().getModel() instanceof ISubflowState
        && request.getNewObject() instanceof IAttributeMapper) {
      if (((ISubflowState) getHost().getModel()).getAttributeMapper() == null) {
        CreateAttributeMapperCommand command = new CreateAttributeMapperCommand();
        command.setParent((ISubflowState) getHost().getModel());
        return command;
      }
      else {
        return null;
      }
    }
    else if (getHost().getModel() instanceof IDecisionState
        && request.getNewObject() instanceof IIf) {
      CreateIfCommand command = new CreateIfCommand();
      command.setParent((IDecisionState) getHost().getModel());
      command.setChild((IIf) request.getNewObject());
      return command;
    }
    else {
      return null;
    }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.webflow.ui.graph.commands.CreateExceptionHandlerCommand

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.