本文整理了Java中org.eclipse.swt.widgets.Text.setMenu()
方法的一些代码示例,展示了Text.setMenu()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.setMenu()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Text
类名称:Text
方法名:setMenu
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
public void setMenu(Menu menu) {
text.setMenu(menu);
}
/**
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
@Override
public void setMenu(Menu menu) {
text.setMenu(menu);
}
/**
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
public void setMenu(Menu menu) {
text.setMenu(menu);
}
/**
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
public void setMenu(Menu menu) {
text.setMenu(menu);
}
/**
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
public void setMenu(Menu menu) {
text.setMenu(menu);
}
/**
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public void setMenu(Menu menu) {
text.setMenu(menu);
}
/**
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
public void createContents(Composite parent) {
FormToolkit toolkit = getManagedForm().getToolkit();
fSection = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR);
fSection.clientVerticalSpacing = FormLayoutFactory.SECTION_HEADER_VERTICAL_SPACING;
fSection.setLayout(FormLayoutFactory.createClearGridLayout(false, 1));
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
fSection.setLayoutData(gd);
Composite client = toolkit.createComposite(fSection);
client.setLayout(FormLayoutFactory.createSectionClientGridLayout(false, 1));
fDtdText = toolkit.createText(client, "", SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);//$NON-NLS-1$
gd = new GridData(GridData.FILL_HORIZONTAL);
gd.heightHint = 60;
fDtdText.setLayoutData(gd);
fDtdText.setEditable(false);
// remove pop-up menu
fDtdText.setMenu(new Menu(client));
toolkit.paintBordersFor(client);
fSection.setClient(client);
fSection.setText(PDEUIMessages.SchemaDtdDetailsSection_title);
}
代码示例来源:origin: openaudible/openaudible
text.setMenu(wildCardMenu);
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
list.setMenu(copyMenu);
listCreated = true;
return list;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples
dragEventDetail = eItem.getSelection();
}));
dragConsole.setMenu(menu);
dropConsole.setMenu(menu);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples
/**
* Create the event console popup menu.
*/
void createEventConsolePopup () {
Menu popup = new Menu (shell, SWT.POP_UP);
eventConsole.setMenu (popup);
MenuItem cut = new MenuItem (popup, SWT.PUSH);
cut.setText (ControlExample.getResourceString("MenuItem_Cut"));
cut.addListener (SWT.Selection, event -> eventConsole.cut ());
MenuItem copy = new MenuItem (popup, SWT.PUSH);
copy.setText (ControlExample.getResourceString("MenuItem_Copy"));
copy.addListener (SWT.Selection, event -> eventConsole.copy ());
MenuItem paste = new MenuItem (popup, SWT.PUSH);
paste.setText (ControlExample.getResourceString("MenuItem_Paste"));
paste.addListener (SWT.Selection, event -> eventConsole.paste ());
new MenuItem (popup, SWT.SEPARATOR);
MenuItem selectAll = new MenuItem (popup, SWT.PUSH);
selectAll.setText(ControlExample.getResourceString("MenuItem_SelectAll"));
selectAll.addListener (SWT.Selection, event -> eventConsole.selectAll ());
}
内容来源于网络,如有侵权,请联系作者删除!