本文整理了Java中org.eclipse.swt.events.KeyListener.keyPressedAdapter()
方法的一些代码示例,展示了KeyListener.keyPressedAdapter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。KeyListener.keyPressedAdapter()
方法的具体详情如下:
包路径:org.eclipse.swt.events.KeyListener
类名称:KeyListener
方法名:keyPressedAdapter
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.renderers.swt
fFilterText.setLayoutData(data);
fFilterText.addKeyListener(KeyListener.keyPressedAdapter(e -> {
switch (e.keyCode) {
case SWT.CR:
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools.ui
gd.heightHint = 200;
tree.setLayoutData(gd);
tree.addKeyListener(KeyListener.keyPressedAdapter(e -> {
if (e.character == SWT.DEL && e.stateMask == 0) {
handleRemove(fViewer.getStructuredSelection());
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools.ui
updatejob.schedule();
});
text.addKeyListener(KeyListener.keyPressedAdapter(e -> {
if (e.keyCode == SWT.ARROW_DOWN) {
if (tableviewer != null) {
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools.ui
updatejob.schedule();
});
text.addKeyListener(KeyListener.keyPressedAdapter(e -> {
if (e.keyCode == SWT.ARROW_DOWN) {
if (tableviewer != null) {
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools.ui
table.addKeyListener(KeyListener.keyPressedAdapter(event -> {
if (event.character == SWT.DEL && event.stateMask == 0) {
doRemove();
代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.renderers.swt
table.addKeyListener(KeyListener.keyPressedAdapter(e -> {
switch (e.keyCode) {
case SWT.ESC:
内容来源于网络,如有侵权,请联系作者删除!