Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: frontend/client/src/autotest/planner/TestPlannerClient.java

Issue 1595019: Merge remote branch 'origin/upstream' into tempbranch (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 package autotest.planner;
2
3 import autotest.common.CustomHistory;
4 import autotest.common.JsonRpcProxy;
5 import autotest.common.SiteCommonClassFactory;
6 import autotest.common.StaticDataRepository;
7 import autotest.common.ui.CustomTabPanel;
8 import autotest.common.ui.NotifyManager;
9 import autotest.planner.triage.TriageViewTab;
10
11 import com.google.gwt.core.client.EntryPoint;
12 import com.google.gwt.user.client.ui.RootPanel;
13
14 public class TestPlannerClient implements EntryPoint {
15
16 private TestPlanSelector planSelector = new TestPlanSelector();
17 private TestPlanSelectorDisplay planSelectorView = new TestPlanSelectorDispl ay();
18
19 private OverviewTab overviewTab = new OverviewTab();
20 private OverviewTabDisplay overviewTabDisplay = new OverviewTabDisplay();
21
22 private MachineViewTab machineViewTab = new MachineViewTab();
23 private MachineViewTabDisplay machineViewTabDisplay = new MachineViewTabDisp lay();
24
25 private TestViewTab testViewTab = new TestViewTab();
26 private TestViewTabDisplay testViewTabDisplay = new TestViewTabDisplay();
27
28 private TriageViewTab triageViewTab = new TriageViewTab(planSelector);
29
30 private AutoprocessedTab autoprocessedTab = new AutoprocessedTab();
31 private AutoprocessedTabDisplay autoprocessedTabDisplay = new AutoprocessedT abDisplay();
32
33 private HistoryTab historyTab = new HistoryTab();
34 private HistoryTabDisplay historyTabDisplay = new HistoryTabDisplay();
35
36 private CustomTabPanel mainTabPanel = new CustomTabPanel();
37
38 public void onModuleLoad() {
39 JsonRpcProxy.setDefaultBaseUrl(JsonRpcProxy.PLANNER_BASE_URL);
40
41 NotifyManager.getInstance().initialize();
42
43 StaticDataRepository.getRepository().refresh(
44 new StaticDataRepository.FinishedCallback() {
45 public void onFinished() {
46 finishLoading();
47 }
48 });
49 }
50
51 private void finishLoading() {
52 SiteCommonClassFactory.globalInitialize();
53
54 overviewTab.bindDisplay(overviewTabDisplay);
55 machineViewTab.bindDisplay(machineViewTabDisplay);
56 testViewTab.bindDisplay(testViewTabDisplay);
57 autoprocessedTab.bindDisplay(autoprocessedTabDisplay);
58 historyTab.bindDisplay(historyTabDisplay);
59
60 planSelectorView.initialize();
61 planSelector.bindDisplay(planSelectorView);
62 mainTabPanel.getCommonAreaPanel().add(planSelectorView);
63
64 mainTabPanel.addTabView(overviewTabDisplay);
65 mainTabPanel.addTabView(machineViewTabDisplay);
66 mainTabPanel.addTabView(testViewTabDisplay);
67 mainTabPanel.addTabView(triageViewTab);
68 mainTabPanel.addTabView(autoprocessedTabDisplay);
69 mainTabPanel.addTabView(historyTabDisplay);
70
71 final RootPanel tabsRoot = RootPanel.get("tabs");
72 tabsRoot.add(mainTabPanel);
73 CustomHistory.processInitialToken();
74 mainTabPanel.initialize();
75 tabsRoot.removeStyleName("hidden");
76 }
77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698