Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2009, 2010 EclipseSource 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: EclipseSource - initial API and implementation Sonatype, Inc. - transport split /
package org.eclipse.equinox.internal.p2.updatesite;
This action parses a category file and publishes all the categories whose elements are contained in the publisher results.
public class CategoryXMLAction extends SiteXMLAction {
	public CategoryXMLAction(URI locationString categoryQualifier) {
		super(locationcategoryQualifier);
	}
	public IStatus perform(IPublisherInfo publisherInfoIPublisherResult resultsIProgressMonitor monitor) {
		try {
			 = UpdateSite.loadCategoryFile(getTransport(publisherInfo), monitor);
catch (ProvisionException e) {
		}
		if ( == null)
		return super.perform(publisherInforesultsmonitor);
	}
New to GrepCode? Check out our FAQ X