org.eclipse.actf.model.javapp.locate
Class SwtComponentLocator
java.lang.Object
org.eclipse.actf.model.locate.AbstractNodeLocator
org.eclipse.actf.model.javapp.locate.SwtComponentLocator
- All Implemented Interfaces:
- INodeLocator
public class SwtComponentLocator
- extends AbstractNodeLocator
- Author:
- Mike Squillace
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 |
Method Summary |
Properties |
describe(Object element)
identify or distinguish the SWT Widget in an SWT component hierarchy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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()