diff options
author | lparsons | 2004-05-11 15:44:56 +0000 |
---|---|---|
committer | lparsons | 2004-05-11 15:44:56 +0000 |
commit | a394df4cd8929db958e363cfb7b54951d2382235 (patch) | |
tree | a2d9c9c7815d011f1af48b0e87dc05b5df2fe7d4 /org.eclipse.ui.cheatsheets | |
parent | fc182286377e9e460bdd7ab6d7e8baadac630fbe (diff) | |
download | eclipse.platform.ua-a394df4cd8929db958e363cfb7b54951d2382235.tar.gz eclipse.platform.ua-a394df4cd8929db958e363cfb7b54951d2382235.tar.xz eclipse.platform.ua-a394df4cd8929db958e363cfb7b54951d2382235.zip |
First launching of a cheat sheet did not have the correct background
Diffstat (limited to 'org.eclipse.ui.cheatsheets')
-rw-r--r-- | org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/views/CheatSheetViewer.java | 3 |
1 files changed, 2 insertions, 1 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 aef5b4561..53a2f4353 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 @@ -366,6 +366,8 @@ public class CheatSheetViewer implements ICheatSheetViewer { props = savedProps; } + clearBackgrounds(getViewItemArray()); + if (props == null) { getViewItemArray()[0].setAsCurrentActiveItem(); /* LP-item event */ @@ -400,7 +402,6 @@ public class CheatSheetViewer implements ICheatSheetViewer { getManager().setData(csmData); if (itemNum >= 0) { - clearBackgrounds(getViewItemArray()); currentItemNum = itemNum; currentItem = (ViewItem) viewItemList.get(itemNum); |