|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmf.runtime.diagram.ui.providers.parsers.DescriptionParser
public class DescriptionParser
Description parser
| Field Summary | |
|---|---|
protected static IParser |
instance
instance of parser |
| Constructor Summary | |
|---|---|
protected |
DescriptionParser()
Constructor for DescriptionParser. |
| Method Summary | |
|---|---|
IContentAssistProcessor |
getCompletionProcessor(IAdaptable element)
Returns the parser's content assist processor |
java.lang.String |
getEditString(IAdaptable adapter,
int flags)
Gets the string that is a subject to edit. |
static IParser |
getInstance()
Gets the instance of the parser |
ICommand |
getParseCommand(IAdaptable adapter,
java.lang.String newString,
int flags)
Gets the command that applies the new edit string |
java.lang.String |
getPrintString(IAdaptable adapter,
int flags)
Returns a string intended for display. |
boolean |
isAffectingEvent(java.lang.Object event,
int flags)
Determines if the event requires action from the parser point of view. |
IParserEditStatus |
isValidEditString(IAdaptable element,
java.lang.String editString)
Tests if the user-entered string is in a valid form that can be parsed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static IParser instance
| Constructor Detail |
|---|
protected DescriptionParser()
| Method Detail |
|---|
public static IParser getInstance()
public java.lang.String getEditString(IAdaptable adapter,
int flags)
IParser
getEditString in interface IParseradapter - the element for which the edit string is requestedflags - the bitflag of parser options
public ICommand getParseCommand(IAdaptable adapter,
java.lang.String newString,
int flags)
IParser
getParseCommand in interface IParseradapter - the element for which the parse command is requestednewString - to be set by the commandflags - the bitflag of parser options
public java.lang.String getPrintString(IAdaptable adapter,
int flags)
IParser
getPrintString in interface IParseradapter - the element for which the print string is requestedflags - the bitflag of parser options
public boolean isAffectingEvent(java.lang.Object event,
int flags)
IParser
isAffectingEvent in interface IParserevent - the event, an instance of IElementEventflags - the bitflag of parser options
true if the event affects the parser,
otherwise false.IParser.isAffectingEvent(Object, int)
public IParserEditStatus isValidEditString(IAdaptable element,
java.lang.String editString)
IParser
isValidEditString in interface IParserelement - the element for which the edit string is applied toeditString - the user-entered string
EDITABLE_STATUS if the edit string is valid, otherwise
a status that includes information describing why it is an invalid edit string.IParser.isValidEditString(org.eclipse.core.runtime.IAdaptable, java.lang.String)public IContentAssistProcessor getCompletionProcessor(IAdaptable element)
IParser
getCompletionProcessor in interface IParserelement - the element
|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.