1 11 package org.eclipse.pde.internal.ui.templates.osgi; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.core.runtime.IProgressMonitor; 15 import org.eclipse.jface.wizard.Wizard; 16 import org.eclipse.jface.wizard.WizardPage; 17 import org.eclipse.pde.core.plugin.IPluginReference; 18 import org.eclipse.pde.internal.ui.templates.IHelpContextIds; 19 import org.eclipse.pde.internal.ui.templates.PDETemplateMessages; 20 import org.eclipse.pde.internal.ui.templates.PDETemplateSection; 21 22 public class OSGiPreferencesServiceTemplate extends PDETemplateSection { 23 24 public static final String COLOR = "color"; 26 public OSGiPreferencesServiceTemplate() { 27 setPageCount(1); 28 addOption( 29 COLOR, 30 PDETemplateMessages.OSGiPreferencesServiceTemplate_label, 31 PDETemplateMessages.OSGiPreferencesServiceTemplate_value, 32 0); 33 } 34 35 public void addPages(Wizard wizard) { 36 WizardPage page = createPage(0, IHelpContextIds.TEMPLATE_RCP_MAIL); 37 page.setTitle(PDETemplateMessages.OSGiPreferencesServiceTemplate_pageTitle); 38 page.setDescription(PDETemplateMessages.OSGiPreferencesServiceTemplate_pageDescription); 39 wizard.addPage(page); 40 markPagesAdded(); 41 } 42 43 48 public String getSectionId() { 49 return "OSGiPreferencesService"; } 51 52 55 protected void updateModel(IProgressMonitor monitor) throws CoreException { 56 57 } 58 59 62 public String getUsedExtensionPoint() { 63 return null; 64 } 65 66 69 public boolean isDependentOnParentWizard() { 70 return true; 71 } 72 73 76 public int getNumberOfWorkUnits() { 77 return super.getNumberOfWorkUnits() + 1; 78 } 79 80 public IPluginReference[] getDependencies(String schemaVersion) { 81 return new IPluginReference[0]; 82 } 83 } 84 | Popular Tags |