Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Link"

(New page: <source lang="java"> * Replace <DEVICE_NAME> for the device name in the package declaration.: package org.eclipse.tml.device.<DEVICE_NAME>.handler; import org.eclipse.tml.framewor...)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<source lang="java">
+
[[link2]]
/*
+
* Replace <DEVICE_NAME> for the device name in the package declaration.
+
*/
+
 
+
package org.eclipse.tml.device.<DEVICE_NAME>.handler;
+
 
+
import org.eclipse.tml.framework.device.internal.model.MobileInstance;
+
import org.eclipse.tml.framework.device.model.IInstance;
+
import org.eclipse.tml.framework.device.model.handler.IDeviceHandler;
+
 
+
 
+
/*
+
* Replace <DEVICE_NAME> for the device name in the class declaration.
+
*
+
* Rename this file according to the class name.
+
*/
+
 
+
public class <DEVICE_NAME>DeviceHandler implements IDeviceHandler {
+
    public IInstance createDeviceInstance(String id) {
+
        return new MobileInstance(id);
+
    }
+
}
+
</source>
+

Latest revision as of 16:47, 9 December 2008

link2

Back to the top