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 78762 - Convert to J2SE project doesn't set Main Class
Summary: Convert to J2SE project doesn't set Main Class
Status: VERIFIED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: BlueJ (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-21 12:39 UTC by Marian Mirilovic
Modified: 2006-06-27 10:09 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 Marian Mirilovic 2006-06-21 12:39:25 UTC
NetBeans 5.0 BlueJ edition 200601251500 
JDK 1.5.0_06

Steps to reproduce:
- run IDE
- create BlueJ project
- create MainClass
- set the main class for project to MainClass
- convert to J2SE Project
-> the main class is not set
Comment 1 Milos Kleint 2006-06-22 10:37:23 UTC
non trivial fix, we don't depend on j2se project type and there's no API for
accessing/writing the properties of the project. use of complex reflections
probably necessary.
1. from j2se project retrieve the instance of Updatehelper
2. get editable props from that and updat ethe main.class property.
3. save the j2se project


Comment 2 Milos Kleint 2006-06-23 10:35:15 UTC
oh well, just hard copied the property values.
Comment 3 Marian Mirilovic 2006-06-27 10:09:09 UTC
verified in NB-bluej(200603142030)