KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > editor > site > ArchivePage


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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 /**
26  *
27  * Features page.
28  */

29 public class ArchivePage extends PDEFormPage {
30     public static final String JavaDoc PAGE_ID = "archives"; //$NON-NLS-1$
31
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 JavaDoc getHelpResource() {
57         return IPDEUIConstants.PLUGIN_DOC_ROOT + "guide/tools/editors/site_editor/archives.htm"; //$NON-NLS-1$
58
}
59 }
60
Popular Tags