sftemplateswizard/com.nokia.s60tools.symbianfoundationtemplates/src/com/nokia/s60tools/symbianfoundationtemplates/ui/wizards/s60/classwizards/MClassWizard.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.classwizards; |
|
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 wizard. |
|
27 * |
|
28 */ |
|
29 public class MClassWizard extends S60TemplateWizard { |
|
30 private final static S60TemplatePageType pageType = S60TemplatePageType.M_CLASS_PAGE; |
|
31 |
|
32 public MClassWizard() { |
|
33 super(pageType.getImage()); |
|
34 } |
|
35 @Override |
|
36 public void addPages() { |
|
37 addPage(new ClassPage(pageType)); |
|
38 } |
|
39 |
|
40 @Override |
|
41 public void init(IWorkbench workbench, IStructuredSelection selection) { |
|
42 setWindowTitle(pageType.getTitle()); |
|
43 } |
|
44 } |