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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: frontend/client/src/autotest/planner/TestPlannerClient.java
diff --git a/frontend/client/src/autotest/planner/TestPlannerClient.java b/frontend/client/src/autotest/planner/TestPlannerClient.java
new file mode 100644
index 0000000000000000000000000000000000000000..51e078cebd576b53231810a07f741efcf915eed6
--- /dev/null
+++ b/frontend/client/src/autotest/planner/TestPlannerClient.java
@@ -0,0 +1,77 @@
+package autotest.planner;
+
+import autotest.common.CustomHistory;
+import autotest.common.JsonRpcProxy;
+import autotest.common.SiteCommonClassFactory;
+import autotest.common.StaticDataRepository;
+import autotest.common.ui.CustomTabPanel;
+import autotest.common.ui.NotifyManager;
+import autotest.planner.triage.TriageViewTab;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.ui.RootPanel;
+
+public class TestPlannerClient implements EntryPoint {
+
+ private TestPlanSelector planSelector = new TestPlanSelector();
+ private TestPlanSelectorDisplay planSelectorView = new TestPlanSelectorDisplay();
+
+ private OverviewTab overviewTab = new OverviewTab();
+ private OverviewTabDisplay overviewTabDisplay = new OverviewTabDisplay();
+
+ private MachineViewTab machineViewTab = new MachineViewTab();
+ private MachineViewTabDisplay machineViewTabDisplay = new MachineViewTabDisplay();
+
+ private TestViewTab testViewTab = new TestViewTab();
+ private TestViewTabDisplay testViewTabDisplay = new TestViewTabDisplay();
+
+ private TriageViewTab triageViewTab = new TriageViewTab(planSelector);
+
+ private AutoprocessedTab autoprocessedTab = new AutoprocessedTab();
+ private AutoprocessedTabDisplay autoprocessedTabDisplay = new AutoprocessedTabDisplay();
+
+ private HistoryTab historyTab = new HistoryTab();
+ private HistoryTabDisplay historyTabDisplay = new HistoryTabDisplay();
+
+ private CustomTabPanel mainTabPanel = new CustomTabPanel();
+
+ public void onModuleLoad() {
+ JsonRpcProxy.setDefaultBaseUrl(JsonRpcProxy.PLANNER_BASE_URL);
+
+ NotifyManager.getInstance().initialize();
+
+ StaticDataRepository.getRepository().refresh(
+ new StaticDataRepository.FinishedCallback() {
+ public void onFinished() {
+ finishLoading();
+ }
+ });
+ }
+
+ private void finishLoading() {
+ SiteCommonClassFactory.globalInitialize();
+
+ overviewTab.bindDisplay(overviewTabDisplay);
+ machineViewTab.bindDisplay(machineViewTabDisplay);
+ testViewTab.bindDisplay(testViewTabDisplay);
+ autoprocessedTab.bindDisplay(autoprocessedTabDisplay);
+ historyTab.bindDisplay(historyTabDisplay);
+
+ planSelectorView.initialize();
+ planSelector.bindDisplay(planSelectorView);
+ mainTabPanel.getCommonAreaPanel().add(planSelectorView);
+
+ mainTabPanel.addTabView(overviewTabDisplay);
+ mainTabPanel.addTabView(machineViewTabDisplay);
+ mainTabPanel.addTabView(testViewTabDisplay);
+ mainTabPanel.addTabView(triageViewTab);
+ mainTabPanel.addTabView(autoprocessedTabDisplay);
+ mainTabPanel.addTabView(historyTabDisplay);
+
+ final RootPanel tabsRoot = RootPanel.get("tabs");
+ tabsRoot.add(mainTabPanel);
+ CustomHistory.processInitialToken();
+ mainTabPanel.initialize();
+ tabsRoot.removeStyleName("hidden");
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698