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 43287 - Implement Resolve Reference Problems dialog
Summary: Implement Resolve Reference Problems dialog
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Konecny
URL: http://projects.netbeans.org/nonav/bu...
Keywords:
Depends on:
Blocks: 41835
  Show dependency tree
 
Reported: 2004-05-14 16:47 UTC by jrojcek
Modified: 2006-03-24 10:00 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Broken project. (11.04 KB, application/octet-stream)
2004-06-17 14:12 UTC, jrojcek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jrojcek 2004-05-14 16:47:24 UTC
Implement the dialog and contextual menu item which opens 
the dialog.
Comment 1 Petr Hrebejk 2004-05-17 08:29:56 UTC
David is working on references.
Comment 2 David Konecny 2004-05-20 18:46:46 UTC
Jano, I miss text which should be shown in description for each type. 

Also, do you insist on icons? At the moment there are not any (it is
plain listbox) and resolved items automatically disappear. If you want
icons there let me know and attached them to this issue. I would
prefer to leave it as it is, but it is up to you.

The rest is implemented in:
src/org/netbeans/modules/java/project/BrokenReferencesCustomizer.form;
new revision: 1.2; previous revision: 1.1
src/org/netbeans/modules/java/project/BrokenReferencesCustomizer.java;
new revision: 1.3; previous revision: 1.2
src/org/netbeans/modules/java/project/BrokenReferencesModel.java;
new revision: 1.5; previous revision: 1.4
src/org/netbeans/modules/java/project/Bundle.properties;
new revision: 1.9; previous revision: 1.8
src/org/netbeans/spi/java/project/support/ui/BrokenReferencesSupport
new revision: 1.2; previous revision: 1.1
Comment 3 jrojcek 2004-06-17 14:12:25 UTC
Created attachment 15811 [details]
Broken project.
Comment 4 jrojcek 2004-06-17 14:14:36 UTC
John, could you please look at the wording. The broken project is attached.
Comment 5 Pavel Buzek 2004-06-22 11:51:47 UTC
wording suggested by Chris: It should say "Use the Resolve Reference
Problems action on the project's contextual menu to fix the reference
problems."

Comment 6 jrojcek 2004-06-22 12:52:12 UTC
Thanks for the wording correction. I updated the spec.
Comment 7 John Jullion-ceccarelli 2004-06-22 14:20:04 UTC
Sorry for taking so long. Here's my recommendation for the text:

"One or more project resources could not be found. Use project
contextual action Resolve Reference Problems to fix the problems." 
should be:
"One or more project resources could not be found. Right-click the
project in the Projects window and choose Resolve Reference Problems
to find the missing resources."

"Show this message again" should be "Do not show this message again"

"The project depends on other project which was not found. The foreign
project reference is "MySubproject1". Correction: press Resolve button
and find that project."
should be
"Problem: The project classpath includes a reference to the project
called "MySubproject1", but this project was not found. 
Solution: Click Resolve and locate the missing project."

"The project uses file or folder which was not found. The reference
name is "something.jar". Correction: press Resolve button and find
that file/folder."
should be
"Problem: The project uses the file/folder called "something.jar", but
this file/folder was not found.
Solution: Click Resolve and locate the missing file/folder."

"The project is setup to use Java Library with name "my-lib", but this
library was not found. Correction: press Resolve button and create new
library with name "my-lib"."
should be
"Problem: The project uses a Java Library called "my-lib", but this
library was not found. 
Solution: Click Resolve and create a new library called "my-lib"."

Question - what is a Java Library? Is this the type of project? How do
you know that they need to create a new one instead of finding an
existing one?

"The project is setup to use Java Platform with name "jdk15-test", but
this platform was not found. Correction: press Resolve button and
create new platform with name "jdk15-test"."
should be
"Problem: The project uses the Java Platform called "jdk15-test", but
this platform was not found. 
Solution: Click Resolve and create new platform called "jdk15-test".
Comment 8 David Konecny 2004-06-23 14:28:40 UTC
Thanx.

Re. "What is it Java Library": Java Library is logical concept which
allows to define a library which consists of one or more jar files,
associate sources and javadoc to jars, etc. See Tools->Library Manager.

Re. "How do you know that they need to create a new one instead of
finding an existing one?" - I know it. :-) The shared part of project
metadata has reference name of the library and its corresponding
library is simply not found during the project opening.
Comment 9 John Jullion-ceccarelli 2004-06-23 14:57:55 UTC
Cool, so let's use this for the problem description:

"Problem: The project uses a class library called "my-lib", but this
class library was not found. 
Solution: Click Resolve to open the Library Manager and create a new
class library called "my-lib"."
Comment 10 David Konecny 2004-06-23 15:33:28 UTC
If everybody agree I will change the text tomorrow.
Comment 11 jrojcek 2004-06-23 15:38:23 UTC
Looks good to me. Thanks John for the wording.
Comment 12 David Konecny 2004-06-24 10:51:07 UTC
Fixed in:
src/org/netbeans/modules/java/project/BrokenReferencesAlertPanel.form;
new revision: 1.4; previous revision: 1.3
src/org/netbeans/modules/java/project/BrokenReferencesAlertPanel.java;
new revision: 1.4; previous revision: 1.3
src/org/netbeans/modules/java/project/Bundle.properties;
new revision: 1.17; previous revision: 1.16
Comment 13 Marian Mirilovic 2005-12-20 15:47:03 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.