This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 209905

Summary: Expression MODE is undefined on line 28, column 38 in Templates/NetBeansModuleDevelopment-files/templateTopComponent637.java
Product: apisupport Reporter: borre
Component: TemplatesAssignee: Martin Kozeny <mkozeny>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: mkleint
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:

Description borre 2012-03-22 06:28:13 UTC
When adding a new Window (Netbeans Platform Top Component) I an not able to select the mode in which to place the new TopComponent. The Drop Down List is empty. I leave it and completes the wizard. The generated code contains the following:
@TopComponent.Registration(mode = "Expression MODE is undefined on line 28, column 38 in Templates/NetBeansModuleDevelopment-files/templateTopComponent637.java."
Comment 1 Milos Kleint 2012-03-23 06:41:31 UTC
BasicSettingsPanel.setupCombo() relies on         FileSystem fs = data.getProject().getLookup().lookup(NbModuleProvider.class).getEffectiveSystemFilesystem();
which can take a long long time in a maven based application (in some cases needs to download the entire platform to local cache)
IMHO setupCombo() should first initiate the combo with default values and then consult NbModuleProvider for finetuned information.

I suppose this is primarily an apisupport issue. reassigning.
Comment 2 Martin Kozeny 2013-08-14 12:29:17 UTC
What do you mean by initiate the combo with default values? All values are fetched in DesignSupport.existingModes()...
Comment 3 Martin Kozeny 2014-01-10 08:45:05 UTC
Closing as INCOMPLETE. Feel free to reopen if there will be any additional info.