本文整理了Java中org.eclipse.swt.widgets.Shell.getCursor()
方法的一些代码示例,展示了Shell.getCursor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Shell.getCursor()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Shell
类名称:Shell
方法名:getCursor
暂无
代码示例来源:origin: be.yildiz-games/module-window-swt
Cursor getCursor() {
return this.shell.getCursor();
}
代码示例来源:origin: org.eclipse.e4.ui.workbench.addons/swt
/**
* Restore the DragAgent to a state where it will be ready to start a new drag
*
* @param performDrop
* determines if a drop operation should be performed if possible
*/
public void dragFinished(boolean performDrop, DnDInfo info) {
boolean isNoDrop = dndManager.getDragShell().getCursor() == Display.getCurrent()
.getSystemCursor(SWT.CURSOR_NO);
if (performDrop && dropAgent != null && !isNoDrop) {
dropAgent.drop(dragElement, info);
} else {
cancelDrag();
}
if (dropAgent != null)
dropAgent.dragLeave(dragElement, info);
if (dragPH == null)
return;
if (dragPH != null) {
dragPH.getParent().getChildren().remove(dragPH);
dragPH = null;
}
dragElement = null;
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.addons.swt
boolean isNoDrop = dndManager.getDragShell().getCursor() == Display.getCurrent()
.getSystemCursor(SWT.CURSOR_NO);
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.runtime
@Override
public Object execute(ExecutionEvent event) {
if (popupDialog != null && popupDialog.getShell() != null && !popupDialog.getShell().isDisposed()) {
popupDialog.close();
}
Shell shell = HandlerUtil.getActiveShell(event);
if (shell != null) {
Display display = shell.getDisplay();
display.addFilter(SWT.Selection, this);
display.addFilter(SWT.KeyDown, this);
display.addFilter(SWT.Show, this);
if (display.getActiveShell() != null) {
defaultCursor = display.getActiveShell().getCursor();
Image image = PDERuntimePluginImages.get(PDERuntimePluginImages.IMG_MENUSPY_OBJ);
spyCursor = new Cursor(display, image.getImageData(), 7, 7);
display.getActiveShell().setCursor(spyCursor);
}
}
return null;
}
代码示例来源:origin: BiglySoftware/BiglyBT
if (skinRef != null) {
Shell shell = parent.getShell();
Cursor cursor = shell.getCursor();
try {
shell.setCursor(shell.getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
代码示例来源:origin: BiglySoftware/BiglyBT
if (skinRef != null) {
Shell shell = parent.getShell();
Cursor cursor = shell.getCursor();
try {
shell.setCursor(shell.getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
代码示例来源:origin: BiglySoftware/BiglyBT
Cursor cursor = shell.getCursor();
try {
shell.setCursor(shell.getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
代码示例来源:origin: BiglySoftware/BiglyBT
Cursor cursor = shell.getCursor();
try {
shell.setCursor(shell.getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
内容来源于网络,如有侵权,请联系作者删除!