void () { FileTemplatesScheme scheme = manager.getCurrentScheme(); manager.setCurrentScheme(myScheme); myTemplatesList.init(getTemplates(FileTemplateManager.DEFAULT_TEMPLATES_CATEGORY)); myIncludesList.init(getTemplates(FileTemplateManager.INCLUDES_TEMPLATES_CATEGORY)); myCodeTemplatesList.init(getTemplates(FileTemplateManager.CODE_TEMPLATES_CATEGORY)); myTabbedPane.setEnabledAt(2, !myCodeTemplatesList.templates.isEmpty()); if (otherTemplatesList != null) { otherTemplatesList.init(getTemplates(FileTemplateManager.J2EE_TEMPLATES_CATEGORY)); } manager.setCurrentScheme(scheme); }