[jboss-cvs] jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/model ...

Robert Stryker rawblem at gmail.com
Mon Jul 31 15:43:45 EDT 2006


  User: rawb    
  Date: 06/07/31 15:43:45

  Modified:    as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/model 
                        DescriptorModel.java
  Log:
  Added first revision of an xml editor for *-service.xml files. 
  Also added jboss header to several source files. 
  
  Revision  Changes    Path
  1.5       +8 -4      jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/model/DescriptorModel.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: DescriptorModel.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/model/DescriptorModel.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- DescriptorModel.java	27 Jul 2006 06:34:03 -0000	1.4
  +++ DescriptorModel.java	31 Jul 2006 19:43:45 -0000	1.5
  @@ -216,9 +216,13 @@
   		 * @return A list of DefaultElements
   		 */
   		public List getXPathFromFile(String path, String xpath) {
  +			try {
   			Document d = getDocument(path);
   			if( d == null ) return new ArrayList();
   			return d.selectNodes(xpath);
  +			} catch( Exception e ) {
  +				return new ArrayList();
  +			}
   		}
   		
   		/**
  @@ -254,7 +258,7 @@
   				if( !filter || !isIgnoredDirectory(new File(p))) {
   					tmp = getXPathFromFile(p, xpath);
   					if( tmp.size() > 0 ) { 
  -						if( attributeName == null ) {
  +						if( attributeName == null || attributeName.equals("")) {
   							newItem = new XPathTreeItem(null, new File(p), tmp); 
   						} else {
   							newItem = new XPathTreeItem(null, new File(p), tmp, attributeName);
  
  
  



More information about the jboss-cvs-commits mailing list