本文整理了Java中org.eclipse.swt.widgets.Shell.getModalShell()
方法的一些代码示例,展示了Shell.getModalShell()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Shell.getModalShell()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Shell
类名称:Shell
方法名:getModalShell
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
boolean isActive () {
return getShell ().getModalShell () == null && display.getModalDialog () == null;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
boolean isActive () {
return getShell ().getModalShell () == null && display.getModalDialog () == null;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
boolean isActive () {
return getShell ().getModalShell () == null && display.getModalDialog () == null;
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void becomeKeyWindow (long /*int*/ id, long /*int*/ sel) {
Shell modal = getModalShell();
if (modal != null && modal.window != null) {
modal.window.makeKeyAndOrderFront(null);
return;
}
Display display = this.display;
display.keyWindow = view.window();
super.becomeKeyWindow(id, sel);
display.checkFocus();
display.keyWindow = null;
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
boolean isActive () {
if (getShell().getModalShell () != null) return false;
Dialog dialog = display.getModalDialog();
if (dialog == null) return true;
NSPanel panel = display.getModalPanel();
if (panel == null) return false;
NSWindow parentWindow = view.window().parentWindow();
return parentWindow == null || parentWindow.id == panel.id;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
boolean isModalShell = false;
if (display.getModalDialog () == null) {
Shell modal = getModalShell ();
int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
Composite shell = null;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
boolean isModalShell = false;
if (display.getModalDialog () == null) {
Shell modal = getModalShell ();
int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
Composite shell = null;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
boolean isModalShell = false;
if (display.getModalDialog () == null) {
Shell modal = getModalShell ();
int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
Composite shell = null;
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
Shell shell = (Shell) getWidget (window.id);
if (shell != null) {
Shell modalShell = shell.getModalShell ();
if (modalShell != null) {
if (activate) {
内容来源于网络,如有侵权,请联系作者删除!