From 71525c550522e122ada3842e57cfb8dbea476972 Mon Sep 17 00:00:00 2001 From: GiWoong Kim Date: Tue, 2 Jun 2015 15:05:52 +0900 Subject: [PATCH] ui: modified indenting Change-Id: I74b5057a3d7f06a7d35268338b41615a6917f9c9 Signed-off-by: GiWoong Kim --- .../org/tizen/emulator/skin/EmulatorSkin.java | 337 ++++++++---------- 1 file changed, 158 insertions(+), 179 deletions(-) diff --git a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java index 7d34fb8d1d..914730b8d0 100644 --- a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java +++ b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java @@ -119,10 +119,16 @@ import org.tizen.emulator.skin.util.SwtUtil; */ public class EmulatorSkin { public enum SkinBasicColor { - BLUE(0, 174, 239), YELLOW(246, 226, 0), LIME(0, 246, 12), VIOLET(168, - 43, 255), ORANGE(246, 110, 0), MAGENTA(245, 48, 233), PURPLE( - 94, 73, 255), GREEN(179, 246, 0), RED(245, 48, 48), CYON(29, - 223, 221); + BLUE(0, 174, 239), + YELLOW(246, 226, 0), + LIME(0, 246, 12), + VIOLET(168, 43, 255), + ORANGE(246, 110, 0), + MAGENTA(245, 48, 233), + PURPLE(94, 73, 255), + GREEN(179, 246, 0), + RED(245, 48, 48), + CYON(29, 223, 221); private int channelRed; private int channelGreen; @@ -139,8 +145,8 @@ public class EmulatorSkin { } } - private static Logger logger = SkinLogger.getSkinLogger(EmulatorSkin.class) - .getLogger(); + private static Logger logger = + SkinLogger.getSkinLogger(EmulatorSkin.class).getLogger(); public EmulatorConfig config; protected Shell shell; @@ -186,10 +192,8 @@ public class EmulatorSkin { /** * @brief constructor - * @param config - * : configuration of emulator skin - * @param isOnTop - * : always on top flag + * @param config : configuration of emulator skin + * @param isOnTop : always on top flag */ protected EmulatorSkin(EmulatorConfig config, SkinInformation skinInfo, int displayCanvasStyle, boolean isOnTop) { @@ -238,8 +242,7 @@ public class EmulatorSkin { int red = rand.nextInt(255); int green = rand.nextInt(255); int blue = rand.nextInt(255); - this.colorVM = new Color(shell.getDisplay(), new RGB(red, green, - blue)); + this.colorVM = new Color(shell.getDisplay(), new RGB(red, green, blue)); } else { int vmIndex = (portNumber % 100) / 10; @@ -261,10 +264,8 @@ public class EmulatorSkin { imageRegistry = ImageRegistry.getInstance(); /* set emulator states */ - currentState - .setCurrentResolutionWidth(config.getValidResolutionWidth()); - currentState.setCurrentResolutionHeight(config - .getValidResolutionHeight()); + currentState.setCurrentResolutionWidth(config.getValidResolutionWidth()); + currentState.setCurrentResolutionHeight(config.getValidResolutionHeight()); currentState.setCurrentScale(config.getValidScale()); currentState.setCurrentRotationId(); @@ -289,7 +290,7 @@ public class EmulatorSkin { displayCanvas = skinComposer.compose(displayCanvasStyle); /* */ - // TODO: move + //TODO: move if (config.getArgBoolean(ArgsConstants.INPUT_MOUSE, false) == true) { prev_x = displayCanvas.getSize().x / 2; prev_y = displayCanvas.getSize().y / 2; @@ -390,10 +391,9 @@ public class EmulatorSkin { shellGrabPosition.y = y; if (SwtUtil.isWindowsPlatform() == true) { - final BooleanData dataGrabbing = new BooleanData(true, - SendCommand.SEND_SKIN_GRABBED.toString()); - communicator.sendToQEMU(SendCommand.SEND_SKIN_GRABBED, - dataGrabbing, false); + final BooleanData dataGrabbing = new BooleanData( + true, SendCommand.SEND_SKIN_GRABBED.toString()); + communicator.sendToQEMU(SendCommand.SEND_SKIN_GRABBED, dataGrabbing, false); } } @@ -402,10 +402,9 @@ public class EmulatorSkin { shellGrabPosition.y = -1; if (SwtUtil.isWindowsPlatform() == true) { - final BooleanData dataGrabbing = new BooleanData(false, - SendCommand.SEND_SKIN_GRABBED.toString()); - communicator.sendToQEMU(SendCommand.SEND_SKIN_GRABBED, - dataGrabbing, false); + final BooleanData dataGrabbing = new BooleanData( + false, SendCommand.SEND_SKIN_GRABBED.toString()); + communicator.sendToQEMU(SendCommand.SEND_SKIN_GRABBED, dataGrabbing, false); } } @@ -442,9 +441,11 @@ public class EmulatorSkin { } /* save config only for emulator close */ - config.setSkinProperty(SkinPropertiesConstants.WINDOW_X, + config.setSkinProperty( + SkinPropertiesConstants.WINDOW_X, shell.getLocation().x); - config.setSkinProperty(SkinPropertiesConstants.WINDOW_Y, + config.setSkinProperty( + SkinPropertiesConstants.WINDOW_Y, shell.getLocation().y); config.setSkinProperty( SkinPropertiesConstants.WINDOW_SCALE, @@ -497,17 +498,14 @@ public class EmulatorSkin { skinFinalize(); } else { - /* - * Skin have to be alive until receiving shutdown request - * from qemu - */ + /* Skin have to be alive until receiving shutdown request from qemu */ event.doit = false; if (pressedKeyEventList.isEmpty() == true && demanderFlag.compareAndSet(false, true)) { if (null != communicator) { - communicator.sendToQEMU(SendCommand.SEND_CLOSE_REQ, - null, false); + communicator.sendToQEMU( + SendCommand.SEND_CLOSE_REQ, null, false); } /* block for a while */ @@ -1009,13 +1007,16 @@ public class EmulatorSkin { @Override public void keyReleased(KeyEvent e) { if (logger.isLoggable(Level.INFO)) { - String character = (e.character == '\0') ? "\\0" - : (e.character == '\n') ? "\\n" - : (e.character == '\r') ? "\\r" - : ("" + e.character); - - logger.info("'" + character + "':" + e.keyCode + ":" - + e.stateMask + ":" + e.keyLocation); + String character = + (e.character == '\0') ? "\\0" : + (e.character == '\n') ? "\\n" : + (e.character == '\r') ? "\\r" : + ("" + e.character); + + logger.info("'" + character + "':" + + e.keyCode + ":" + + e.stateMask + ":" + + e.keyLocation); } else if (logger.isLoggable(Level.FINE)) { logger.fine(e.toString()); } @@ -1038,8 +1039,7 @@ public class EmulatorSkin { KeyEventType.RELEASED.value(), disappearKeycode, disappearStateMask, disappearKeyLocation); - communicator.sendToQEMU( - SendCommand.SEND_KEYBOARD_KEY_EVENT, + communicator.sendToQEMU(SendCommand.SEND_KEYBOARD_KEY_EVENT, keyEventData, false); removePressedKeyFromList(keyEventData); @@ -1054,38 +1054,34 @@ public class EmulatorSkin { KeyEventData keyEventData = null; /* separate a merged release event */ - if (previous.keyCode == SWT.CR - && (keyCode & SWT.KEYCODE_BIT) != 0 - && e.character == SWT.CR) { - logger.info("send upon release : keycode=" - + (int) SWT.CR); + if (previous.keyCode == SWT.CR && + (keyCode & SWT.KEYCODE_BIT) != 0 && e.character == SWT.CR) { + logger.info("send upon release : keycode=" + (int)SWT.CR); keyEventData = new KeyEventData( - KeyEventType.RELEASED.value(), SWT.CR, 0, 0); - } else if (previous.keyCode == SWT.SPACE - && (keyCode & SWT.KEYCODE_BIT) != 0 - && (e.character == SWT.SPACE)) { - logger.info("send upon release : keycode=" - + (int) SWT.SPACE); + KeyEventType.RELEASED.value(), + SWT.CR, 0, 0); + } else if (previous.keyCode == SWT.SPACE && + (keyCode & SWT.KEYCODE_BIT) != 0 && + (e.character == SWT.SPACE)) { + logger.info("send upon release : keycode=" + (int)SWT.SPACE); keyEventData = new KeyEventData( - KeyEventType.RELEASED.value(), SWT.SPACE, - 0, 0); - } else if (previous.keyCode == SWT.TAB - && (keyCode & SWT.KEYCODE_BIT) != 0 - && (e.character == SWT.TAB)) { - logger.info("send upon release : keycode=" - + (int) SWT.TAB); + KeyEventType.RELEASED.value(), + SWT.SPACE, 0, 0); + } else if (previous.keyCode == SWT.TAB && + (keyCode & SWT.KEYCODE_BIT) != 0 && + (e.character == SWT.TAB)) { + logger.info("send upon release : keycode=" + (int)SWT.TAB); keyEventData = new KeyEventData( - KeyEventType.RELEASED.value(), SWT.TAB, 0, - 0); - } else if (previous.keyCode == SWT.KEYPAD_CR - && (keyCode & SWT.KEYCODE_BIT) != 0 - && (e.character == SWT.CR) - && (keyCode != SWT.KEYPAD_CR)) { - logger.info("send upon release : keycode=" - + (int) SWT.KEYPAD_CR); + KeyEventType.RELEASED.value(), + SWT.TAB, 0, 0); + } else if (previous.keyCode == SWT.KEYPAD_CR && + (keyCode & SWT.KEYCODE_BIT) != 0 && + (e.character == SWT.CR) && + (keyCode != SWT.KEYPAD_CR)) { + logger.info("send upon release : keycode=" + (int)SWT.KEYPAD_CR); keyEventData = new KeyEventData( KeyEventType.RELEASED.value(), @@ -1093,8 +1089,7 @@ public class EmulatorSkin { } if (keyEventData != null) { - communicator.sendToQEMU( - SendCommand.SEND_KEYBOARD_KEY_EVENT, + communicator.sendToQEMU(SendCommand.SEND_KEYBOARD_KEY_EVENT, keyEventData, false); removePressedKeyFromList(keyEventData); } @@ -1127,10 +1122,8 @@ public class EmulatorSkin { disappearStateMask = stateMask; disappearKeyLocation = e.keyLocation; } else { - /* - * three or more keys were pressed at the same - * time - */ + /* three or more keys were pressed at the + * same time */ if (disappearEvent == true) { logger.info("replace the disappearEvent : " + disappearKeycode + "->" + keyCode); @@ -1144,10 +1137,11 @@ public class EmulatorSkin { int previousStateMask = previous.stateMask; if (logger.isLoggable(Level.INFO)) { - String character = (previous.character == '\0') ? "\\0" - : (previous.character == '\n') ? "\\n" - : (previous.character == '\r') ? "\\r" - : ("" + previous.character); + String character = + (previous.character == '\0') ? "\\0" : + (previous.character == '\n') ? "\\n" : + (previous.character == '\r') ? "\\r" : + ("" + previous.character); logger.info("send previous release : '" + character + "':" @@ -1175,13 +1169,16 @@ public class EmulatorSkin { } /* end isWindowsPlatform */ if (logger.isLoggable(Level.INFO)) { - String character = (e.character == '\0') ? "\\0" - : (e.character == '\n') ? "\\n" - : (e.character == '\r') ? "\\r" - : ("" + e.character); - - logger.info("'" + character + "':" + e.keyCode + ":" - + e.stateMask + ":" + e.keyLocation); + String character = + (e.character == '\0') ? "\\0" : + (e.character == '\n') ? "\\n" : + (e.character == '\r') ? "\\r" : + ("" + e.character); + + logger.info("'" + character + "':" + + e.keyCode + ":" + + e.stateMask + ":" + + e.keyLocation); } else if (logger.isLoggable(Level.FINE)) { logger.fine(e.toString()); } @@ -1204,11 +1201,11 @@ public class EmulatorSkin { currentState.getCurrentRotationId()); MouseEventData mouseEventData = new MouseEventData( - MouseButtonType.LEFT.value(), eventType, e.x, e.y, geometry[0], - geometry[1], 0); + MouseButtonType.LEFT.value(), eventType, + e.x, e.y, geometry[0], geometry[1], 0); - communicator.sendToQEMU(SendCommand.SEND_MOUSE_EVENT, mouseEventData, - false); + communicator.sendToQEMU(SendCommand.SEND_MOUSE_EVENT, + mouseEventData, false); } protected void mouseUpDelivery(MouseEvent e) { @@ -1217,15 +1214,15 @@ public class EmulatorSkin { currentState.getCurrentResolutionHeight(), currentState.getCurrentScale(), currentState.getCurrentRotationId()); - logger.info("mouseUp in display" + " x:" + geometry[0] + " y:" - + geometry[1]); + logger.info("mouseUp in display" + + " x:" + geometry[0] + " y:" + geometry[1]); MouseEventData mouseEventData = new MouseEventData( MouseButtonType.LEFT.value(), MouseEventType.RELEASE.value(), e.x, e.y, geometry[0], geometry[1], 0); - communicator.sendToQEMU(SendCommand.SEND_MOUSE_EVENT, mouseEventData, - false); + communicator.sendToQEMU(SendCommand.SEND_MOUSE_EVENT, + mouseEventData, false); } protected void mouseDownDelivery(MouseEvent e) { @@ -1234,35 +1231,35 @@ public class EmulatorSkin { currentState.getCurrentResolutionHeight(), currentState.getCurrentScale(), currentState.getCurrentRotationId()); - logger.info("mouseDown in display" + " x:" + geometry[0] + " y:" - + geometry[1]); + logger.info("mouseDown in display" + + " x:" + geometry[0] + " y:" + geometry[1]); MouseEventData mouseEventData = new MouseEventData( MouseButtonType.LEFT.value(), MouseEventType.PRESS.value(), e.x, e.y, geometry[0], geometry[1], 0); - communicator.sendToQEMU(SendCommand.SEND_MOUSE_EVENT, mouseEventData, - false); + communicator.sendToQEMU(SendCommand.SEND_MOUSE_EVENT, + mouseEventData, false); } - protected void keyReleasedDelivery(int keyCode, int stateMask, - int keyLocation, boolean remove) { + protected void keyReleasedDelivery(int keyCode, + int stateMask, int keyLocation, boolean remove) { KeyEventData keyEventData = new KeyEventData( KeyEventType.RELEASED.value(), keyCode, stateMask, keyLocation); - communicator.sendToQEMU(SendCommand.SEND_KEYBOARD_KEY_EVENT, - keyEventData, false); + communicator.sendToQEMU( + SendCommand.SEND_KEYBOARD_KEY_EVENT, keyEventData, false); if (remove == true) { removePressedKeyFromList(keyEventData); } } - protected void keyPressedDelivery(int keyCode, int stateMask, - int keyLocation, boolean add) { + protected void keyPressedDelivery(int keyCode, + int stateMask, int keyLocation, boolean add) { KeyEventData keyEventData = new KeyEventData( KeyEventType.PRESSED.value(), keyCode, stateMask, keyLocation); - communicator.sendToQEMU(SendCommand.SEND_KEYBOARD_KEY_EVENT, - keyEventData, false); + communicator.sendToQEMU( + SendCommand.SEND_KEYBOARD_KEY_EVENT, keyEventData, false); if (add == true) { addPressedKeyToList(keyEventData); @@ -1334,7 +1331,8 @@ public class EmulatorSkin { } protected void rearrangeSkin() { - skinComposer.arrangeSkin(currentState.getCurrentScale(), + skinComposer.arrangeSkin( + currentState.getCurrentScale(), currentState.getCurrentRotationId()); } @@ -1361,7 +1359,8 @@ public class EmulatorSkin { displayTransform.translate(displayCanvas.getSize().y * -1, 0); } else if (rotationId == SkinRotations.REVERSE_PORTRAIT_ID) { /* reverse-portrait */ - displayTransform.translate(displayCanvas.getSize().x * -1, + displayTransform.translate( + displayCanvas.getSize().x * -1, displayCanvas.getSize().y * -1); } else if (rotationId == SkinRotations.REVERSE_LANDSCAPE_ID) { /* reverse-landscape */ @@ -1437,11 +1436,12 @@ public class EmulatorSkin { if (isDisplayDragging == true) { logger.info("auto release : mouseEvent"); - MouseEventData mouseEventData = new MouseEventData(0, - MouseEventType.RELEASE.value(), 0, 0, 0, 0, 0); + MouseEventData mouseEventData = new MouseEventData( + 0, MouseEventType.RELEASE.value(), + 0, 0, 0, 0, 0); - communicator.sendToQEMU(SendCommand.SEND_MOUSE_EVENT, - mouseEventData, false); + communicator.sendToQEMU( + SendCommand.SEND_MOUSE_EVENT, mouseEventData, false); } } @@ -1454,8 +1454,8 @@ public class EmulatorSkin { logger.fine("Open detail info"); } - DetailInfoDialog detailInfoDialog = new DetailInfoDialog(shell, - communicator, config, skinInfo); + DetailInfoDialog detailInfoDialog = new DetailInfoDialog( + shell, communicator, config, skinInfo); detailInfoDialog.open(); } }; @@ -1492,8 +1492,8 @@ public class EmulatorSkin { final List rotationList = new ArrayList(); - Iterator> iterator = SkinRotations - .getRotationIterator(); + Iterator> iterator = + SkinRotations.getRotationIterator(); while (iterator.hasNext()) { Entry entry = iterator.next(); @@ -1512,30 +1512,26 @@ public class EmulatorSkin { } /* temp : swap rotation menu names */ - if (currentState.getCurrentResolutionWidth() > currentState - .getCurrentResolutionHeight()) { + if (currentState.getCurrentResolutionWidth() > + currentState.getCurrentResolutionHeight()) { for (MenuItem m : rotationList) { short rotationId = (Short) m.getData(); if (rotationId == SkinRotations.PORTRAIT_ID) { - String landscape = SkinRotations - .getRotation(SkinRotations.LANDSCAPE_ID).getName() - .value(); + String landscape = SkinRotations.getRotation( + SkinRotations.LANDSCAPE_ID).getName().value(); m.setText(landscape); } else if (rotationId == SkinRotations.LANDSCAPE_ID) { - String portrait = SkinRotations - .getRotation(SkinRotations.PORTRAIT_ID).getName() - .value(); + String portrait = SkinRotations.getRotation( + SkinRotations.PORTRAIT_ID).getName().value(); m.setText(portrait); } else if (rotationId == SkinRotations.REVERSE_PORTRAIT_ID) { - String landscapeReverse = SkinRotations - .getRotation(SkinRotations.REVERSE_LANDSCAPE_ID) - .getName().value(); + String landscapeReverse = SkinRotations.getRotation( + SkinRotations.REVERSE_LANDSCAPE_ID).getName().value(); m.setText(landscapeReverse); } else if (rotationId == SkinRotations.REVERSE_LANDSCAPE_ID) { - String portraitReverse = SkinRotations - .getRotation(SkinRotations.REVERSE_PORTRAIT_ID) - .getName().value(); + String portraitReverse = SkinRotations.getRotation( + SkinRotations.REVERSE_PORTRAIT_ID).getName().value(); m.setText(portraitReverse); } } @@ -1562,8 +1558,7 @@ public class EmulatorSkin { currentState.getCurrentScale(), rotationId); /* location correction */ - Rectangle monitorBounds = Display.getDefault() - .getBounds(); + Rectangle monitorBounds = Display.getDefault().getBounds(); Rectangle emulatorBounds = shell.getBounds(); shell.setLocation( Math.max(emulatorBounds.x, monitorBounds.x), @@ -1600,7 +1595,7 @@ public class EmulatorSkin { return; } - final int scale = (Integer) item.getData(); /* percentage */ + final int scale = (Integer)item.getData(); /* percentage */ shell.getDisplay().syncExec(new Runnable() { @Override @@ -1609,8 +1604,7 @@ public class EmulatorSkin { currentState.getCurrentRotationId()); /* location correction */ - Rectangle monitorBounds = Display.getDefault() - .getBounds(); + Rectangle monitorBounds = Display.getDefault().getBounds(); Rectangle emulatorBounds = shell.getBounds(); shell.setLocation( Math.max(emulatorBounds.x, monitorBounds.x), @@ -1639,14 +1633,11 @@ public class EmulatorSkin { boolean on = item.equals(popupMenu.interpolationHighItem); isOnInterpolation = on; - logger.info("Select scale interpolation : " - + isOnInterpolation); + logger.info("Select scale interpolation : " + isOnInterpolation); - communicator.sendToQEMU( - SendCommand.SEND_INTERPOLATION_STATE, - new BooleanData(on, - SendCommand.SEND_INTERPOLATION_STATE - .toString()), false); + communicator.sendToQEMU(SendCommand.SEND_INTERPOLATION_STATE, + new BooleanData(on, SendCommand.SEND_INTERPOLATION_STATE.toString()), + false); } } }; @@ -1665,14 +1656,12 @@ public class EmulatorSkin { MenuItem layoutSelected = (MenuItem) e.widget; if (layoutSelected.getSelection() == true) { - for (MenuItem layout : layoutSelected.getParent() - .getItems()) { + for (MenuItem layout : layoutSelected.getParent().getItems()) { if (layout != layoutSelected) { /* uncheck other menu items */ layout.setSelection(false); } else { - int layoutIndex = getKeyWindowKeeper() - .getLayoutIndex(); + int layoutIndex = getKeyWindowKeeper().getLayoutIndex(); if (getKeyWindowKeeper().determineLayout() != layoutIndex) { /* switch */ getKeyWindowKeeper().closeKeyWindow(); @@ -1688,15 +1677,13 @@ public class EmulatorSkin { if (getKeyWindowKeeper().getKeyWindow() == null) { if (getKeyWindowKeeper().getRecentlyDocked() != SWT.NONE) { getKeyWindowKeeper().openKeyWindow( - getKeyWindowKeeper().getRecentlyDocked(), - false); + getKeyWindowKeeper().getRecentlyDocked(), false); getKeyWindowKeeper().setRecentlyDocked(SWT.NONE); } else { /* opening for first time */ getKeyWindowKeeper().openKeyWindow( - KeyWindowKeeper.DEFAULT_DOCK_POSITION, - false); + KeyWindowKeeper.DEFAULT_DOCK_POSITION, false); } } else { getKeyWindowKeeper().openKeyWindow( @@ -1761,17 +1748,16 @@ public class EmulatorSkin { @Override public void widgetSelected(SelectionEvent e) { // TODO: - /* - * if (!communicator.isSensorDaemonStarted()) { - * SkinUtil.openMessage(shell, null, - * "Host Keyboard is not ready.\n" + - * "Please wait until the emulator is completely boot up.", - * SWT.ICON_WARNING, config); - * popupMenu.hostKbdOnItem.setSelection(isOnKbd); - * popupMenu.hostKbdOffItem.setSelection(!isOnKbd); - * - * return; } - */ + /* if (!communicator.isSensorDaemonStarted()) { + SkinUtil.openMessage(shell, null, + "Host Keyboard is not ready.\n" + + "Please wait until the emulator is completely boot up.", + SWT.ICON_WARNING, config); + popupMenu.hostKbdOnItem.setSelection(isOnKbd); + popupMenu.hostKbdOffItem.setSelection(!isOnKbd); + + return; + } */ MenuItem item = (MenuItem) e.getSource(); if (item.getSelection()) { @@ -1780,10 +1766,8 @@ public class EmulatorSkin { logger.info("Select host keyboard : " + isOnKbd); - communicator.sendToQEMU( - SendCommand.SEND_HOST_KBD_STATE, - new BooleanData(on, SendCommand.SEND_HOST_KBD_STATE - .toString()), false); + communicator.sendToQEMU(SendCommand.SEND_HOST_KBD_STATE, + new BooleanData(on, SendCommand.SEND_HOST_KBD_STATE.toString()), false); } } }; @@ -1797,8 +1781,7 @@ public class EmulatorSkin { public void widgetSelected(SelectionEvent e) { logger.info("Open the about dialog"); - AboutDialog dialog = new AboutDialog(shell, config, - imageRegistry); + AboutDialog dialog = new AboutDialog(shell, config, imageRegistry); dialog.open(); } }; @@ -1846,9 +1829,7 @@ public class EmulatorSkin { if (communicator.isSdbDaemonStarted() == false) { logger.warning("SDB is not ready."); - SkinUtil.openMessage( - shell, - null, + SkinUtil.openMessage(shell, null, "SDB is not ready.\n" + "Please wait until the emulator is completely boot up.", SWT.ICON_WARNING, config); @@ -1859,8 +1840,7 @@ public class EmulatorSkin { File sdbFile = new File(sdbPath); if (sdbFile.exists() == false) { - logger.info("SDB file does not exist : " - + sdbFile.getAbsolutePath()); + logger.info("SDB file does not exist : " + sdbFile.getAbsolutePath()); try { SkinUtil.openMessage(shell, null, @@ -1933,14 +1913,14 @@ public class EmulatorSkin { try { SkinUtil.openMessage(shell, null, "Control Panel file does not exist in the following path.\n" - + ecpFile.getCanonicalPath(), + + ecpFile.getCanonicalPath(), SWT.ICON_ERROR, config); } catch (IOException ee) { logger.log(Level.SEVERE, ee.getMessage(), ee); } return; - } + } String emulName = SkinUtil.getVmName(config); int basePort = config.getArgInt(ArgsConstants.VM_BASE_PORT); @@ -2030,8 +2010,7 @@ public class EmulatorSkin { public void widgetSelected(SelectionEvent e) { logger.info("Close menu is selected"); - communicator - .sendToQEMU(SendCommand.SEND_CLOSE_REQ, null, false); + communicator.sendToQEMU(SendCommand.SEND_CLOSE_REQ, null, false); } }; @@ -2071,12 +2050,12 @@ public class EmulatorSkin { } } - keyReleasedDelivery(data.keycode, data.stateMask, - data.keyLocation, false); + keyReleasedDelivery(data.keycode, + data.stateMask, data.keyLocation, false); logger.info("auto release : keycode=" + data.keycode - + ", stateMask=" + data.stateMask + ", keyLocation=" - + data.keyLocation); + + ", stateMask=" + data.stateMask + + ", keyLocation=" + data.keyLocation); } } -- 2.34.1