コード例 #1
0
  /**
   * {@inheritDoc}
   *
   * @see org.eclipse.gef.tools.AbstractTool#keyUp(org.eclipse.swt.events.KeyEvent,
   *     org.eclipse.gef.EditPartViewer)
   */
  @Override
  public void keyUp(KeyEvent i_evt, EditPartViewer i_viewer) {

    super.keyUp(i_evt, i_viewer);

    m_handler.setScene(getScene());
    m_handler.keyUp(i_evt);
  }
コード例 #2
0
  /**
   * {@inheritDoc}
   *
   * @see org.eclipse.gef.tools.AbstractTool#handleKeyUp(org.eclipse.swt.events.KeyEvent)
   */
  @Override
  protected boolean handleKeyUp(KeyEvent i_e) {

    m_handler.setScene(getScene());
    m_handler.keyUp(i_e);

    return true;
  }