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

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/update/UpdatePreferencePage.java

Issue 66253002: Version 0.8.10.9 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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: dart/editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/update/UpdatePreferencePage.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/update/UpdatePreferencePage.java (revision 30098)
+++ dart/editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/update/UpdatePreferencePage.java (working copy)
@@ -38,7 +38,26 @@
public static final String PAGE_ID = "com.google.dart.tools.ui.update.updatePreferencePage"; //$NON-NLS-1$
+ private static String getChannelLabel() {
+ //TODO (pquitslund): move to UpdateUtils
+ String updateUrl = UpdateCore.getUpdateUrl();
+ if (updateUrl != null) {
+ if (updateUrl.contains("/channels/be/")) {
+ return "(BLEEDING EDGE) ";
+ }
+ if (updateUrl.contains("/channels/dev/")) {
+ return "(DEV) ";
+ }
+ if (updateUrl.contains("/channels/stable/")) {
+ return "(STABLE) ";
+ }
+ }
+ //Fall through
+ return "";
+ }
+
private Button autoDownloadCheck;
+
private Group statusGroup;
@Override
@@ -97,7 +116,9 @@
GridLayoutFactory.fillDefaults().numColumns(1).margins(8, 8).applyTo(statusGroup);
CLabel currentVersionLabel = new CLabel(statusGroup, SWT.NONE);
- currentVersionLabel.setText(NLS.bind("Dart Editor build {0}", UpdateCore.getCurrentRevision()));
+ currentVersionLabel.setText(NLS.bind(
+ "Dart Editor " + getChannelLabel() + "build {0}",
+ UpdateCore.getCurrentRevision()));
GridDataFactory.fillDefaults().applyTo(currentVersionLabel);
new UpdateStatusControl(statusGroup, null, new Point(0, 0), false);

Powered by Google App Engine
This is Rietveld 408576698