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 135073 - Warning for improper src includes value in Java projects
Summary: Warning for improper src includes value in Java projects
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2008-05-14 19:30 UTC by cf126330
Modified: 2011-08-31 14:07 UTC (History)
1 user (show)

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 cf126330 2008-05-14 19:30:04 UTC
When I set the java project src includes value to "**/*.java", some directories/folders are not
treated as java node, i.e., these nodes' context menu only has "New Empty File..." and "New Folder",
as opposed to the regular items like "New Java Class", "New Java package", etc.  In this case,
the nodes' package name known to the IDE is null, which has caused NPE in refactoring(see issue 134404)

This problem happens in both Favorite View and Project View.  When resetting the src includes to
the default ("**"), everything is back to normal.

It would be great if NB can give some guidance/warning how to set the src includes value. Currently
it has simple instruction on the bottom of the form:
"Sample patterns: com/mycorp/, **/doc-files/, **/*.html"

One option is to add to this instruction something like:
"includes should contain both directories and files (not just **/*.java)for IDE to work properly"
"avoid modifying the includes field; modify excludes instead."

Another option is to pop up a warning only if the includes field got focus, the same way as entering
new class name in new class wizard.  This way we can avoid having too much verbiage on the form.