[title] added icon at screenshot window
authorgiwoong.kim <admin@tmax-.(none)>
Tue, 17 Apr 2012 05:54:26 +0000 (14:54 +0900)
committergiwoong.kim <admin@tmax-.(none)>
Tue, 17 Apr 2012 05:54:26 +0000 (14:54 +0900)
[Type]
[Module] Emulator
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java
tizen/src/skin/client/src/org/tizen/emulator/skin/screenshot/ScreenShotDialog.java

index ae56898..ce8b3c0 100755 (executable)
@@ -1524,7 +1524,8 @@ public class EmulatorSkin {
 
                                        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 ) {
index 6b131b4..ff7209f 100644 (file)
@@ -108,7 +108,7 @@ public class ScreenShotDialog {
        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;
@@ -116,6 +116,10 @@ public class ScreenShotDialog {
 
                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 ) {