isScreenShotOpened = true;
- screenShotDialog = new ScreenShotDialog( shell, communicator, EmulatorSkin.this, config );
+ screenShotDialog = new ScreenShotDialog( shell, communicator, EmulatorSkin.this, config,
+ imageRegistry.getIcon(IconName.SCREENSHOT) );
screenShotDialog.open();
} catch ( ScreenShotException ex ) {
private boolean reserveImage;
public ScreenShotDialog( Shell parent, SocketCommunicator communicator, EmulatorSkin emulatorSkin,
- EmulatorConfig config ) throws ScreenShotException {
+ EmulatorConfig config, Image icon ) throws ScreenShotException {
this.communicator = communicator;
this.emulatorSkin = emulatorSkin;
shell = new Shell( Display.getDefault(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX );
shell.setText( "Screen Shot - " + SkinUtil.makeEmulatorName( config ) );
+ if (icon != null) {
+ shell.setImage(icon);
+ }
+
shell.addListener( SWT.Close, new Listener() {
@Override
public void handleEvent( Event event ) {