Package org.eclipse.wb.gef.core.requests

Examples of org.eclipse.wb.gef.core.requests.KeyRequest


  @Override
  public void performRequest(Request request) {
    super.performRequest(request);
    if (request instanceof KeyRequest) {
      KeyRequest keyRequest = (KeyRequest) request;
      if (keyRequest.getKeyCode() == SWT.CTRL) {
        m_ctrlPressed = keyRequest.isPressed();
      }
      if (isResizing()) {
        updateTooltipCommand();
        updateTooltipText();
      }
View Full Code Here


  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  public void performRequest(Request request) {
    if (request instanceof KeyRequest) {
      KeyRequest keyRequest = (KeyRequest) request;
      if (keyRequest.isPressed() && keyRequest.getCharacter() == ' ') {
        beginEdit();
      }
    }
    super.performRequest(request);
  }
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  public void performRequest(Request request) {
    if (request instanceof KeyRequest) {
      KeyRequest keyRequest = (KeyRequest) request;
      if (keyRequest.isPressed()) {
        char c = keyRequest.getCharacter();
        // horizontal
        if (c == 'd' || c == 'u') {
          setHorizontalAlignment(ColumnInfo.Alignment.UNKNOWN);
        } else if (c == 'l') {
          setHorizontalAlignment(ColumnInfo.Alignment.LEFT);
View Full Code Here

  ////////////////////////////////////////////////////////////////////////////
  @Override
  public void performRequest(Request request) {
    super.performRequest(request);
    if (request instanceof KeyRequest) {
      KeyRequest keyRequest = (KeyRequest) request;
      if (keyRequest.isPressed()) {
        char c = keyRequest.getCharacter();
        if (c == 'd' || c == 'u') {
          setAlignment(ColumnInfo.Alignment.UNKNOWN);
        } else if (c == 'l') {
          setAlignment(ColumnInfo.Alignment.LEFT);
        } else if (c == 'c') {
View Full Code Here

  ////////////////////////////////////////////////////////////////////////////
  @Override
  public void performRequest(Request request) {
    super.performRequest(request);
    if (request instanceof KeyRequest) {
      KeyRequest keyRequest = (KeyRequest) request;
      if (keyRequest.isPressed()) {
        char c = keyRequest.getCharacter();
        // vertical
        if (c == 'd' || c == 'D' || c == 'u' || c == 'U') {
          setAlignment(RowInfo.Alignment.UNKNOWN);
        } else if (c == 't') {
          setAlignment(RowInfo.Alignment.TOP);
View Full Code Here

TOP

Related Classes of org.eclipse.wb.gef.core.requests.KeyRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.