Package org.cishell.reference.gui.workflow.views

Examples of org.cishell.reference.gui.workflow.views.WorkflowGUI


  public void createPartControl(Composite parent) {
    this.viewer = new TreeViewer(parent);
    this.viewer.setContentProvider(new DataTreeContentProvider());
    this.viewer.setLabelProvider(new DataTreeLabelProvider());

    this.rootItem = new WorkflowGUI(null, null, 2, this.brandPluginID);
    this.viewer.setInput(this.rootItem);
    this.viewer.expandAll();
    this.tree = this.viewer.getTree();
    this.tree.addSelectionListener(new DatamodelSelectionListener());
    this.tree.addMouseListener(new ContextMenuListener());
View Full Code Here


  }

  public void addNewWorkflow(String name) {
    Workflow workfFlow = WorkflowManager.getInstance().createWorkflow(name,
        Constant.NormalWorkflow);
    final WorkflowGUI dataItem = new WorkflowGUI(workfFlow,
        this.currentWorkFlowItem, 1, this.brandPluginID);
    this.currentWorkFlowItem = dataItem;
    this.currentParentItem = dataItem;
    this.rootItem.addChild(dataItem);
    refresh(dataItem);
View Full Code Here

      if (items.length != 1)
        return;
      WorkflowTreeItem itm = (WorkflowTreeItem) items[0].getData();
      String type = itm.getType();
      if (type == Constant.Workflow) {
        WorkflowGUI wfGUI = (WorkflowGUI) itm;

        WorkflowMaker savedState = new WorkflowMaker();
        savedState.save(wfGUI.getWorkflow());
      }
    }
View Full Code Here

        if (items.length != 1)
          return;
        WorkflowTreeItem itm = (WorkflowTreeItem) items[0].getData();
        String type = itm.getType();
        if (type == Constant.Workflow) {
          WorkflowGUI wfGUI = (WorkflowGUI) itm;
          WorkflowManager.getInstance().removeWorkflow(
              wfGUI.getWorkflow());// model
          itm.removeAllChildren();// GUI
          rootItem.removeChild(wfGUI);// GUI
          WorkflowView.this.viewer.refresh();
          if (WorkflowView.this.rootItem.getRootsChildren().length == 0
              || WorkflowView.this.currentWorkFlowItem == wfGUI) {
View Full Code Here

TOP

Related Classes of org.cishell.reference.gui.workflow.views.WorkflowGUI

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.