sftemplateswizard/com.nokia.s60tools.symbianfoundationtemplates/src/com/nokia/s60tools/symbianfoundationtemplates/ui/wizards/s60/headerwizards/MHeaderWizard.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 package com.nokia.s60tools.symbianfoundationtemplates.ui.wizards.s60.headerwizards; |
|
18 |
|
19 import org.eclipse.jface.viewers.IStructuredSelection; |
|
20 import org.eclipse.ui.IWorkbench; |
|
21 |
|
22 import com.nokia.s60tools.symbianfoundationtemplates.ui.wizards.s60.S60TemplatePageType; |
|
23 import com.nokia.s60tools.symbianfoundationtemplates.ui.wizards.s60.S60TemplateWizard; |
|
24 |
|
25 /** |
|
26 * M class header wizard. |
|
27 * |
|
28 */ |
|
29 public class MHeaderWizard extends S60TemplateWizard { |
|
30 private final static S60TemplatePageType pageType = S60TemplatePageType.M_HEADER_PAGE; |
|
31 |
|
32 public MHeaderWizard() { |
|
33 super(pageType.getImage()); |
|
34 } |
|
35 |
|
36 @Override |
|
37 public void addPages() { |
|
38 addPage(new HeaderPage(pageType)); |
|
39 } |
|
40 |
|
41 @Override |
|
42 public void init(IWorkbench workbench, IStructuredSelection selection) { |
|
43 setWindowTitle(pageType.getTitle()); |
|
44 } |
|
45 } |