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

Unified Diff: editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/dialogs/AboutDartDialog.java

Issue 61643010: Messaging for channels in the editor (dartbug.com/6980). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/update/UpdatePreferencePage.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/dialogs/AboutDartDialog.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/dialogs/AboutDartDialog.java (revision 30076)
+++ editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/dialogs/AboutDartDialog.java (working copy)
@@ -57,6 +57,22 @@
private static final String NEW_LINE = System.getProperty("line.separator");
+ private static String getChannelLabel() {
+ //TODO (pquitslund): move to UpdateUtils
+ String updateUrl = UpdateCore.getUpdateUrl();
danrubel 2013/11/07 23:20:20 Can getUpdateUrl() ever return 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 final UpdateListener updateListener = new UpdateAdapter() {
@Override
public void installing() {
@@ -236,7 +252,7 @@
}
private String getVersion() {
- return DartToolsPlugin.getVersionString();
+ return DartToolsPlugin.getVersionString() + getChannelLabel();
}
private Label newLabel(int style) {
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/ui/update/UpdatePreferencePage.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698