Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2005 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.team.internal.ccvs.ui.repo;
	private Vector comments;
	}

See also:
ContentHandler#characters(char[] , int , int )
	public void characters(char[] charsint startIndexint length) {
		if ( == nullreturn;
		.append(charsstartIndexlength);
	}

See also:
ContentHandler#startElement(java.lang.String , java.lang.String , java.lang.String , org.xml.sax.Attributes )
	public void startElement(
			String namespaceURI,
			String localName,
			String qName,
			Attributes atts) {
		String elementName = getElementName(localNameqName);
			 = new StringBuffer();
			return;
			 = new Vector();
			return;
		}
	}

	public void endElement(String namespaceURIString localNameString qName) {
		String elementName = getElementName(localNameqName);
			 = null;
			return;
			return;
	}
	/*
	 * Couldn't figure out from the SAX API exactly when localName vs. qName is used.
	 * However, the XML for project sets doesn't use namespaces so either of the two names
	 * is fine. Therefore, use whichever one is provided.
	 */
	private String getElementName(String localNameString qName) {
		if (localName != null && localName.length() > 0) {
			return localName;
		}
		return qName;
	}
New to GrepCode? Check out our FAQ X