1 19 20 package org.netbeans.modules.apisupport.project.ui.customizer; 21 22 import javax.swing.JComponent ; 23 import org.netbeans.spi.project.ui.support.ProjectCustomizer; 24 import org.openide.util.Lookup; 25 import org.openide.util.NbBundle; 26 27 31 public class SuiteCustomizerBasicBrandingFactory implements ProjectCustomizer.CompositeCategoryProvider { 32 33 34 public SuiteCustomizerBasicBrandingFactory() { 35 } 36 37 public ProjectCustomizer.Category createCategory(Lookup context) { 38 return ProjectCustomizer.Category.create( 39 SuiteCustomizer.APPLICATION, 40 NbBundle.getMessage(SuiteCustomizerBasicBrandingFactory.class, "LBL_Application"), 41 null); 42 } 43 44 public JComponent createComponent(ProjectCustomizer.Category category, Lookup context) { 45 SuiteProperties props = context.lookup(SuiteProperties.class); 46 BasicCustomizer.SubCategoryProvider prov = context.lookup(BasicCustomizer.SubCategoryProvider.class); 47 assert props != null; 48 assert prov != null; 49 return new SuiteCustomizerBasicBranding(props, category, prov); 50 } 51 52 } 53 | Popular Tags |