tuned = false;
Shell parent = getParent();
dialogShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
dialogShell.addShellListener( new ShellAdapter()
{
public void shellClosed(ShellEvent evt)
{
close();
}
});
{
//Register as a resource user - SWTResourceManager will
//handle the obtaining and disposing of resources
SWTResourceManager.registerResourceUser(dialogShell);
}
GridLayout dialogShellLayout = new GridLayout();
dialogShell.setLayout(dialogShellLayout);
dialogShellLayout.numColumns = 3;
dialogShellLayout.marginHeight = 0;
dialogShellLayout.marginWidth = 0;
dialogShellLayout.verticalSpacing = 0;
dialogShellLayout.horizontalSpacing = 0;
dialogShell.layout();
dialogShell.pack();
dialogShell.setSize(952, 656);
dialogShell.addShellListener( new ShellAdapter()
{
public void shellClosed(ShellEvent evt)
{
grabbing = false;
((ImageBasedGPS) Simulation.getCurrent().getGps()).disposeImage();