Device Matcher
Identifier:
org.eclipse.mtj.core.devicematcher
Since:
1.0.1
Description:
The device matcher extension point matches a given device group and device name against the locally installed ones.
When importing projects their runtime configuration may refer to devices that are not installed. Instead of just returning a null device, this creates an opportunity to match it against installed devices. Implementors of this extension point must provide instances of the org.eclipse.mtj.core.sdk.device.IDeviceMatcher
interface.
Configuration Markup:
<!ELEMENT extension (matcher+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
>
- point - a fully qualified identifier of the target extension point
- id - an optional identifier of the extension instance
- name - an optional name of the extension instance
<!ELEMENT matcher EMPTY>
<!ATTLIST matcher
id CDATA #REQUIRED
priority CDATA #REQUIRED
class CDATA #REQUIRED
>
- id - a required fully-qualified identifier for this particular device matcher extension
- priority - The priority order for this matcher The priority may range from 1 to 99. The matchers will be consulted in priority order starting with the lower numbered priority and working toward the highest numbered priority. The first device matcher that returns a non-null result will "win" and no further matcher instances will be consulted.
- class - the required implementation class for the
org.eclipse.mtj.core.sdk.device.IDeviceMatcher
interface
Examples:
Example of a declaration of a devicematcher
:
<extension
point="org.eclipse.mtj.core.devicematcher">
<importer
class="org.eclipse.mtj.internal.ui.DeviceMatcher"
id="org.eclipse.mtj.devicematcher"/>
</extension>
Supplied Implementation:
MTJ provides an implementation for the devicematcher
in the org.eclipse.mtj.ui
plugin that presents the user with a dialog to choose from availiable devices.
Copyright (c) 2009 Sony Ericsson.
Parts copied from org_eclipse_mtj_deviceImporter.exsd with copyright (c) 2003,2009 Craig Setera and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html