org.eclipse.gmf.tooling.runtime.parsers
Class ChoiceParserBase
java.lang.Object
org.eclipse.gmf.tooling.runtime.parsers.AbstractFeatureParser
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
Constructor Summary |
ChoiceParserBase(org.eclipse.emf.ecore.EStructuralFeature feature)
|
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 |
ChoiceParserBase
public ChoiceParserBase(org.eclipse.emf.ecore.EStructuralFeature feature)
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.