Examples of EditPropertiesCommand


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

   *
   * @return
   */
  @SuppressWarnings("unchecked")
  protected Command getEditPropertiesCommand() {
    EditPropertiesCommand command = new EditPropertiesCommand();
    command
        .setChild((ICloneableModelElement<IWebflowModelElement>) getHost()
            .getModel());
    return command;
  }
View Full Code Here

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

            .getAdapter(ActionRegistry.class);
        EditPropertiesAction action = (EditPropertiesAction) actionRegistry
            .getAction(EditPropertiesAction.EDITPROPERTIES);
        action.setOpenDialog(true);
       
        EditPropertiesCommand command = new EditPropertiesCommand();

        IWebflowModelElement clone = null;

        if (state instanceof ICloneableModelElement) {
          clone = ((ICloneableModelElement) state)
              .cloneModelElement();
        }

        command.setChild(
            (ICloneableModelElement<IWebflowModelElement>) state,
            clone);
        if (action != null) {
          action.runWithCommand(command);
        }
View Full Code Here

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

   *
   * @return
   */
  @SuppressWarnings("unchecked")
  protected Command getEditPropertiesCommand() {
    EditPropertiesCommand command = new EditPropertiesCommand();
    command
        .setChild((ICloneableModelElement<IWebflowModelElement>) getHost()
            .getModel());
    return command;
  }
View Full Code Here

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

  public void run() {
    CompoundCommand cc = getCommand();

    for (int i = 0; i < cc.getCommands().size(); i++) {
      if (cc.getCommands().get(i) instanceof EditPropertiesCommand) {
        EditPropertiesCommand command = (EditPropertiesCommand) cc
            .getCommands().get(i);
        this.openDialog = true;
        runWithCommand(command);
      }
    }
View Full Code Here

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

  /**
   * @param command
   */
  public void runWithCommand(Command cc) {
    int result = -1;
    EditPropertiesCommand command = (EditPropertiesCommand) cc;
    IWebflowModelElement child = command.getChild();
    IWebflowModelElement newChild = command.getChildClone();

    if (openDialog) {
      if (((IWebflowModelElement) child).getElementParent() instanceof IWebflowModelElement) {
        result = DialogUtils.openPropertiesDialog(
            (IWebflowModelElement)((IWebflowModelElement) child).getElementParent(),
View Full Code Here

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

  /**
   * @return
   */
  @SuppressWarnings("unchecked")
  protected Command getEditPropertiesCommand() {
    EditPropertiesCommand command = new EditPropertiesCommand();
    if (getHost().getModel() instanceof IAttributeMapper) {
      command
          .setChild((ICloneableModelElement<IWebflowModelElement>) ((IAttributeMapper) getHost()
              .getModel()).getElementParent());
    }
    else {
      command
          .setChild((ICloneableModelElement<IWebflowModelElement>) getHost()
              .getModel());
    }
    return command;
  }
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.