org.eclipse.gmf.map.editor.providers
Class GMFMapAbstractParser

java.lang.Object
  extended by org.eclipse.gmf.map.editor.providers.GMFMapAbstractParser
All Implemented Interfaces:
org.eclipse.gmf.runtime.common.ui.services.parser.IParser
Direct Known Subclasses:
GMFMapStructuralFeatureParser, GMFMapStructuralFeaturesParser

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


Nested Class Summary
protected  class GMFMapAbstractParser.InvalidValue
           
 
Constructor Summary
GMFMapAbstractParser()
           
 
Method Summary
protected  MessageFormat createEditProcessor(String editPattern)
           
protected  MessageFormat createViewProcessor(String viewPattern)
           
 org.eclipse.jface.text.contentassist.IContentAssistProcessor getCompletionProcessor(org.eclipse.core.runtime.IAdaptable element)
           
 String getEditPattern()
           
protected  MessageFormat getEditProcessor()
           
 String getEditString(org.eclipse.core.runtime.IAdaptable adapter, int flags)
           
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 abstract  org.eclipse.gmf.runtime.common.core.command.ICommand getParseCommand(org.eclipse.core.runtime.IAdaptable adapter, Object[] values)
           
 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)
           
protected abstract  String getStringByPattern(org.eclipse.core.runtime.IAdaptable adapter, int flags, String pattern, MessageFormat processor)
           
protected  Object getValidNewValue(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
           
protected  Object getValidValue(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
           
 String getViewPattern()
           
protected  MessageFormat getViewProcessor()
           
 org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus isValidEditString(org.eclipse.core.runtime.IAdaptable element, String editString)
           
 void setEditPattern(String editPattern)
           
 void setViewPattern(String viewPattern)
           
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
isAffectingEvent
 

Constructor Detail

GMFMapAbstractParser

public GMFMapAbstractParser()
Method Detail

getViewPattern

public String getViewPattern()

getViewProcessor

protected MessageFormat getViewProcessor()

setViewPattern

public void setViewPattern(String viewPattern)

createViewProcessor

protected MessageFormat createViewProcessor(String viewPattern)

getEditPattern

public String getEditPattern()

getEditProcessor

protected MessageFormat getEditProcessor()

setEditPattern

public void setEditPattern(String editPattern)

createEditProcessor

protected MessageFormat createEditProcessor(String editPattern)

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

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

getStringByPattern

protected abstract String getStringByPattern(org.eclipse.core.runtime.IAdaptable adapter,
                                             int flags,
                                             String pattern,
                                             MessageFormat processor)

isValidEditString

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

validateNewValues

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

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

getParseCommand

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

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

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)

getValidValue

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

getValidNewValue

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


Copyright © 2011. All Rights Reserved.