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;
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) {
shell.open();
- /* while ( !shell.isDisposed() ) {
+ while ( !shell.isDisposed() ) {
if ( !shell.getDisplay().readAndDispatch() ) {
if ( reserveImage ) {
break;
shell.getDisplay().sleep();
}
}
- } */
+ }
}