1 /*******************************************************************************2 * Copyright (c) 2005 IBM Corporation and others.3 * All rights reserved. This program and the accompanying materials4 * are made available under the terms of the Eclipse Public License v1.05 * which accompanies this distribution, and is available at6 * http://www.eclipse.org/legal/epl-v10.html7 *8 * Contributors:9 * IBM Corporation - initial API and implementation10 *******************************************************************************/11 package org.eclipse.pde.internal.ui.wizards.templates;12 13 import org.eclipse.pde.internal.ui.PDEUIMessages;14 import org.eclipse.pde.internal.ui.wizards.plugin.PluginFieldData;15 import org.eclipse.pde.ui.IFieldData;16 import org.eclipse.pde.ui.templates.ITemplateSection;17 import org.eclipse.pde.ui.templates.NewPluginTemplateWizard;18 19 20 public class HelloOSGiNewWizard extends NewPluginTemplateWizard {21 22 protected PluginFieldData fData;23 /* (non-Javadoc)24 * @see org.eclipse.pde.ui.templates.AbstractNewPluginTemplateWizard#init(org.eclipse.pde.ui.IFieldData)25 */26 public void init(IFieldData data) {27 super.init(data);28 fData = (PluginFieldData) data;29 setWindowTitle(PDEUIMessages.HelloOSGiNewWizard_title); 30 }31 /* (non-Javadoc)32 * @see org.eclipse.pde.ui.templates.NewPluginTemplateWizard#createTemplateSections()33 */34 public ITemplateSection[] createTemplateSections() {35 return new ITemplateSection[] {new HelloOSGiTemplate(this)};36 }37 38 public String [] getImportPackages() {39 return new String [] {"org.osgi.framework;version=\"1.3.0\""}; //$NON-NLS-1$40 }41 42 }43