diff options
author | Chris Goldthorpe | 2008-06-25 21:30:27 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2008-06-25 21:30:27 +0000 |
commit | 4f6688bb22154e03d47442996ea2c45b66b3e8ed (patch) | |
tree | 6b1908cec44815ed927f08958dd759807676c36a /org.eclipse.ui.cheatsheets/src/org/eclipse | |
parent | 72dc4090f17afc29975c6ff70107cc1fa7205fd5 (diff) | |
download | eclipse.platform.ua-4f6688bb22154e03d47442996ea2c45b66b3e8ed.tar.gz eclipse.platform.ua-4f6688bb22154e03d47442996ea2c45b66b3e8ed.tar.xz eclipse.platform.ua-4f6688bb22154e03d47442996ea2c45b66b3e8ed.zip |
Bug 235719 [CheatSheet] Cheat sheet item property dialog=false doesn't work when using "Click to redo"
Diffstat (limited to 'org.eclipse.ui.cheatsheets/src/org/eclipse')
-rw-r--r-- | org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java | 5 |
1 files changed, 2 insertions, 3 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 e615e4314..1205ced1a 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 @@ -970,9 +970,8 @@ public class CheatSheetViewer implements ICheatSheetViewer, IMenuContributor { * @return whether the current item opens a modal dialog */ private boolean isInDialogItem() { - ViewItem item = getViewItemAtIndex(currentItemNum); - if (item != null) { - return item.getItem().isDialog(); + if (currentItem != null) { + return currentItem.getItem().isDialog(); } return false; } |