|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.core.service.AbstractProvider
org.eclipse.gmf.runtime.common.core.service.Service
org.eclipse.gmf.runtime.common.ui.services.parser.ParserService
public class ParserService
The parser service which returns a parser for an IAdaptable. Also includes methods to obtain the strings for the IAdaptable and to determine whether editing is possible.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
Service.ProviderDescriptor |
Field Summary |
---|
Fields inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
INVALID_ELEMENT_MESSAGE_PATTERN |
Constructor Summary | |
---|---|
ParserService()
|
Method Summary | |
---|---|
boolean |
canEdit(IAdaptable hint)
Determines if element can be edited |
java.lang.String |
getEditString(IAdaptable hint,
int options)
Returns the string that is a subject to edit. |
static ParserService |
getInstance()
Retrieves the singleton instance of the parser service. |
IParser |
getParser(IAdaptable hint)
Method getParser. |
java.lang.String |
getPrintString(IAdaptable hint)
Convenience method for getting the print string to display |
java.lang.String |
getPrintString(IAdaptable hint,
int options)
Gets the print string to display |
Methods inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
addProvider, clearCache, configureProviders, configureProviders, createPriorityCache, execute, executeUnique, getAllProviders, getCachingKey, getPriority, getProviders, isOptimistic, isOptimized, newProviderDescriptor, providerChanged, provides, provides, removeProvider |
Methods inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProvider |
---|
addProviderChangeListener, fireProviderChange, removeProviderChangeListener |
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.core.service.IProvider |
---|
addProviderChangeListener, provides, removeProviderChangeListener |
Constructor Detail |
---|
public ParserService()
Method Detail |
---|
public static ParserService getInstance()
public IParser getParser(IAdaptable hint)
IParserProvider
getParser
in interface IParserProvider
hint
- IAdaptable hint used to determine the parser to return
IParserProvider.getParser(IAdaptable)
public java.lang.String getEditString(IAdaptable hint, int options)
hint
- - hint adaptable to IElementoptions
- - parser options
public java.lang.String getPrintString(IAdaptable hint, int options)
hint
- - hint adaptable to IElementoptions
- - parser options
public java.lang.String getPrintString(IAdaptable hint)
hint
- - hint adaptable to element
public boolean canEdit(IAdaptable hint)
hint
- - hint adaptable to element to check
true
if element is editable, otherwise false
|
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.