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

Side by Side Diff: dart/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/intro/IntroEditor.java

Issue 64033002: Version 0.8.10.8 (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. 2 * Copyright (c) 2012, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 label.setImage(DartToolsPlugin.getImage("samples/tutorial.png")); 204 label.setImage(DartToolsPlugin.getImage("samples/tutorial.png"));
205 label.setCursor(getSite().getShell().getDisplay().getSystemCursor(SWT.CURSOR _HAND)); 205 label.setCursor(getSite().getShell().getDisplay().getSystemCursor(SWT.CURSOR _HAND));
206 label.addMouseListener(new MouseAdapter() { 206 label.addMouseListener(new MouseAdapter() {
207 @Override 207 @Override
208 public void mouseUp(MouseEvent e) { 208 public void mouseUp(MouseEvent e) {
209 ExternalBrowserUtil.openInExternalBrowser(href); 209 ExternalBrowserUtil.openInExternalBrowser(href);
210 } 210 }
211 }); 211 });
212 212
213 FormText formText = toolkit.createFormText(composite, true); 213 FormText formText = toolkit.createFormText(composite, true);
214 formText.setText("<form><p><a href=\"a\">Tutorial</a><br></br>" 214 formText.setText("<form><p><a href=\"a\">Code Lab</a><br></br>"
215 + "Learn Dart with pirates</p></form>", true, false); 215 + "Learn Dart with pirates</p></form>", true, false);
216 formText.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapD ata.TOP, 1, 1)); 216 formText.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapD ata.TOP, 1, 1));
217 formText.addHyperlinkListener(openLink(href)); 217 formText.addHyperlinkListener(openLink(href));
218 formText.setFont(bigFont); 218 formText.setFont(bigFont);
219 219
220 composite = toolkit.createComposite(client); 220 composite = toolkit.createComposite(client);
221 lc = new TableWrapLayout(); 221 lc = new TableWrapLayout();
222 lc.numColumns = 2; 222 lc.numColumns = 2;
223 composite.setLayout(lc); 223 composite.setLayout(lc);
224 224
225 final String href2 = "http://api.dartlang.org/docs/releases/latest/?utm_sour ce=editor&utm_medium=welcome&utm_campaign=newuser"; 225 final String href2 = "https://www.dartlang.org/docs/?utm_source=editor&utm_m edium=welcome&utm_campaign=newuser";
226 label = toolkit.createLabel(composite, "", SWT.NONE); 226 label = toolkit.createLabel(composite, "", SWT.NONE);
227 label.setImage(DartToolsPlugin.getImage("samples/sdk.png")); 227 label.setImage(DartToolsPlugin.getImage("samples/docs.png"));
228 label.setCursor(getSite().getShell().getDisplay().getSystemCursor(SWT.CURSOR _HAND)); 228 label.setCursor(getSite().getShell().getDisplay().getSystemCursor(SWT.CURSOR _HAND));
229 label.addMouseListener(new MouseAdapter() { 229 label.addMouseListener(new MouseAdapter() {
230 @Override 230 @Override
231 public void mouseUp(MouseEvent e) { 231 public void mouseUp(MouseEvent e) {
232 ExternalBrowserUtil.openInExternalBrowser(href2); 232 ExternalBrowserUtil.openInExternalBrowser(href2);
233 } 233 }
234 }); 234 });
235 235
236 formText = toolkit.createFormText(composite, true); 236 formText = toolkit.createFormText(composite, true);
237 formText.setText("<form><p><a href=\"a\">Browse Dart SDK</a><br></br>" 237 formText.setText("<form><p><a href=\"a\">Programmers Guide</a><br></br>"
238 + "Lookup a call in the API reference</p></form>", true, false); 238 + "Docs, articles and more</p></form>", true, false);
239 formText.setFont(bigFont); 239 formText.setFont(bigFont);
240 formText.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapD ata.TOP, 1, 1)); 240 formText.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapD ata.TOP, 1, 1));
241 formText.addHyperlinkListener(openLink(href2)); 241 formText.addHyperlinkListener(openLink(href2));
242 section.setClient(client); 242 section.setClient(client);
243 243
244 // create the Early Access Area 244 // create the Early Access Area
245 section = toolkit.createSection(form.getBody(), Section.TITLE_BAR); 245 section = toolkit.createSection(form.getBody(), Section.TITLE_BAR);
246 section.setText("Early Access"); 246 section.setText("Early Access");
247 section.setFont(bigFont); 247 section.setFont(bigFont);
248 client = toolkit.createComposite(section); 248 client = toolkit.createComposite(section);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 private HyperlinkAdapter openLink(final String href) { 357 private HyperlinkAdapter openLink(final String href) {
358 return new HyperlinkAdapter() { 358 return new HyperlinkAdapter() {
359 @Override 359 @Override
360 public void linkActivated(HyperlinkEvent e) { 360 public void linkActivated(HyperlinkEvent e) {
361 ExternalBrowserUtil.openInExternalBrowser(href); 361 ExternalBrowserUtil.openInExternalBrowser(href);
362 } 362 }
363 }; 363 };
364 } 364 }
365 365
366 } 366 }
OLDNEW
« no previous file with comments | « dart/editor/tools/plugins/com.google.dart.tools.ui/samples/docs.png ('k') | dart/runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698