1 11 package org.eclipse.pde.internal.ui.editor.site; 12 13 import org.eclipse.pde.internal.ui.IHelpContextIds; 14 import org.eclipse.pde.internal.ui.IPDEUIConstants; 15 import org.eclipse.pde.internal.ui.PDEPlugin; 16 import org.eclipse.pde.internal.ui.PDEPluginImages; 17 import org.eclipse.pde.internal.ui.PDEUIMessages; 18 import org.eclipse.pde.internal.ui.editor.FormLayoutFactory; 19 import org.eclipse.pde.internal.ui.editor.PDEFormEditor; 20 import org.eclipse.pde.internal.ui.editor.PDEFormPage; 21 import org.eclipse.ui.PlatformUI; 22 import org.eclipse.ui.forms.IManagedForm; 23 import org.eclipse.ui.forms.widgets.ScrolledForm; 24 25 29 public class ArchivePage extends PDEFormPage { 30 public static final String PAGE_ID = "archives"; private DescriptionSection fDescSection; 32 private MirrorsSection fMirrorsSection; 33 private ArchiveSection fArchiveSection; 34 35 public ArchivePage(PDEFormEditor editor) { 36 super(editor, PAGE_ID, PDEUIMessages.ArchivePage_name); 37 } 38 protected void createFormContent(IManagedForm mform) { 39 super.createFormContent(mform); 40 ScrolledForm form = mform.getForm(); 41 form.getBody().setLayout(FormLayoutFactory.createFormGridLayout(false, 1)); 42 43 fDescSection = new DescriptionSection(this, form.getBody()); 44 fArchiveSection = new ArchiveSection(this, form.getBody()); 45 fMirrorsSection = new MirrorsSection(this, form.getBody()); 46 47 mform.addPart(fDescSection); 48 mform.addPart(fMirrorsSection); 49 mform.addPart(fArchiveSection); 50 51 PlatformUI.getWorkbench().getHelpSystem().setHelp(form.getBody(), IHelpContextIds.MANIFEST_SITE_ARCHIVES); 52 form.setText(PDEUIMessages.ArchivePage_title); 53 form.setImage(PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_JAVA_LIB_OBJ)); 54 } 55 56 protected String getHelpResource() { 57 return IPDEUIConstants.PLUGIN_DOC_ROOT + "guide/tools/editors/site_editor/archives.htm"; } 59 } 60 | Popular Tags |