Package net.sourceforge.processdash.hier

Examples of net.sourceforge.processdash.hier.DashHierarchy$Event


    private static void loadProcessTemplate(DashHierarchy templates,
                                            InputStream in, boolean close)
        throws IOException
    {
        DashHierarchy template = new DashHierarchy(null);
        template.load(in, close);
        createScriptMaps(template);

        templates.putAll(template);
    }
View Full Code Here


        AutoData.registerTemplates(root, data);

        createScriptMaps(root);

        try {
            DashHierarchy template = new DashHierarchy(null);
            template.loadXMLTemplate(root);
            template.premove(PropertyKey.ROOT);
            createScriptMaps(template);
            templates.putAll(template);
        } catch (SAXException se) {
            // Can this happen?
        }
View Full Code Here

        frame.dispose();
    }


    private void importDefects(List defects) {
        DashHierarchy hier = dashboardContext.getHierarchy();
        PropertyKey defectLogKey = hier.findExistingKey(defectLogPath);
        ProcessDashboard dashboard = (ProcessDashboard) dashboardContext;
        String filename = hier.pget(defectLogKey).getDefectLog();
        if (!StringUtils.hasValue(filename)) {
            AbortImport.showError("Hierarchy_Changed", selectedPath);
            return;
        }
        DefectLog defectLog = new DefectLog(
View Full Code Here

    JMenuBar menuBar = constructMenuBar();
    JPanel   panel   = new JPanel(true);

    this.templates = templates;
    readProps      = props;
    useProps       = new DashHierarchy (props.dataPath);
    revertProperties ();
    updateTemplateMenu (null, null);

    frame.setTitle(resource.getString("HierarchyEditor"));
    DashboardIconFactory.setWindowIcon(frame);
View Full Code Here

    // FIXME_TIMELOG: dashboard.releaseTimeLogEntry(null);
    // if the user is running their timer while they perform
    // renaming operations below, could bad things happen?

    oldProps = new DashHierarchy(useProps.dataPath);
    oldProps.copy(readProps);
    readProps.copy (useProps);
    setDirty (false);

    int tasksToPerform = 1;
View Full Code Here

        if (prefix == null) return null;
       
        try {
            ListData hierItem = (ListData) context
                    .get(DashHierarchy.DATA_REPOSITORY_NAME);
            DashHierarchy hier = (DashHierarchy) hierItem.get(0);
           
            PropertyKey key = hier.findExistingKey(prefix);
            if (key == null) return null;
           
            ListData result = new ListData();
            collect(result, hier, key);
            return result;
View Full Code Here

        if (prefix == null) return null;
       
        try {
            ListData hierItem = (ListData) context
                    .get(DashHierarchy.DATA_REPOSITORY_NAME);
            DashHierarchy hier = (DashHierarchy) hierItem.get(0);
           
            PropertyKey key = hier.findExistingKey(prefix);
            if (key == null) return null;
           
            ListData result = new ListData();
            for (int i = 0;  i < hier.getNumChildren(key);  i++) {
                PropertyKey child = hier.getChildKey(key, i);
                result.add(child.path());
            }
            return result;
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.EVENT: {
            Event event = (Event) theEObject;
            T result = caseEvent(event);
            if (result == null)
                result = caseFlowNode(event);
            if (result == null)
                result = caseInteractionNode(event);
View Full Code Here

    ProcessInstanceEntity processInstanceImpl = processInstanceManager.findProcessInstanceById(processInstanceId, processDefinition);
    TokenEntity tokenEntity = processInstanceImpl.getTokenMap().get(tokenId);
    processInstanceImpl.getContextInstance().setTransientVariableMap(transientVariables);
   
    if(nodeId==null){
      Event event=(Event)tokenEntity.getFlowNode();
      if(event instanceof BoundaryEvent){
        BoundaryEvent boundaryEvent=(BoundaryEvent)event;
        Activity activity =boundaryEvent.getAttachedToRef();
        boolean isCancelActivity=boundaryEvent.isCancelActivity();
        if(isCancelActivity){
View Full Code Here

    return bo != null && bo instanceof Event;
  }

  @Override
  public Object[] create(ICreateContext context) {
    Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());
    EventWithDefinitions event = support.create(e);
    EventDefinition definition = createEventDefinition(context);
    event.getEventDefinitions().add(definition);
    addGraphicalRepresentation(context, definition);
    return new Object[] { definition };
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.hier.DashHierarchy$Event

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.