[jbosstools-commits] JBoss Tools SVN: r24043 - trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/util.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Aug 11 09:05:49 EDT 2010


Author: bbrodt
Date: 2010-08-11 09:05:48 -0400 (Wed, 11 Aug 2010)
New Revision: 24043

Modified:
   trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/util/BPELEditorUtil.java
Log:
https://jira.jboss.org/browse/JBIDE-6475
Removed commented code

Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/util/BPELEditorUtil.java
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/util/BPELEditorUtil.java	2010-08-11 12:53:45 UTC (rev 24042)
+++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/util/BPELEditorUtil.java	2010-08-11 13:05:48 UTC (rev 24043)
@@ -170,67 +170,4 @@
   	
   	return childList;
   }
-  
-  /*public static String getTargetNamespaceURIForSchema(String uri)
-  {
-    String result = null;
-    try
-    {             
-      URL url = new URL(uri);
-      InputStream inputStream = url.openStream();
-      result = WSDLEditorUtil.getTargetNamespaceURIForSchema(inputStream); 
-    }
-    catch (Exception e)
-    {      
-    }  
-    return result;
-  }*/
-
-  /*public static String getTargetNamespaceURIForSchema(InputStream input)
-  {  
-    TargetNamespaceURIContentHandler handler = new TargetNamespaceURIContentHandler();                                                                  
-    ClassLoader prevClassLoader = Thread.currentThread().getContextClassLoader();
-    Thread.currentThread().setContextClassLoader(WSDLEditorUtil.class.getClassLoader());
-    // Line below is a hack to get XMLReader working
-    TransformerFactory transformerFactory = TransformerFactory.newInstance();
-    try
-    {
-    	XMLReader reader = org.xml.sax.helpers.XMLReaderFactory.createXMLReader();
-    	reader.setContentHandler(handler);
-    	reader.parse(new InputSource(input));
-    }
-    catch (Exception e)
-    {      
-    }
-    finally
-    {
-      Thread.currentThread().setContextClassLoader(prevClassLoader);
-    }
-    return handler.targetNamespaceURI;
-  } */ 
-
-  /*protected static class TargetNamespaceURIContentHandler extends DefaultHandler
-  {       
-    public String targetNamespaceURI;
-
-    public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
-    {            
-      if (localName.equals("schema") || localName.equals("definitions")) //$NON-NLS-1$ //$NON-NLS-2$
-      {               
-        int nAttributes = attributes.getLength();
-        for (int i = 0; i < nAttributes; i++)
-        {
-          if (attributes.getLocalName(i).equals("targetNamespace")) //$NON-NLS-1$
-          {
-            targetNamespaceURI = attributes.getValue(i);
-            break;
-          }
-        }
-      }                                    
-      // todo there's a ice way to do this I'm sure    
-      // here I intentially cause an exception... 
-      String x = null;
-      x.length();
-    }
-  }*/
 }



More information about the jbosstools-commits mailing list