Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-03-28 06:14:41 +0000
committerAlexander Kurtakov2018-03-28 06:14:41 +0000
commit6217ccaf33afec8688f6e8fc2fa9b02219b655a1 (patch)
tree823260dfead85b3cb7a54edb5b5b0d34fdd7a1a7 /org.eclipse.ui.cheatsheets
parentef45b0d79f051a5b94373fe2b75d93344df9a570 (diff)
downloadeclipse.platform.ua-6217ccaf33afec8688f6e8fc2fa9b02219b655a1.tar.gz
eclipse.platform.ua-6217ccaf33afec8688f6e8fc2fa9b02219b655a1.tar.xz
eclipse.platform.ua-6217ccaf33afec8688f6e8fc2fa9b02219b655a1.zip
Bug 532977 - Use system cursors to prevent manual disposal
Change-Id: Id30de44a8f00e01acf79282ddbd43487846e648e Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.ui.cheatsheets')
-rw-r--r--org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java
index 6be2b2be3..a4d7a5bdf 100644
--- a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java
+++ b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2002, 2017 IBM Corporation and others.
+ * Copyright (c) 2002, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -640,7 +640,7 @@ public class CheatSheetViewer implements ICheatSheetViewer, IMenuContributor {
Display display = parent.getDisplay();
- busyCursor = new Cursor(display, SWT.CURSOR_WAIT);
+ busyCursor = display.getSystemCursor(SWT.CURSOR_WAIT);
if(contentElement != null) {
initCheatSheetView();
@@ -698,8 +698,6 @@ public class CheatSheetViewer implements ICheatSheetViewer, IMenuContributor {
*/
private void dispose() {
internalDispose();
- if (busyCursor != null)
- busyCursor.dispose();
}
/*

Back to the top