1 11 package org.eclipse.ltk.core.refactoring.participants; 12 13 import java.util.HashMap ; 14 import java.util.Map ; 15 16 import org.eclipse.ltk.internal.core.refactoring.ParticipantDescriptor; 17 18 35 public class SharableParticipants { 36 37 private Map fMap= new HashMap (); 38 39 void put(ParticipantDescriptor descriptor, RefactoringParticipant participant) { 40 fMap.put(descriptor, participant); 41 } 42 RefactoringParticipant get(ParticipantDescriptor descriptor) { 43 return (RefactoringParticipant)fMap.get(descriptor); 44 } 45 } 46 | Popular Tags |