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 - Expression MODE is undefined on line 28, column 38 in Templates/NetBeansModuleDevelopment-files/templateTopComponent637.java
Summary: Expression MODE is undefined on line 28, column 38 in Templates/NetBeansModul...
Status: RESOLVED INCOMPLETE
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 7.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-22 06:28 UTC by borre
Modified: 2014-01-10 08:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.