| /** |
| * <copyright> |
| * |
| * Copyright (c) 2010 E.D.Willink and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * E.D.Willink - initial API and implementation |
| * |
| * </copyright> |
| * |
| * $Id: OCLinEcoreProposalProvider.java,v 1.1 2010/04/13 06:47:03 ewillink Exp $ |
| */ |
| package org.eclipse.ocl.examples.xtext.oclinecore.ui.contentassist; |
| |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.ocl.examples.xtext.oclinecore.ui.contentassist.AbstractOCLinEcoreProposalProvider; |
| import org.eclipse.xtext.RuleCall; |
| import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; |
| import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; |
| /** |
| * see http://www.eclipse.org/Xtext/documentation/latest/xtext.html#contentAssist on how to customize content assistant |
| */ |
| public class OCLinEcoreProposalProvider extends AbstractOCLinEcoreProposalProvider |
| { |
| @Override |
| public void complete_PrimitiveTypeIdentifier(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { |
| proposeKeywordAlternatives(ruleCall, context, acceptor, getPrimitiveTypeImage()); |
| } |
| } |