本文整理了Java中org.eclipse.swt.widgets.Table.getMenu()
方法的一些代码示例,展示了Table.getMenu()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getMenu()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!