org.eclipse.actf.model.javapp.locate
Class SwtComponentLocator

java.lang.Object
  extended by org.eclipse.actf.model.locate.AbstractNodeLocator
      extended by org.eclipse.actf.model.javapp.locate.SwtComponentLocator
All Implemented Interfaces:
INodeLocator

public class SwtComponentLocator
extends AbstractNodeLocator

Author:
Mike Squillace

Field Summary
 
Fields inherited from class org.eclipse.actf.model.locate.AbstractNodeLocator
CONTAINSSUBSTR_SEARCH, defaultIdPropName, EXACTMATCH_SEARCH, IGNORECASE_SEARCH, model, NODELOCATOR_VARIABLE, NODENAME_CHARCLASS, NODENAME_KEY, PREDICATEVAL_CHARCLASS, propertiesMap, REGEXP_SEARCH, ROOT_JXPATH_CONTEXT, SEGMENT_PATTERN
 
Constructor Summary
SwtComponentLocator()
          create a new SwtComponentLocator.
 
Method Summary
 Properties describe(Object element)
          identify or distinguish the SWT Widget in an SWT component hierarchy.
 
Methods inherited from class org.eclipse.actf.model.locate.AbstractNodeLocator
addNodePointerFactory, descriptionAsString, find, findAll, getDefaultIdPropertyName, getModel, getNodeId, invokeGetter, locate, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwtComponentLocator

public SwtComponentLocator()
create a new SwtComponentLocator. By default, the components that can be identified via the identify method are found in the 'swt.xml' file.

Method Detail

describe

public Properties describe(Object element)
identify or distinguish the SWT Widget in an SWT component hierarchy. This method will first attempt to identify the given control using super.identify(Object). Next, if the getData method exists, it will be called with the value returned by getDefaultIdPropertyName().

Specified by:
describe in interface INodeLocator
Overrides:
describe in class AbstractNodeLocator
Parameters:
element - element to be identified
Returns:
set of properties describing or identifying element
See Also:
AbstractNodeLocator.describe(Object), AbstractNodeLocator.getDefaultIdPropertyName()