1 /*******************************************************************************2 * Copyright (c) 2006 IBM Corporation and others.3 * All rights reserved. This program and the accompanying materials4 * are made available under the terms of the Eclipse Public License v1.05 * which accompanies this distribution, and is available at6 * http://www.eclipse.org/legal/epl-v10.html7 *8 * Contributors:9 * IBM Corporation - initial API and implementation10 *******************************************************************************/11 package org.eclipse.ui.internal.texteditor.spelling;12 13 import org.eclipse.swt.graphics.Image;14 import org.eclipse.swt.graphics.Point;15 16 import org.eclipse.jface.text.IDocument;17 import org.eclipse.jface.text.contentassist.ICompletionProposal;18 import org.eclipse.jface.text.contentassist.IContextInformation;19 20 /**21 * Proposal telling that there are no proposals available.22 * <p>23 * Applying this proposal does nothing.24 * </p>25 * 26 * @since 3.327 */28 public final class NoCompletionsProposal implements ICompletionProposal {29 30 /*31 * @see org.eclipse.jface.text.contentassist.ICompletionProposal#apply(org.eclipse.jface.text.IDocument)32 */33 public void apply(IDocument document) {34 // do nothing35 }36 37 /*38 * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getAdditionalProposalInfo()39 */40 public String getAdditionalProposalInfo() {41 return null;42 }43 44 /*45 * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getContextInformation()46 */47 public IContextInformation getContextInformation() {48 return null;49 }50 51 /*52 * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getDisplayString()53 */54 public String getDisplayString() {55 return SpellingMessages.NoCompletionsProposal_displayString;56 }57 58 /*59 * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getImage()60 */61 public Image getImage() {62 return null;63 }64 65 /*66 * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getSelection(org.eclipse.jface.text.IDocument)67 */68 public Point getSelection(IDocument document) {69 return null;70 }71 72 }73