screenshot: rollback
authorgiwoong.kim <giwoong.kim@samsung.com>
Mon, 14 Jan 2013 01:12:20 +0000 (10:12 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Mon, 14 Jan 2013 01:12:20 +0000 (10:12 +0900)
rollback open function

Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/screenshot/ScreenShotDialog.java

index 261f3dbf4edaa335e7a89460f00967b43231db15..08d3c95a883e223cec7d537a77fb3b820f94e5e7 100644 (file)
@@ -91,7 +91,8 @@ public class ScreenShotDialog {
        public static final int CANVAS_MARGIN = 30;
        public static final int TOOLITEM_COOLTIME = 200;
 
-       private Logger logger = SkinLogger.getSkinLogger( ScreenShotDialog.class ).getLogger();
+       private Logger logger =
+                       SkinLogger.getSkinLogger(ScreenShotDialog.class).getLogger();
 
        protected PaletteData paletteData;
        protected PaletteData paletteData2;
@@ -123,6 +124,7 @@ public class ScreenShotDialog {
                this.emulatorSkin = emulatorSkin;
                this.config = config;
                scaleLevel = 100d;
+
                shell = new Shell( Display.getDefault(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX );
                shell.setText( "Screen Shot - " + SkinUtil.makeEmulatorName( config ) );
                if (icon != null) {
@@ -690,7 +692,7 @@ public class ScreenShotDialog {
 
                shell.open();
 
-               /* while ( !shell.isDisposed() ) {
+               while ( !shell.isDisposed() ) {
                        if ( !shell.getDisplay().readAndDispatch() ) {
                                if ( reserveImage ) {
                                        break;
@@ -698,7 +700,7 @@ public class ScreenShotDialog {
                                        shell.getDisplay().sleep();
                                }
                        }
-               } */
+               }
 
        }