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

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

public abstract class ChoiceParserBase
extends AbstractFeatureParser
implements ComboDirectEditManager.IChoiceParser


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.gmf.tooling.runtime.parsers.AbstractFeatureParser
AbstractFeatureParser.InvalidValue
 
Constructor Summary
ChoiceParserBase(org.eclipse.emf.ecore.EStructuralFeature feature)
           
 
Method Summary
protected abstract  String getEditChoice(org.eclipse.emf.ecore.EObject element, Object item)
           
 List<String> getEditChoices(org.eclipse.core.runtime.IAdaptable adapter)
           
 String getEditString(org.eclipse.core.runtime.IAdaptable adapter, int flags)
           
protected  org.eclipse.emf.ecore.EStructuralFeature getFeature()
           
protected abstract  Collection<Object> getItems(org.eclipse.emf.ecore.EObject element)
           
 org.eclipse.gmf.runtime.common.core.command.ICommand getParseCommand(org.eclipse.core.runtime.IAdaptable adapter, String newString, int flags)
           
 String getPrintString(org.eclipse.core.runtime.IAdaptable adapter, int flags)
           
 org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus isValidEditString(org.eclipse.core.runtime.IAdaptable adapter, String editString)
           
 
Methods inherited from class org.eclipse.gmf.tooling.runtime.parsers.AbstractFeatureParser
getCompletionProcessor, getEditableFeatures, getEditableValues, getFeatures, getModificationCommand, getParseCommand, getValidNewValue, getValue, getValues, isAffectingEvent, isAffectingFeature, validateNewValues
 
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
getCompletionProcessor, isAffectingEvent
 

Constructor Detail

ChoiceParserBase

public ChoiceParserBase(org.eclipse.emf.ecore.EStructuralFeature feature)
Method Detail

getFeature

protected final org.eclipse.emf.ecore.EStructuralFeature getFeature()

getEditString

public String getEditString(org.eclipse.core.runtime.IAdaptable adapter,
                            int flags)
Specified by:
getEditString in interface org.eclipse.gmf.runtime.common.ui.services.parser.IParser

isValidEditString

public org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus isValidEditString(org.eclipse.core.runtime.IAdaptable adapter,
                                                                                             String editString)
Specified by:
isValidEditString in interface org.eclipse.gmf.runtime.common.ui.services.parser.IParser

getParseCommand

public org.eclipse.gmf.runtime.common.core.command.ICommand getParseCommand(org.eclipse.core.runtime.IAdaptable adapter,
                                                                            String newString,
                                                                            int flags)
Specified by:
getParseCommand in interface org.eclipse.gmf.runtime.common.ui.services.parser.IParser

getPrintString

public String getPrintString(org.eclipse.core.runtime.IAdaptable adapter,
                             int flags)
Specified by:
getPrintString in interface org.eclipse.gmf.runtime.common.ui.services.parser.IParser

getEditChoices

public List<String> getEditChoices(org.eclipse.core.runtime.IAdaptable adapter)
Specified by:
getEditChoices in interface ComboDirectEditManager.IChoiceParser

getItems

protected abstract Collection<Object> getItems(org.eclipse.emf.ecore.EObject element)

getEditChoice

protected abstract String getEditChoice(org.eclipse.emf.ecore.EObject element,
                                        Object item)


Copyright © 2012. All Rights Reserved.