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

Examples of org.springframework.ide.eclipse.webflow.ui.graph.actions.EditPropertiesAction


        IEditorPart editor = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getActivePage()
            .getActiveEditor();
        ActionRegistry actionRegistry = (ActionRegistry) editor
            .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


    action = new SetAsStartStateAction(this);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());

    action = new EditPropertiesAction(this);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());

    action = new ExportAction(this);
    registry.registerAction(action);
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.webflow.ui.graph.actions.EditPropertiesAction

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.