01: /*******************************************************************************
02: * Copyright (c) 2005, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.templates.osgi;
11:
12: import org.eclipse.pde.internal.ui.templates.PDETemplateMessages;
13: import org.eclipse.pde.ui.IFieldData;
14: import org.eclipse.pde.ui.templates.ITemplateSection;
15: import org.eclipse.pde.ui.templates.NewPluginTemplateWizard;
16:
17: public class HelloOSGiNewWizard extends NewPluginTemplateWizard {
18:
19: /* (non-Javadoc)
20: * @see org.eclipse.pde.ui.templates.AbstractNewPluginTemplateWizard#init(org.eclipse.pde.ui.IFieldData)
21: */
22: public void init(IFieldData data) {
23: super .init(data);
24: setWindowTitle(PDETemplateMessages.HelloOSGiNewWizard_title);
25: }
26:
27: /* (non-Javadoc)
28: * @see org.eclipse.pde.ui.templates.NewPluginTemplateWizard#createTemplateSections()
29: */
30: public ITemplateSection[] createTemplateSections() {
31: return new ITemplateSection[] { new HelloOSGiTemplate() };
32: }
33:
34: public String[] getImportPackages() {
35: return new String[] { "org.osgi.framework;version=\"1.3.0\"" }; //$NON-NLS-1$
36: }
37:
38: }
|