protected void drawInformation(GLGraphics gc) { super.drawInformation(gc); String info2 = "SHFIT+×ó - Ç°ÒÆ SHIFT+ÓÒ - ºóÒÆ"; Point ts = gc.textExtent(info2); Point size = getSize(); gc.drawText(info2, size.x / 2 - ts.x / 2, size.y - ts.y * 2 - 5); }
protected void onKeyDown(int keyCode) { super.onKeyDown(keyCode); switch (keyCode) { case SWT.ARROW_LEFT: if ((keyEventMask & SWT.SHIFT) != 0) { onMoveUp(); } break; case SWT.ARROW_RIGHT: if ((keyEventMask & SWT.SHIFT) != 0) { onMoveDown(); } break; } return; }