コード例 #1
0
 private void pressToggleCommentHotKeys() {
   if (RunningPlatform.isOSX()) {
     KeyboardFactory.getKeyboard().invokeKeyCombination(SWT.SHIFT, SWT.COMMAND, 'c');
   } else {
     KeyboardFactory.getKeyboard().invokeKeyCombination(SWT.SHIFT, SWT.CTRL, 'c');
   }
 }
 /**
  * Sets Android SDK Location to androidSDKLocation
  *
  * @param androidSDKLocation
  */
 public void setAndroidSDKLocation(String androidSDKLocation) {
   log.info("Setting Android SDK Location to: " + androidSDKLocation);
   findAdnroidSDKLocation().setText("");
   KeyboardFactory.getKeyboard().type(androidSDKLocation);
 }