public abstract class AbstractParser
extends java.lang.Object
implements org.eclipse.gmf.runtime.common.ui.services.parser.IParser
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractParser.InvalidValue |
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.ecore.EAttribute[] |
editableFeatures |
protected org.eclipse.emf.ecore.EAttribute[] |
features |
Constructor and Description |
---|
AbstractParser(org.eclipse.emf.ecore.EAttribute[] features) |
AbstractParser(org.eclipse.emf.ecore.EAttribute[] features,
org.eclipse.emf.ecore.EAttribute[] editableFeatures) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.jface.text.contentassist.IContentAssistProcessor |
getCompletionProcessor(org.eclipse.core.runtime.IAdaptable element) |
protected java.lang.Object[] |
getEditableValues(org.eclipse.emf.ecore.EObject element) |
java.lang.String |
getEditorPattern() |
java.lang.String |
getEditPattern() |
protected org.eclipse.gmf.runtime.common.core.command.ICommand |
getModificationCommand(org.eclipse.emf.ecore.EObject element,
org.eclipse.emf.ecore.EAttribute feature,
java.lang.Object value) |
protected org.eclipse.gmf.runtime.common.core.command.ICommand |
getParseCommand(org.eclipse.core.runtime.IAdaptable adapter,
java.lang.Object[] values,
int flags) |
protected java.lang.Object |
getValidNewValue(org.eclipse.emf.ecore.EAttribute feature,
java.lang.Object value) |
protected java.lang.Object |
getValue(org.eclipse.emf.ecore.EObject element,
org.eclipse.emf.ecore.EAttribute feature) |
protected java.lang.Object[] |
getValues(org.eclipse.emf.ecore.EObject element) |
java.lang.String |
getViewPattern() |
boolean |
isAffectingEvent(java.lang.Object event,
int flags) |
protected boolean |
isAffectingFeature(java.lang.Object feature) |
void |
setEditorPattern(java.lang.String editorPattern) |
void |
setEditPattern(java.lang.String editPattern) |
void |
setViewPattern(java.lang.String viewPattern) |
protected org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus |
validateNewValues(java.lang.Object[] values) |
protected final org.eclipse.emf.ecore.EAttribute[] features
protected final org.eclipse.emf.ecore.EAttribute[] editableFeatures
public AbstractParser(org.eclipse.emf.ecore.EAttribute[] features)
public AbstractParser(org.eclipse.emf.ecore.EAttribute[] features, org.eclipse.emf.ecore.EAttribute[] editableFeatures)
public java.lang.String getViewPattern()
public void setViewPattern(java.lang.String viewPattern)
public java.lang.String getEditorPattern()
public void setEditorPattern(java.lang.String editorPattern)
public java.lang.String getEditPattern()
public void setEditPattern(java.lang.String editPattern)
public boolean isAffectingEvent(java.lang.Object event, int flags)
isAffectingEvent
in interface org.eclipse.gmf.runtime.common.ui.services.parser.IParser
protected boolean isAffectingFeature(java.lang.Object feature)
public org.eclipse.jface.text.contentassist.IContentAssistProcessor getCompletionProcessor(org.eclipse.core.runtime.IAdaptable element)
getCompletionProcessor
in interface org.eclipse.gmf.runtime.common.ui.services.parser.IParser
protected java.lang.Object[] getValues(org.eclipse.emf.ecore.EObject element)
protected java.lang.Object[] getEditableValues(org.eclipse.emf.ecore.EObject element)
protected java.lang.Object getValue(org.eclipse.emf.ecore.EObject element, org.eclipse.emf.ecore.EAttribute feature)
protected org.eclipse.gmf.runtime.common.core.command.ICommand getParseCommand(org.eclipse.core.runtime.IAdaptable adapter, java.lang.Object[] values, int flags)
protected org.eclipse.gmf.runtime.common.core.command.ICommand getModificationCommand(org.eclipse.emf.ecore.EObject element, org.eclipse.emf.ecore.EAttribute feature, java.lang.Object value)
protected org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus validateNewValues(java.lang.Object[] values)
protected java.lang.Object getValidNewValue(org.eclipse.emf.ecore.EAttribute feature, java.lang.Object value)