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 86926 - Code generation does not remove unnecessary source files
Summary: Code generation does not remove unnecessary source files
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-11 12:37 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 21:09 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
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-11 12:37:00 UTC
Steps to reproduce:

- Create a Java-Platform Model UML project
- Add a package with scoped Class diagram
- Put a Class element on the diagram and name It
- Generate code for the UML project
  The source code is generated:
  -----------------------------------------------------------
  Begin processing Generate Code: 1 items

  Code Generation selected options:
  Exporting sources to folder: C:/Documents and
Settings/andromeda/test/re/05\UMLProject1SourceCode\src

  Processing element 1 of 1: Class pack::MyClass

  ================================
  Task Successful (total time: 1 seconds)
  -----------------------------------------------------------
- Remove the Class element from the model
- Generate code for the UML project
  'Error' dialog appears: 'No elements found'

  The generated java class is not removed.
Comment 1 Craig Conover 2006-10-20 02:14:46 UTC
This is as designed. The Gen Code action does not proactively remove elements
from the target source folder, it only regenerates existing sources and
generates elements that don't have existing sources.

This may be addressed for FCS.