1 19 20 package org.netbeans.modules.apisupport.project.ui.wizard; 21 22 import java.awt.Component ; 23 import org.netbeans.modules.apisupport.project.Util; 24 import org.openide.util.HelpCtx; 25 26 38 final class LibraryConfWizardPanel extends BasicWizardPanel.NewTemplatePanel { 39 40 41 private BasicConfVisualPanel visualPanel; 42 43 LibraryConfWizardPanel(final NewModuleProjectData data) { 44 super(data); 45 } 46 47 void reloadData() { 48 if (getData().getCodeNameBase() == null) { 49 String dotName = BasicConfVisualPanel.EXAMPLE_BASE_NAME + getData().getProjectName(); 50 getData().setCodeNameBase(Util.normalizeCNB(dotName)); 51 } 52 if (getData().getProjectDisplayName() == null) { 53 getData().setProjectDisplayName(getData().getProjectName()); 54 } 55 visualPanel.refreshData(); 56 } 57 58 void storeData() { 59 visualPanel.storeData(); 60 } 61 62 63 public Component getComponent() { 64 if (visualPanel == null) { 65 visualPanel = new BasicConfVisualPanel(getData()); 66 visualPanel.addPropertyChangeListener(this); 67 visualPanel.setName(getMessage("LBL_BasicConfigPanel_Title")); } 69 return visualPanel; 70 } 71 72 public HelpCtx getHelp() { 73 return new HelpCtx(LibraryConfWizardPanel.class); 74 } 75 76 77 78 } 79 | Popular Tags |