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 42520

Summary: Provide UI support for resolution of configuration problems
Product: projects Reporter: David Konecny <dkonecny>
Component: Generic InfrastructureAssignee: David Konecny <dkonecny>
Status: RESOLVED FIXED    
Severity: blocker CC: jrojcek
Priority: P2 Keywords: UI
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 41537    
Attachments: commit log

Description David Konecny 2004-04-27 15:24:32 UTC
Opening freshly checked out project can result in
several broken links: e.g. external jar, explicit
platform, or external source root. There must be a
UI at least for resolving of external source roots
otherwise user is not able to open project.
Comment 1 Jesse Glick 2004-04-27 16:00:31 UTC
Back to you for now. :-)

TBD whether we need some generic UI (i.e. projects/projectuiapi +
projects/projectui); I think for now we can do it all directly in
java/j2seproject.

The suggestion is: let the project be opened, with no special dialogs
etc.; but mark its icon with some sort of error badge and a tooltip
like "Contains configuration problems". Provide an action (e.g.
context menu) to "Resolve Configuration Problems" or similar, which
would open some dialogs (e.g.) letting you select any information
needed to make the project buildable and runnable.

To start with we would just do this for missing external sources.
Later we could add support for missing external libraries, etc.
Comment 2 Jesse Glick 2004-05-04 20:35:13 UTC
Done?
Comment 3 David Konecny 2004-05-05 08:56:06 UTC
Yes. I expect there will be UI tuning but that should not take much time. 

Jano, this reminds me that our schedule is pretty tight and so
whatever solution you propose please keep in mind that it should be
simple to do.
Comment 4 David Konecny 2004-05-05 09:11:42 UTC
Created attachment 14707 [details]
commit log
Comment 5 David Konecny 2004-05-05 09:15:21 UTC
I attached the cvs log which could be inspiration for other project
types how to use it. Check following classes:
* java/project: BrokenReferencesSupport - API
* java/j2seproject: J2SEPhysicalViewProvider - usage of API in j2seproject

Keep in mind that UI is preliminary and can change.