pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Java paste-bin - collaborative debugging tool View Help


Posted by David on Thu 17th May 13:05
download | new post

  1. DataSyncPacket dsp = null;
  2.         String uid = null;
  3.         if (this.cdoInstance.getIdentifier() == null) {
  4.             System.out.println("Create new CDO.");
  5.             // New CDO make a "Create" packet.
  6.             uid = this.cdoPlugin.getCdoClient().getCDOCache().getNewUID(
  7.                     this.cdoInstance);
  8.             uid = uid.replaceAll(":", "");
  9.            
  10.             // Change any blank elements to spaces
  11.             // (to prevent XSmiles from removing the element when it reads the Instance)
  12.             String tempUUID = this.cdoInstance.getTypeIdentifier();
  13.             CDODLCollection dlColl = CDOClient.getInstance().getCDODLCollection();
  14.             CDODL dl = dlColl.getCDODLbyUUID(tempUUID);
  15.             javax.xml.namespace.QName rootName = new javax.xml.namespace.QName(dl.getNameSpace(), dl.getRootElement(), dl.getPrefix());
  16.             Document instanceXML = null;
  17.             try {
  18.                 instanceXML = InstanceUtils.toXML(this.cdoInstance, rootName);
  19.             } catch (ParserConfigurationException e2) {
  20.                 // TODO Auto-generated catch block
  21.                 e2.printStackTrace();
  22.             } catch (InvalidPropertyException e3) {
  23.                 System.out.println(e3.getProperty());
  24.                 System.out.println(e3.getSource());
  25.                 //org.mitre.cdo.cdolib.method.MethodConstants.walk()
  26.             }
  27.             fixEmptyLeaves(instanceXML, instanceXML);
  28.             try {
  29.                 this.cdoInstance = InstanceUtils.parseInstance(instanceXML.getDocumentElement());
  30.             } catch (SAXException e2) {
  31.                 // TODO Auto-generated catch block
  32.                 e2.printStackTrace();
  33.             }
  34.            
  35.             try {
  36.                 dsp = ConversionUtils.newCreatePacket(this.cdoInstance);
  37.             } catch (IllegalChildException e1) {
  38.                 e1.printStackTrace();
  39.  
  40.                 System.out.println("Parent "
  41.                         + e1.getParent().getClass().getName());
  42.                 System.out.println("Child "
  43.                         + e1.getChild().getClass().getName());
  44.  
  45.             }

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@
:
:
Remember my settings