|
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.action.filter.ActionFilterService
public class ActionFilterService
A service that provides action filters that can be used in evaluating action expressions.
Nested Class Summary | |
---|---|
protected static class |
ActionFilterService.ProviderDescriptor
A descriptor for action filter providers defined by a configuration element. |
Field Summary | |
---|---|
protected static java.lang.String |
PREFIX
Prefix for action expressions that use the action filter service. |
Fields inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
INVALID_ELEMENT_MESSAGE_PATTERN |
Constructor Summary | |
---|---|
protected |
ActionFilterService()
Constructs a new action filter service. |
Method Summary | |
---|---|
void |
clearCachedResults()
Clears this action filter service's cached results. |
protected ActionManager |
getActionManager()
Retrieves the action manager for this action filter service. |
static ActionFilterService |
getInstance()
Retrieves the singleton instance of the action filter service. |
protected IOperationHistory |
getOperationHistory()
Returns the operation history from my action manager. |
void |
historyNotification(OperationHistoryEvent event)
Clears my cache when my operation history changes. |
protected Service.ProviderDescriptor |
newProviderDescriptor(IConfigurationElement element)
Creates a new action filter provider descriptor for the specified configuration element. |
boolean |
testAttribute(java.lang.Object target,
java.lang.String name,
java.lang.String value)
Returns whether the specific attribute matches the state of the target object. |
protected void |
updateCachedData()
Updates the cached results and selection based on the current selection. |
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, 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 |
Field Detail |
---|
protected static final java.lang.String PREFIX
Constructor Detail |
---|
protected ActionFilterService()
Method Detail |
---|
public static ActionFilterService getInstance()
protected ActionManager getActionManager()
protected IOperationHistory getOperationHistory()
protected Service.ProviderDescriptor newProviderDescriptor(IConfigurationElement element)
newProviderDescriptor
in class Service
element
- The configuration element from which to create the descriptor.
public final void clearCachedResults()
Clients are strongly discouraged from using this method. It will degrade performance.
protected void updateCachedData()
public boolean testAttribute(java.lang.Object target, java.lang.String name, java.lang.String value)
testAttribute
in interface IActionFilter
target
- The target object.name
- The attribute name.value
- The attriute value.
true
if the attribute matches; false
otherwiseIActionFilter.testAttribute(Object, String, String)
public void historyNotification(OperationHistoryEvent event)
historyNotification
in interface IOperationHistoryListener
|
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.