org.eclipse.gmf.tooling.runtime.parsers
Class AbstractFeatureParser

java.lang.Object
  extended by org.eclipse.gmf.tooling.runtime.parsers.AbstractFeatureParser
All Implemented Interfaces:
org.eclipse.gmf.runtime.common.ui.services.parser.IParser
Direct Known Subclasses:
AbstractAttributeParser, ChoiceParserBase

public abstract class AbstractFeatureParser
extends Object
implements org.eclipse.gmf.runtime.common.ui.services.parser.IParser


Nested Class Summary
protected  class AbstractFeatureParser.InvalidValue
           
 
Constructor Summary
AbstractFeatureParser(org.eclipse.emf.ecore.EStructuralFeature[] features)
           
AbstractFeatureParser(org.eclipse.emf.ecore.EStructuralFeature[] features, org.eclipse.emf.ecore.EStructuralFeature[] editableFeatures)
           
 
Method Summary
 org.eclipse.jface.text.contentassist.IContentAssistProcessor getCompletionProcessor(org.eclipse.core.runtime.IAdaptable element)
           
protected  org.eclipse.emf.ecore.EStructuralFeature[] getEditableFeatures()
           
protected  Object[] getEditableValues(org.eclipse.emf.ecore.EObject element)
           
protected  org.eclipse.emf.ecore.EStructuralFeature[] getFeatures()
           
protected  org.eclipse.gmf.runtime.common.core.command.ICommand getModificationCommand(org.eclipse.emf.ecore.EObject element, org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
           
protected  org.eclipse.gmf.runtime.common.core.command.ICommand getParseCommand(org.eclipse.core.runtime.IAdaptable adapter, Object[] values, int flags)
           
protected  Object getValidNewValue(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
           
protected  Object getValue(org.eclipse.emf.ecore.EObject element, org.eclipse.emf.ecore.EStructuralFeature feature)
           
protected  Object[] getValues(org.eclipse.emf.ecore.EObject element)
           
 boolean isAffectingEvent(Object event, int flags)
           
protected  boolean isAffectingFeature(Object feature)
           
protected  org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus validateNewValues(Object[] values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmf.runtime.common.ui.services.parser.IParser
getEditString, getParseCommand, getPrintString, isValidEditString
 

Constructor Detail

AbstractFeatureParser

public AbstractFeatureParser(org.eclipse.emf.ecore.EStructuralFeature[] features)

AbstractFeatureParser

public AbstractFeatureParser(org.eclipse.emf.ecore.EStructuralFeature[] features,
                             org.eclipse.emf.ecore.EStructuralFeature[] editableFeatures)
Method Detail

getFeatures

protected org.eclipse.emf.ecore.EStructuralFeature[] getFeatures()

getEditableFeatures

protected org.eclipse.emf.ecore.EStructuralFeature[] getEditableFeatures()

getValues

protected Object[] getValues(org.eclipse.emf.ecore.EObject element)

getEditableValues

protected Object[] getEditableValues(org.eclipse.emf.ecore.EObject element)

getValue

protected Object getValue(org.eclipse.emf.ecore.EObject element,
                          org.eclipse.emf.ecore.EStructuralFeature feature)

getParseCommand

protected org.eclipse.gmf.runtime.common.core.command.ICommand getParseCommand(org.eclipse.core.runtime.IAdaptable adapter,
                                                                               Object[] values,
                                                                               int flags)

validateNewValues

protected org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus validateNewValues(Object[] values)

getValidNewValue

protected Object getValidNewValue(org.eclipse.emf.ecore.EStructuralFeature feature,
                                  Object value)

getModificationCommand

protected org.eclipse.gmf.runtime.common.core.command.ICommand getModificationCommand(org.eclipse.emf.ecore.EObject element,
                                                                                      org.eclipse.emf.ecore.EStructuralFeature feature,
                                                                                      Object value)

isAffectingEvent

public boolean isAffectingEvent(Object event,
                                int flags)
Specified by:
isAffectingEvent in interface org.eclipse.gmf.runtime.common.ui.services.parser.IParser

isAffectingFeature

protected boolean isAffectingFeature(Object feature)

getCompletionProcessor

public org.eclipse.jface.text.contentassist.IContentAssistProcessor getCompletionProcessor(org.eclipse.core.runtime.IAdaptable element)
Specified by:
getCompletionProcessor in interface org.eclipse.gmf.runtime.common.ui.services.parser.IParser


Copyright © 2012. All Rights Reserved.