org.eclipse.swt.widgets.ToolBar.setFocus()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(145)

本文整理了Java中org.eclipse.swt.widgets.ToolBar.setFocus()方法的一些代码示例,展示了ToolBar.setFocus()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ToolBar.setFocus()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.ToolBar
类名称:ToolBar
方法名:setFocus

ToolBar.setFocus介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

/**
 * Set the focus to the button.
 *
 */
void setButtonFocus() {
  actionBar.setFocus();
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
  public void widgetSelected(SelectionEvent e) {
    fControl.setFocus();
    updateValue();
    updateWidget();
  }
};

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

private void setCancelEnabled(boolean enabled) {
    if (fStopButton != null && !fStopButton.isDisposed()) {
      fStopButton.setEnabled(enabled);
      if (enabled)
        fToolBar.setFocus();
    }
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

private void setCancelEnabled(boolean enabled) {
    if (fStopButton != null && !fStopButton.isDisposed()) {
      fStopButton.setEnabled(enabled);
      if (enabled)
        fToolBar.setFocus();
    }
  }
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

private void setCancelEnabled(boolean enabled) {
    if (fStopButton != null && !fStopButton.isDisposed()) {
      fStopButton.setEnabled(enabled);
      if (enabled)
        fToolBar.setFocus();
    }
  }
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
  public void widgetSelected(SelectionEvent e) {
    fControl.setFocus();
    Rectangle rect= dropDown.getBounds();
    Point pt= dropDown.getParent().toDisplay(new Point(rect.x, rect.y));
    menu.setLocation(pt.x, pt.y + rect.height);
    menu.setVisible(true);
  }
});

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

@Override
public void beginTask(String name, int totalWork) {
  fTaskName = name;
  fSubTaskName = ""; //$NON-NLS-1$
  updateLabel();
  if (totalWork == IProgressMonitor.UNKNOWN || totalWork == 0) {
    fProgressIndicator.beginAnimatedTask();
  } else {
    fProgressIndicator.beginTask(totalWork);
  }
  if (fToolBar != null && !fToolBar.isDisposed()) {
    fToolBar.setVisible(true);
    fToolBar.setFocus();
  }
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

/**
 * Implements <code>IProgressMonitor.beginTask</code>.
 * @see IProgressMonitor#beginTask(java.lang.String, int)
 */
public void beginTask(String name, int totalWork) {
  fTaskName = name;
  fSubTaskName = ""; //$NON-NLS-1$
  updateLabel();
  if (totalWork == IProgressMonitor.UNKNOWN || totalWork == 0) {
    fProgressIndicator.beginAnimatedTask();
  } else {
    fProgressIndicator.beginTask(totalWork);
  }
  if (fToolBar != null && !fToolBar.isDisposed()) {
    fToolBar.setVisible(true);
    fToolBar.setFocus();
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

@Override
public void beginTask(String name, int totalWork) {
  fTaskName = name;
  fSubTaskName = ""; //$NON-NLS-1$
  queueUpdateLabel();
  if (!fProgressIndicator.isDisposed()) {
    if (totalWork == IProgressMonitor.UNKNOWN || totalWork == 0) {
      fProgressIndicator.beginAnimatedTask();
    } else {
      fProgressIndicator.beginTask(totalWork);
    }
  }
  if (fToolBar != null && !fToolBar.isDisposed()) {
    fToolBar.setVisible(true);
    fToolBar.setFocus();
  }
}

相关文章

ToolBar类方法