Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2007-12-18 23:52:52 +0000
committerChris Goldthorpe2007-12-18 23:52:52 +0000
commit45da02be77445fb664df058230c4431d15a98104 (patch)
tree9751770dd2611e3788ad35847da9d1b2aeea1e43 /org.eclipse.ui.intro
parentd37f76a8a1620a07084740fc019b75df7572ef3b (diff)
downloadeclipse.platform.ua-45da02be77445fb664df058230c4431d15a98104.tar.gz
eclipse.platform.ua-45da02be77445fb664df058230c4431d15a98104.tar.xz
eclipse.platform.ua-45da02be77445fb664df058230c4431d15a98104.zip
Minor refactoring
Diffstat (limited to 'org.eclipse.ui.intro')
-rw-r--r--org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/BrowserIntroPartImplementation.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/BrowserIntroPartImplementation.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/BrowserIntroPartImplementation.java
index 14d56221b..0241da733 100644
--- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/BrowserIntroPartImplementation.java
+++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/BrowserIntroPartImplementation.java
@@ -433,8 +433,9 @@ public class BrowserIntroPartImplementation extends
// presentation is shown here. toggle standby page. No need to update
// history here.
- IntroHomePage homePage = getModel().getHomePage();
- IntroHomePage standbyPage = getModel().getStandbyPage();
+ IntroModelRoot model = getModel();
+ IntroHomePage homePage = model.getHomePage();
+ IntroHomePage standbyPage = model.getStandbyPage();
if (standbyPage == null)
standbyPage = homePage;
@@ -444,9 +445,9 @@ public class BrowserIntroPartImplementation extends
// REVISIT: If cached page is the standby page and we are not
// initially in standby mode, it means standby was forced on
// intro view on close. react.
- AbstractIntroPage currentPage = getModel().getCurrentPage();
+ AbstractIntroPage currentPage = model.getCurrentPage();
if (currentPage == null || standbyPage.getId().equals(currentPage)) {
- getModel().setCurrentPageId(getModel().getHomePage().getId());
+ model.setCurrentPageId(model.getHomePage().getId());
}
generateContentForPage(currentPage);
}

Back to the top