diff options
author | Alexander Kurtakov | 2018-03-28 06:14:41 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2018-03-28 06:14:41 +0000 |
commit | 6217ccaf33afec8688f6e8fc2fa9b02219b655a1 (patch) | |
tree | 823260dfead85b3cb7a54edb5b5b0d34fdd7a1a7 /org.eclipse.ui.cheatsheets | |
parent | ef45b0d79f051a5b94373fe2b75d93344df9a570 (diff) | |
download | eclipse.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.java | 6 |
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(); } /* |