<commit_before>package net.sf.taverna.t2.servicedescriptions;

import java.util.Collection;

/**
 * A provider of service descriptions
 * 
 * @author <NAME>
 * 
 */
public interface ServiceDescriptionProvider {

	/**
	 * Get all service descriptions.
	 * 
	 * @param callBack
	 */
	@SuppressWarnings("unchecked")
	public void findServiceDescriptionsAsync(
			FindServiceDescriptionsCallBack callBack);

	/**
	 * 
	 * @author stain
	 * 
	 */
	public interface FindServiceDescriptionsCallBack {

		@SuppressWarnings("unchecked")
		public void partialResults(
				Collection<? extends ServiceDescription> serviceDescriptions);

		public void status(String message);
		
		public void warning(String message);

		public void finished();

		public void fail(String message, Throwable ex);
	}

	/**
	 * Name of this service description provider, for instance "BioCatalogue" or
	 * "WSDL". This name is typically used in a "Add service..." menu.
	 * 
	 * @return Name of provider
	 */
	public String getName();

}<commit_msg>icon ... in the menu avoid massive button<commit_after>package net.sf.taverna.t2.servicedescriptions;

import java.util.Collection;

import javax.swing.Icon;

import net.sf.taverna.t2.lang.beans.PropertyAnnotation;

/**
 * A provider of service descriptions
 * 
 * @author <NAME>
 * 
 */
public interface ServiceDescriptionProvider {

	/**
	 * Get all service descriptions.
	 * 
	 * @param callBack
	 */
	@SuppressWarnings("unchecked")
	public void findServiceDescriptionsAsync(
			FindServiceDescriptionsCallBack callBack);

	/**
	 * 
	 * @author stain
	 * 
	 */
	public interface FindServiceDescriptionsCallBack {

		@SuppressWarnings("unchecked")
		public void partialResults(
				Collection<? extends ServiceDescription> serviceDescriptions);

		public void status(String message);
		
		public void warning(String message);

		public void finished();

		public void fail(String message, Throwable ex);
	}

	/**
	 * Name of this service description provider, for instance "BioCatalogue" or
	 * "WSDL". This name is typically used in a "Add service..." menu.
	 * 
	 * @return Name of provider
	 */
	public String getName();
	
	@PropertyAnnotation(expert = true)
	public abstract Icon getIcon();

}
{'fraction_non_alphanumeric': 0.10198555956678701, 'fraction_numerical': 0.0013537906137184115, 'mean_word_length': 3.9486607142857144, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '539829', 'n_tokens_mistral': 677, 'n_tokens_neox': 597, 'n_words': 184}