Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-tml-dev] a more generic qemu service plugin

Title: RE: [dsdp-tml-dev] a more generic qemu service plugin
CC'ing the list.


From: Otavio Luiz Ferranti
Sent: terça-feira, 10 de junho de 2008 15:17
To: 'ykuo@xxxxxxxxxx'
Cc: 'dsdp-tml-dev@xxxxxxxxxxx'
Subject: FW: [dsdp-tml-dev] a more generic qemu service plugin

Hi Yufen,
 
<plugin> value is pointing to the device id defined for the org.eclipse.tml.device extensionin on plugin.xml file.
 
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
   <extension
         id="qemureactDevice"
         name="qemureactDevice"
         point="org.eclipse.tml.device">
      <device
            copyright="Motorola Inc. 2007"
            description="Mobile Emulator for QEMUARM"
            handler="org.eclipse.tml.device.qemureact.handler.QEmuReactDeviceHandler"
            icon="icons/full/obj16/qemureact.gif"
            id="org.eclipse.tml.device.qemureact.qemureactDevice"           <<<<< OTAVIO: This one.
            name="QEmuReact Mobile Device"
            provider="Eclipse.org"
            version="0.2.0">
      </device>
   </extension>
 
The value is passed to the createInstance(...) method, as the deviceId param.
 
Each plugin could have many devices defined, so many deviceId could exist in a plugin.
 
Maybe the <plugin> element name is not the best one and may cause misunderstooding.
 
 /**
  * Creates a new instance.
  * @param name - Instance name.
  * @param deviceId - The instance device id.
  * @param status - The instance status.
  * @param properties - The instance properties.
  * @return The created instance.
  * @throws TmLException
  */
 public IInstance createInstance(String name, String deviceId, String status, Properties properties) throws TmLException {
 
  IDeviceHandler deviceHandler = null;
  IInstance instance = null;
  try {
   IExtension fromPlugin = PluginUtils.getExtension(DevicePlugin.DEVICE_ID, deviceId);

The attribute /tml/instances/instance/device_id is used only on the XML processing context, for linking a instance entry to a device entry. Also, maybe some name changing would be desirable.
 
Regards,
Otávio


From: Yu-Fen Kuo [mailto:ykuo@xxxxxxxxxx]
Sent: terça-feira, 10 de junho de 2008 14:52
To: Otavio Luiz Ferranti
Subject: RE: [dsdp-tml-dev] a more generic qemu service plugin

Hi Otavio,

 

I just received your sample xml file, so basically same as what I was guessing, I forgot to include the instance properties.

But what about the plugin element, does it point to the plugin id which defines the device in plugin.xml file?

Yufen

 


From: Yu-Fen Kuo [mailto:ykuo@xxxxxxxxxx]
Sent: Tuesday, June 10, 2008 10:49 AM
To: 'Otavio Luiz Ferranti'
Subject: RE: [dsdp-tml-dev] a more generic qemu service plugin

 

Hi Otavio,

 

I haven’t received your sample tml_devices.xml file, but I am guessing it is something like:

 

<tml>

  <instances>

            <instance name=”instance_name1” device_id=”device_id1”/>

            <instance name=”instance_name2” device_id=”device_id1”/>

            <instance name=”instance_name3” device_id=”device_id2”/>

  </instances>

 

  <devices>

            <device id=”device_id1”>

                        <plugin>org.eclipse.tml.device.qemureact</plugin>

            </device>

            <device id=”device_id2”>

                        <plugin>org.eclipse.tml.device.qemuarm</plugin>

            </device>

 

  </devices>

 

</tml>

 

So the device_id attribute in the instance element has to be one of the id defined in device elements.

Are they any other elements or attributes I am missing?

 

Yufen


From: Otavio Luiz Ferranti [mailto:otavio.ferranti@xxxxxxxxxxxxxxx]
Sent: Tuesday, June 10, 2008 8:53 AM
To: Yu-Fen Kuo
Subject: RE: [dsdp-tml-dev] a more generic qemu service plugin

 

Meeting starting in few minutes ...

 

http://wiki.eclipse.org/DSDP/TML/Agenda10Jun08

 


From: Yu-Fen Kuo [mailto:ykuo@xxxxxxxxxx]
Sent: segunda-feira, 9 de junho de 2008 17:59
To: Otavio Luiz Ferranti
Subject: RE: [dsdp-tml-dev] a more generic qemu service plugin

 

Hi Otavio, would you consider to rewrite your code to use the

            org.xml.sax.*

            org.w3c.dom.*

            javax.xml.parsers.*

Libraries so users don’t need to extra libraries to run your code?

Yufen


Back to the top