/** * Add an entry to the report. * @param stack The path to the element to which the entry applies. * @param message The problem description. */ public void addEntry(Tuple stack, String message) { if(entries==null) // Use index map to keep insertion order for elements. this.entries = new MultiCollection(new IndexMap().getAsMap(), LinkedHashSet.class); if(!entries.getCollection(stack).contains(message)) entries.put(stack, message); }
public void actionPerformed(ActionEvent e) { stopEditing(paramtable); int row = paramtable.getRowCount(); String name = BasePropertyPanel.createFreeName("name", new MapContains(getMEventProperties().getAsMap())); MProperty prop = new MProperty(null, name, null); getMEvent().addProperty(prop); parametercache.put(name, prop); modelcontainer.setDirty(true); ((ParameterTableModel) paramtable.getModel()).fireTableRowsInserted(row, row); } };
Map<String, MProperty> ps = getBpmnTask().getProperties().getAsMap(); List<ParameterMetaInfo> params = (List<ParameterMetaInfo>)m.invoke(null, new Object[]{ps, modelcontainer, modelcontainer.getProjectClassLoader()}); pis.addAll(params);
Map<String, MProperty> ps = getBpmnTask().getProperties().getAsMap(); List<ParameterMetaInfo> params = (List<ParameterMetaInfo>)m.invoke(null, new Object[]{ps, modelcontainer, modelcontainer.getProjectClassLoader()}); pis.addAll(params);
/** * Get the encodable representation. */ public Map getEncodableRepresentation() { IndexMap representation = SCollection.createIndexMap();; representation.add("isencodeablepresentation", "true"); // to distinguish this map from normal maps. representation.add("class", "ComposedFilter"); representation.add("operator", operatorToString(operator)); representation.add("filters", SUtil.arrayToString(filters)); return representation.getAsMap(); } }
public void actionPerformed(ActionEvent e) { while (!parametercache.isEmpty()) { MProperty prop = parametercache.remove(0); getMEvent().removeProperty(prop); } Set<String> paramnames = MESSAGE_TYPE_MAPPING.get(getMessageTypeString()); for (String paramname : paramnames) { String name = BasePropertyPanel.createFreeName(paramname, new MapContains(getMEventProperties().getAsMap())); MProperty prop = new MProperty(null, name, null); getMEvent().addProperty(prop); parametercache.put(name, prop); } modelcontainer.setDirty(true); ((ParameterTableModel) paramtable.getModel()).fireTableStructureChanged(); } };
if (!newname.equals(prop.getName())) newname = createFreeName(newname, new MapContains(getMEventProperties().getAsMap())); parametercache.remove(rowIndex); getMEvent().removeProperty(prop.getName());
MultiCollection report = new MultiCollection(new IndexMap().getAsMap(), LinkedHashSet.class); user.put(CONTEXT_ENTRIES, report); user.put(SEQUENCE_EDGES, new HashMap<String, MSequenceEdge>());
MultiCollection<Tuple, String> report = new MultiCollection<Tuple, String>(new IndexMap().getAsMap(), LinkedHashSet.class); user.put(CONTEXT_ENTRIES, report); user.put(SEQUENCE_EDGES, new HashMap<String, MSequenceEdge>());
MultiCollection<Tuple, String> entries = new MultiCollection<Tuple, String>(new IndexMap().getAsMap(), LinkedHashSet.class); context.put(CONTEXT_ENTRIES, entries); Map<String, String> externals = new HashMap<String, String>();
MultiCollection entries = new MultiCollection(new IndexMap().getAsMap(), LinkedHashSet.class); ModelInfo mi = null; Object handle = null;
MultiCollection report = new MultiCollection(new IndexMap().getAsMap(), LinkedHashSet.class); user.put(CONTEXT_ENTRIES, report); ModelInfo mi = (ModelInfo)reader.read(manager, handler, rinfo.getInputStream(), classloader, user);