1 /******************************************************************************* 2 * Copyright (c) 2005, 2006 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 Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.jface.text.contentassist; 12 13 /** 14 * Describes the state that the content assistant is in when completing proposals. 15 * <p> 16 * Clients may use this class. 17 * </p> 18 * 19 * @since 3.2 20 * @see ICompletionListener 21 */ 22 public final class ContentAssistEvent { 23 /** 24 * Creates a new event. 25 * 26 * @param ca the assistant 27 * @param proc the processor 28 */ 29 ContentAssistEvent(IContentAssistant ca, IContentAssistProcessor proc) { 30 assistant= ca; 31 processor= proc; 32 } 33 34 /** 35 * The content assistant computing proposals. 36 */ 37 public final IContentAssistant assistant; 38 /** 39 * The processor for the current partition. 40 */ 41 public final IContentAssistProcessor processor; 42 }