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

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

public class OclChoiceParser
extends ChoiceParserBase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.gmf.tooling.runtime.parsers.AbstractFeatureParser
AbstractFeatureParser.InvalidValue
 
Constructor Summary
OclChoiceParser(org.eclipse.emf.ecore.EStructuralFeature feature, String itemsExpression, String showExpression, org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
           
 
Method Summary
protected  String getEditChoice(org.eclipse.emf.ecore.EObject element, Object item)
           
protected  Collection<Object> getItems(org.eclipse.emf.ecore.EObject element)
           
protected  String getNullItemEditChoice()
           
 void installListeners(org.eclipse.gmf.runtime.diagram.core.listener.NotificationListener listener, OclTracker.Registrator oclRegistrator)
           
 boolean isAffectingEvent(Object event, int flags)
           
 void uninstallListeners()
           
 
Methods inherited from class org.eclipse.gmf.tooling.runtime.parsers.ChoiceParserBase
getEditChoices, getEditString, getFeature, getParseCommand, getPrintString, isValidEditString
 
Methods inherited from class org.eclipse.gmf.tooling.runtime.parsers.AbstractFeatureParser
getCompletionProcessor, getEditableFeatures, getEditableValues, getFeatures, getModificationCommand, getParseCommand, getValidNewValue, getValue, getValues, 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
 

Constructor Detail

OclChoiceParser

public OclChoiceParser(org.eclipse.emf.ecore.EStructuralFeature feature,
                       String itemsExpression,
                       String showExpression,
                       org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
Method Detail

getItems

protected Collection<Object> getItems(org.eclipse.emf.ecore.EObject element)
Specified by:
getItems in class ChoiceParserBase

getEditChoice

protected String getEditChoice(org.eclipse.emf.ecore.EObject element,
                               Object item)
Specified by:
getEditChoice in class ChoiceParserBase

getNullItemEditChoice

protected String getNullItemEditChoice()

isAffectingEvent

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

installListeners

public void installListeners(org.eclipse.gmf.runtime.diagram.core.listener.NotificationListener listener,
                             OclTracker.Registrator oclRegistrator)

uninstallListeners

public void uninstallListeners()


Copyright © 2012. All Rights Reserved.