diff options
author | rschnekenbu | 2010-07-23 13:35:12 +0000 |
---|---|---|
committer | rschnekenbu | 2010-07-23 13:35:12 +0000 |
commit | a8c658f4e821ca24bdc083a9a2016042bc71295d (patch) | |
tree | d42750fc0d2c00c49ed3fecc52db0995143e21e8 /plugins/core/org.eclipse.xtext.gmf.glue/src/org/eclipse/xtext/gmf/glue/partialEditing/PartialContentAssistContextFactory.java | |
parent | f27e36dcf7b8efa4d1f084de5722f7b6d6211fef (diff) | |
download | org.eclipse.papyrus-a8c658f4e821ca24bdc083a9a2016042bc71295d.tar.gz org.eclipse.papyrus-a8c658f4e821ca24bdc083a9a2016042bc71295d.tar.xz org.eclipse.papyrus-a8c658f4e821ca24bdc083a9a2016042bc71295d.zip |
Updated the xtext editors not to have an intermediate file for the editing.
Diffstat (limited to 'plugins/core/org.eclipse.xtext.gmf.glue/src/org/eclipse/xtext/gmf/glue/partialEditing/PartialContentAssistContextFactory.java')
-rw-r--r-- | plugins/core/org.eclipse.xtext.gmf.glue/src/org/eclipse/xtext/gmf/glue/partialEditing/PartialContentAssistContextFactory.java | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/plugins/core/org.eclipse.xtext.gmf.glue/src/org/eclipse/xtext/gmf/glue/partialEditing/PartialContentAssistContextFactory.java b/plugins/core/org.eclipse.xtext.gmf.glue/src/org/eclipse/xtext/gmf/glue/partialEditing/PartialContentAssistContextFactory.java new file mode 100644 index 00000000000..b2368590ca0 --- /dev/null +++ b/plugins/core/org.eclipse.xtext.gmf.glue/src/org/eclipse/xtext/gmf/glue/partialEditing/PartialContentAssistContextFactory.java @@ -0,0 +1,37 @@ +/******************************************************************************* + * Copyright (c) 2010 itemis AG (http://www.itemis.eu) 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 + *******************************************************************************/ +package org.eclipse.xtext.gmf.glue.partialEditing; + +import org.eclipse.xtext.AbstractRule; +import org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory; + +import com.google.inject.Inject; + +/** + * @author Sebastian Zarnekow - Initial contribution and API + */ +public class PartialContentAssistContextFactory extends ParserBasedContentAssistContextFactory { + + /** + * @param partialContentAssistParser + * + */ + @Inject + public void setPartialParser(IPartialContentAssistParser partialContentAssistParser) { + super.setParser(partialContentAssistParser); + } + + /** + * @param rule + * + */ + public void initializeFor(AbstractRule rule) { + ((IPartialContentAssistParser) getParser()).initializeFor(rule); + } + +} |