# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: uml/core/src/org/netbeans/modules/uml/core/coreapplication/CoreProductManager.java --- /home/radim/devel/nb/nb-all/uml/core/src/org/netbeans/modules/uml/core/coreapplication/CoreProductManager.java Base (1.2) +++ /home/radim/devel/nb/nb-all/uml/core/src/org/netbeans/modules/uml/core/coreapplication/CoreProductManager.java Locally Modified (Based On 1.2) @@ -35,7 +35,7 @@ /// process ID, product //typedef std::map < long, CComPtr < ICoreProduct > > ProductMap; // Here's a map of the products and their process id's - private Hashtable < String, ICoreProduct > m_CoreProducts = new Hashtable < String, ICoreProduct >(); + private Hashtable < Integer, ICoreProduct > m_CoreProducts = new Hashtable < Integer, ICoreProduct >(); // Here's the revoke number private long m_RevokeNum = 0; @@ -141,7 +141,7 @@ */ public ICoreProduct getCoreProduct(int nPID) { - ICoreProduct retVal = m_CoreProducts.get(Integer.toString(nPID)); + ICoreProduct retVal = m_CoreProducts.get(nPID); if (retVal == null) { if (!m_CoreProducts.isEmpty()) @@ -173,7 +173,7 @@ */ public void setCoreProduct(int nPID, ICoreProduct value) { - ICoreProduct prod = m_CoreProducts.get(Integer.toString(nPID)); + ICoreProduct prod = m_CoreProducts.get(nPID); if (prod != null) { // If there is already a product registered for this @@ -184,11 +184,11 @@ if (value == null) { - m_CoreProducts.remove(Integer.toString(nPID)); + m_CoreProducts.remove(nPID); } else { - m_CoreProducts.put(Integer.toString(nPID), value); + m_CoreProducts.put(nPID, value); } } @@ -207,18 +207,18 @@ ETList descList = new ETArrayList(); if (m_CoreProducts != null && m_CoreProducts.size() > 0) { - Enumeration enumVal = m_CoreProducts.keys(); + Enumeration enumVal = m_CoreProducts.keys(); int count = m_CoreProducts.size(); descs = new ProductDescriptor[count]; int i=0; while (enumVal.hasMoreElements()) { IProductDescriptor desc = new ProductDescriptor(); - String obj = (String)enumVal.nextElement(); + Integer obj = enumVal.nextElement(); if (obj != null) { ICoreProduct prod = m_CoreProducts.get(obj); - desc.setProcessID(Integer.parseInt(obj)); + desc.setProcessID(obj); desc.setCoreProduct(prod); descList.add(i,desc); i++;