Mobile Tools for Java
Release 1.0

org.eclipse.mtj.ui.editors.device
Class DeviceEditorDialog

java.lang.Object
  extended by Dialog
      extended by org.eclipse.mtj.ui.editors.device.DeviceEditorDialog

public class DeviceEditorDialog
extends Dialog

Dialog implementation for the editing of a device.

Since:
1.0

Constructor Summary
DeviceEditorDialog(IShellProvider parentShell)
          Construct a new editor dialog.
DeviceEditorDialog(Shell parentShell)
          Construct a new editor dialog.
 
Method Summary
protected  void buttonPressed(int buttonId)
           
protected  void configureShell(Shell newShell)
           
protected  Control createDialogArea(Composite parent)
           
protected  boolean isJavaExecutableDevice()
          Return a boolean indicating whether the device being edited is launched by a Java executable.
 void setDevice(IDevice device)
          Set the device to be edited.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceEditorDialog

public DeviceEditorDialog(IShellProvider parentShell)
Construct a new editor dialog.

Parameters:
parentShell - object that returns the current parent shell

DeviceEditorDialog

public DeviceEditorDialog(Shell parentShell)
Construct a new editor dialog.

Parameters:
parentShell - the parent shell, or null to create a top-level shell
Method Detail

setDevice

public void setDevice(IDevice device)
Set the device to be edited.

Parameters:
device - the device to be edited

buttonPressed

protected void buttonPressed(int buttonId)

configureShell

protected void configureShell(Shell newShell)

createDialogArea

protected Control createDialogArea(Composite parent)

isJavaExecutableDevice

protected boolean isJavaExecutableDevice()
Return a boolean indicating whether the device being edited is launched by a Java executable.

Returns:
if the device is launched by a Java executable

Mobile Tools for Java
Release 1.0