Initialize
[sdk/ide/product.git] / org.eclipse.jst.pagedesigner / src / org / eclipse / jst / pagedesigner / properties / internal / AllPropertySectionDescriptor.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007 Oracle Corporation and others.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the terms of the Eclipse Public License v1.0\r
5  * which accompanies this distribution, and is available at\r
6  * http://www.eclipse.org/legal/epl-v10.html\r
7  * \r
8  * Contributors:\r
9  *     Oracle Corporation - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.eclipse.jst.pagedesigner.properties.internal;\r
12 \r
13 import org.eclipse.jst.pagedesigner.properties.AllPropertySection;\r
14 import org.eclipse.ui.views.properties.tabbed.AbstractSectionDescriptor;\r
15 import org.eclipse.ui.views.properties.tabbed.ISection;\r
16 \r
17 /**\r
18  * SectionDescriptor for the WPE Attributes tab\r
19  */\r
20 public class AllPropertySectionDescriptor extends AbstractSectionDescriptor {\r
21         /**\r
22          * Id for the WPE AllPropertySectionDescriptor\r
23          */\r
24         public static final String ID = "AllPropertySectionDescriptor"; //$NON-NLS-1$\r
25 \r
26         private ISection section;\r
27 \r
28         public String getId() {\r
29                 return ID;\r
30         }\r
31 \r
32         public ISection getSectionClass() {\r
33                 if (section == null){\r
34                         section = new AllPropertySection();\r
35                 }\r
36                 return section;\r
37         }\r
38 \r
39         public String getTargetTab() {\r
40                 return AttributesTabDescriptor.TAB_ID;\r
41         }\r
42 \r
43 }\r