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

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

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

Table.getMenu介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.openxma/xmartclient

protected Table attachUIInternal(Object control) {
  Table ta;
  if (control instanceof Table) {
    ta = (Table)control;
    if (ta.getMenu() != null && ta.getMenu().getItemCount()>0)
      copyMenuItem_ = ta.getMenu().getItem(0);
  }
  else {
    throw new AttachmentExceptionClient ("TableDirect must be attached to a SWT-table or Nebula TableCombo");
  }
  return ta;
}

代码示例来源:origin: org.codehaus.openxma/xmartclient

private void addContextMenuListeners (EventAdapter adapter, Table ta) {
  Menu menu = ta.getMenu();
  if (menu != null) {
    for (int i=0; i<menu.getItems().length; i++) {
      MenuItem item = menu.getItem(i);
      item.addSelectionListener(adapter);
    }
    // add MouseListener for immediatly chaning context menu item texts before they are shown
    ta.addMouseListener(adapter);
  }
}

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

protected void handleDispose(DisposeEvent event) {
  fLastSelection= null;
  Menu menu= getTable().getMenu();
  if (menu != null)
    menu.dispose();
  if (fPotentialMatchFgColor != null)
    fPotentialMatchFgColor.dispose();
  if (fActionGroup != null) {
    fActionGroup.dispose();
    fActionGroup= null;
  }
  super.handleDispose(event);
}

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

@Override
protected void handleDispose(DisposeEvent event) {
  fLastSelection= null;
  Menu menu= getTable().getMenu();
  if (menu != null)
    menu.dispose();
  if (fPotentialMatchFgColor != null)
    fPotentialMatchFgColor.dispose();
  if (fActionGroup != null) {
    fActionGroup.dispose();
    fActionGroup= null;
  }
  super.handleDispose(event);
}

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

Menu popup = getTable().getMenu();
popup.setVisible(true);

代码示例来源:origin: BiglySoftware/BiglyBT

updateLanguageFromData(columns[i], null);
updateLanguageForControl(table.getMenu());

相关文章

Table类方法