Copyright (c) 2000, 2008 IBM Corporation and others. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0 Contributors: IBM Corporation - initial API and implementation
/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/
package org.eclipse.ltk.core.refactoring.participants; import java.util.HashMap; import java.util.Map; import org.eclipse.ltk.internal.core.refactoring.ParticipantDescriptor;
An opaque list to manage sharable participants.

The list is managed by the refactoring itself. Clients typically only pass the list to the corresponding method defined in ParticipantManager

Note: this class is not intended to be extended or instantiated by clients.

See Also:
Since:3.0
@noinstantiateThis class is not intended to be instantiated by clients.
@noextendThis class is not intended to be subclassed by clients.
/** * An opaque list to manage sharable participants. * <p> * The list is managed by the refactoring itself. Clients typically * only pass the list to the corresponding method defined in * {@link org.eclipse.ltk.core.refactoring.participants.ParticipantManager} * </p> * <p> * Note: this class is not intended to be extended or instantiated by clients. * </p> * * @see ISharableParticipant * @see org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring * @see org.eclipse.ltk.core.refactoring.participants.ParticipantManager * * @since 3.0 * * @noinstantiate This class is not intended to be instantiated by clients. * @noextend This class is not intended to be subclassed by clients. */
public class SharableParticipants { private Map<ParticipantDescriptor, RefactoringParticipant> fMap= new HashMap<>(); /* package */ void put(ParticipantDescriptor descriptor, RefactoringParticipant participant) { fMap.put(descriptor, participant); } /* package */ RefactoringParticipant get(ParticipantDescriptor descriptor) { return fMap.get(descriptor); } }