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 87072 - [GenCode] Default Folder Location points to the Project location not to src dir
Summary: [GenCode] Default Folder Location points to the Project location not to src dir
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Craig Conover
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-13 09:55 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 21:06 UTC (History)
0 users

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 Alexandr Scherbatiy 2006-10-13 09:55:57 UTC
It is a regression.


Steps to reproduce: 

- Remove userdir
- Start IDE
- Create a Java-Platform Model UML project 
  Select 'C:\Temp\uml' project location
- Create a Class diagram
- Put a Class element on the diagram and name it
- Select the elementand invoke 'Generate Code'
  'Generate Code' dialog pops up
  The 'Source Folder Location' is 'C:\Temp\uml' 
  instead of 'C:\Temp\uml\UmlProjectSourceCode\src'
Comment 1 Craig Conover 2006-10-13 14:56:20 UTC
It works from the Project node, but not on the Element. Should be easy to fix.
Comment 2 Craig Conover 2006-10-13 16:32:53 UTC
The element path was missing the appending of the suggested project name/suffix
and src folder. These values have been localized as well.

Also added a defensive code path that just uses the user's home dir as the base
dir in case the other code paths fail (which is most unlikely). 
Comment 3 Alexandr Scherbatiy 2006-10-16 10:23:07 UTC
verified