Package org.enhydra.shark.utilities

Examples of org.enhydra.shark.utilities.SequencedHashMap


            return choices;
        }

        if (cbutton.getChoiceType() == Participant.class) {
            WorkflowProcess wp = selectedGraph.getWorkflowProcess();
            SequencedHashMap choiceMap = XMLUtil.getPossibleParticipants(wp, JaWEManager.getInstance().getXPDLHandler());

            //CUSTOM
            if (!JaWE.BASIC_MODE) {
                choiceMap.put(FreeTextExpressionParticipant.getInstance().getName(), FreeTextExpressionParticipant.getInstance());
            }
            //END CUSTOM

            List toRemove = selectedGraph.getGraphManager().getDisplayedParticipants();

            Iterator it = choiceMap.entrySet().iterator();
            while (it.hasNext()) {
                Map.Entry me = (Map.Entry) it.next();
                if (toRemove.contains(me.getValue())) {
                    it.remove();
                }
            }

            choices.addAll(choiceMap.values());
        } else if (cbutton.getChoiceType() == ActivitySet.class) {
            WorkflowProcess wp = selectedGraph.getWorkflowProcess();
            choices = wp.getActivitySets().toElements();
        }
View Full Code Here


    }

    public void makeAs(XMLElement el) {
        super.makeAs(el);
        this.namespaces.makeAs(((Package) el).namespaces);
        extPkgRefsToIds = new SequencedHashMap(((Package) el).extPkgRefsToIds);
        this.isTransient = ((Package) el).isTransient;
    }
View Full Code Here

    public Object clone() {
        Package d = (Package) super.clone();
        d.namespaces = (Namespaces) this.namespaces.clone();
        d.namespaces.setParent(d);
        d.extPkgRefsToIds = new SequencedHashMap(extPkgRefsToIds);
        d.isTransient = isTransient;
        d.clearCaches();
        if (d.isReadOnly) {
            d.initCaches();
        }
View Full Code Here

   }

   public String getTooltip(Activity el) {
      // CUSTOM: hide unused fields
      LabelGenerator lg = JaWEManager.getInstance().getLabelGenerator();
      Map toDisplay = new SequencedHashMap();
      putKeyValue(toDisplay, el.get("Id"));
      putKeyValue(toDisplay, el.get("Name"));
//      putKeyValue(toDisplay, el.get("Description"));
//      putKeyValue(toDisplay, el.get("Performer"));
//      putKeyValue(toDisplay, el.getStartMode());
//      putKeyValue(toDisplay, el.getFinishMode());
//      putKeyValue(toDisplay, el.get("Priority"));
      putKeyValue(toDisplay, el.get("Limit"));
      if (el.getTransitionRestrictions().size() > 0) {
         TransitionRestriction tr = (TransitionRestriction) el.getTransitionRestrictions().get(0);
         putKeyValue(toDisplay, tr.getJoin());
         putKeyValue(toDisplay, tr.getSplit());
      } else {
         toDisplay.put(lg.getLabel(new Join(null)), "");
         toDisplay.put(lg.getLabel(new Split(null)), "");
      }
      fillTypePartOfTooltip(el, toDisplay);
      return makeTooltip(toDisplay);
      // END CUSTOM
   }
View Full Code Here

   public String getTooltip(No el) {
      return generateStandardTooltip(el);
   }

   public String getTooltip(org.enhydra.shark.xpdl.elements.Package el) {
      Map toDisplay = new SequencedHashMap();
      putKeyValue(toDisplay, el.get("Id"));
      putKeyValue(toDisplay, el.get("Name"));
      putKeyValue(toDisplay, el.getPackageHeader().get("Description"));
      return makeTooltip(toDisplay);
   }
View Full Code Here

   public String getTooltip(PackageHeader el) {
      return generateStandardTooltip(el);
   }

   public String getTooltip(Participant el) {
      Map toDisplay = new SequencedHashMap();
      putKeyValue(toDisplay, el.get("Id"));
      putKeyValue(toDisplay, el.get("Name"));
      putKeyValue(toDisplay, el.getParticipantType());
//      putKeyValue(toDisplay, el.get("Description"));
      return makeTooltip(toDisplay);
View Full Code Here

      return generateStandardTooltip(el);
   }

   public String getTooltip(Transition el) {
      LabelGenerator lg = JaWEManager.getInstance().getLabelGenerator();
      Map toDisplay = new SequencedHashMap();
      putKeyValue(toDisplay, el.get("Id"));
      putKeyValue(toDisplay, el.get("Name"));
      putKeyValue(toDisplay, el.get("Description"));
      putKeyValue(toDisplay, el.get("From"));
      putKeyValue(toDisplay, el.get("To"));
      putKeyValue(toDisplay, el.getCondition().getTypeAttribute());
      toDisplay.put(lg.getLabel(el.getCondition()), el.getCondition().toValue());
      return makeTooltip(toDisplay);
   }
View Full Code Here

   public String getTooltip(WaitingTime el) {
      return generateStandardTooltip(el);
   }

   public String getTooltip(WorkflowProcess el) {
      Map toDisplay = new SequencedHashMap();
      putKeyValue(toDisplay, el.get("Id"));
      putKeyValue(toDisplay, el.get("Name"));
      putKeyValue(toDisplay, el.get("AccessLevel"));
      putKeyValue(toDisplay, el.getProcessHeader().get("Description"));
      return makeTooltip(toDisplay);
View Full Code Here

            }
        }
        List l = new ArrayList(m.values());
        Collections.sort(l);

        configInfo = new SequencedHashMap();
        for (int i = 0; i < l.size(); i++) {
            String cfgName = (String) l.get(i);
            configInfo.put(getConfigId(m, cfgName), cfgName);
        }
    }
View Full Code Here

    public XMLPanel getPanel(ActivityTypes el) {
        return generateStandardPanel(el);
    }

    public XMLPanel getPanel(ActualParameter el) {
        SequencedHashMap choices = XMLUtil.getPossibleVariables(XMLUtil.getWorkflowProcess(el));
        Object choosen = choices.get(el.toValue());
        if (choosen == null) {
            if (!el.toValue().equals("")) {
                choosen = el.toValue();
            }
        }
        SpecialChoiceElement cc = new SpecialChoiceElement(el,
                "",
                new ArrayList(choices.values()),
                choosen,
                true,
                "Id",
                el.toName(),
                el.isRequired());
View Full Code Here

TOP

Related Classes of org.enhydra.shark.utilities.SequencedHashMap

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.