1 package info.mikethomas.fahview.v6project.properties;
2
3 /*
4 * #%L
5 * This file is part of FAHView-v6project.
6 * %%
7 * Copyright (C) 2011 - 2017 Mike Thomas <mikepthomas@outlook.com>
8 * %%
9 * FAHView is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
13 * %
14 * FAHView is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 * %
19 * You should have received a copy of the GNU General Public License
20 * along with FAHView. If not, see <http://www.gnu.org/licenses/>.
21 * #L%
22 */
23
24 import javax.swing.JComponent;
25 import javax.swing.JPanel;
26 import org.netbeans.spi.project.ui.support.ProjectCustomizer;
27 import org.openide.util.Lookup;
28 import org.openide.util.NbBundle;
29
30 /**
31 * <p>GeneralClientProperties class.</p>
32 *
33 * @author <a href="mailto:mikepthomas@outlook.com">Michael Thomas</a>
34 * @version $Id: $Id
35 */
36 public class GeneralClientProperties
37 implements ProjectCustomizer.CompositeCategoryProvider {
38
39 /** Constant <code>GENERAL="General"</code> */
40 private static final String GENERAL = "General";
41
42 /**
43 * <p>createGeneral.</p>
44 *
45 * @return a {@link info.mikethomas.fahview.v6project.properties.GeneralClientProperties} object.
46 */
47 @ProjectCustomizer.CompositeCategoryProvider.Registration(
48 projectType = "info-mikethomas-fahview", position = 10)
49 public static GeneralClientProperties createGeneral() {
50 return new GeneralClientProperties();
51 }
52
53 /** {@inheritDoc} */
54 @NbBundle.Messages("LBL_Config_General=General")
55 @Override
56 public ProjectCustomizer.Category createCategory(Lookup context) {
57 return ProjectCustomizer.Category.create(
58 GENERAL,
59 Bundle.LBL_Config_General(),
60 null);
61 }
62
63 /** {@inheritDoc} */
64 @Override
65 public JComponent createComponent(ProjectCustomizer.Category category, Lookup context) {
66 return new JPanel();
67 }
68 }