1 /******************************************************************************* 2 * Copyright (c) 2004, 2005 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM - Initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.core.internal.utils; 12 13 /** 14 * A string pool participant is used for sharing strings between several 15 * unrelated parties. Typically a single <code>StringPool</code> instance 16 * will be created, and a group of participants will be asked to store their 17 * strings in the pool. This allows participants to share equal strings 18 * without creating explicit dependencies between each other. 19 * <p> 20 * Clients may implement this interface. 21 * </p> 22 * 23 * @see StringPool 24 * @since 3.1 25 */ 26 public interface IStringPoolParticipant { 27 /** 28 * Instructs this participant to share its strings in the provided 29 * pool. 30 */ 31 public void shareStrings(StringPool pool); 32 } 33