Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/intro/SampleDescription.java |
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/intro/SampleDescription.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/intro/SampleDescription.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a054d7d1df7e6b53499dbb82cbffd1d5696c9c91 |
--- /dev/null |
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/intro/SampleDescription.java |
@@ -0,0 +1,46 @@ |
+/* |
+ * Copyright 2012 Google Inc. |
+ * |
+ * Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except |
+ * in compliance with the License. You may obtain a copy of the License at |
+ * |
+ * http://www.eclipse.org/legal/epl-v10.html |
+ * |
+ * Unless required by applicable law or agreed to in writing, software distributed under the License |
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
+ * or implied. See the License for the specific language governing permissions and limitations under |
+ * the License. |
+ */ |
+package com.google.dart.tools.ui.internal.intro; |
+ |
+import java.io.File; |
+ |
+/** |
+ * Description for Dart sample. |
+ */ |
+public final class SampleDescription implements Comparable<SampleDescription> { |
+ public final File directory; |
+ public final String file; |
+ public final String name; |
+ public final String description; |
+ public final File logo; |
+ public final int order; |
+ |
+ public SampleDescription(File directory, String file, String name, String description, File logo, |
+ int order) { |
+ this.directory = directory; |
+ this.file = file; |
+ this.name = name; |
+ this.description = description; |
+ this.logo = logo; |
+ this.order = order; |
+ } |
+ |
+ @Override |
+ public int compareTo(SampleDescription o) { |
+ if (order != o.order) { |
+ return order - o.order; |
+ } |
+ return name.compareTo(o.name); |
+ } |
+} |