1 /** |
|
2 * Copyright (c) 2009 Symbian Foundation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Symbian Foundation - initial contribution. |
|
11 * Contributors: |
|
12 * Description: |
|
13 * Overview: |
|
14 * Details: |
|
15 * Platforms/Drives/Compatibility: |
|
16 * Assumptions/Requirement/Pre-requisites: |
|
17 * Failures and causes: |
|
18 */ |
|
19 package org.symbian.tools.wrttools.wizards; |
|
20 |
|
21 import org.eclipse.core.databinding.DataBindingContext; |
|
22 import org.eclipse.swt.widgets.Composite; |
|
23 |
|
24 public class FlickrProjectDetailsWizardPage extends WRTProjectFilesWizardPage { |
|
25 |
|
26 public FlickrProjectDetailsWizardPage(WizardContext context, |
|
27 DataBindingContext bindingContext) { |
|
28 super(context, bindingContext); |
|
29 } |
|
30 |
|
31 @Override |
|
32 protected void addTemplateControls(Composite root) { |
|
33 context.getExtensions().put("flickrUrl", |
|
34 "http://flickr.com/photos/symbianfoundation"); |
|
35 context.createLabel(root, "Flickr URL:"); |
|
36 context.createTextForExt(root, "flickrUrl", "Flickr URL", |
|
37 bindingContext, this); |
|
38 context.createLabel(root, ""); |
|
39 context.createLabel(root, ""); |
|
40 |
|
41 } |
|
42 |
|
43 public static final class Factory implements IWizardPageFactory { |
|
44 public WRTProjectFilesWizardPage createPage(WizardContext context, |
|
45 DataBindingContext bindingContext) { |
|
46 return new FlickrProjectDetailsWizardPage(context, bindingContext); |
|
47 } |
|
48 } |
|
49 } |
|