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 180818 - Support top level directory import (as supported in Eclipse, JDeveloper)
Summary: Support top level directory import (as supported in Eclipse, JDeveloper)
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks: 177163
  Show dependency tree
 
Reported: 2010-02-17 02:39 UTC by Tomas Zezula
Modified: 2010-02-25 22:15 UTC (History)
1 user (show)

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 Tomas Zezula 2010-02-17 02:39:41 UTC
To behave in the same way as the j2se project you need to add filter for related roots for sourceRoots:

-        ((FolderList)this.sourcePanel).setRelatedFolderList((FolderList)this.testsPanel);
+        ((FolderList)this.sourcePanel).setRelatedFolderList((FolderList)this.testsPanel, FolderList.testRootsFilter());

The j2se project also adds a message regarding DND but the web project seems not to have enough space for it. I wold do it myself, but I am not sure if you want to add the message or not.
The rest is handled by common FolderList.

The j2se change set is jet-main: bf5c3f804925
Comment 1 Petr Jiricka 2010-02-17 02:57:33 UTC
Since the behavior is now inconsistent between J2SE and Web, I would call this a (P3) defect.
Comment 2 Tomas Zezula 2010-02-17 03:02:29 UTC
It's just a bit inconsistent.
The generic part is common, so DND among list is working and add searches all source roots.
The only inconsistence is that j2se project places /.*test.*/ folders directly into test roots.
This can be resolved by the 2 lines patch above. And j2se project also adds a comment about possible DND among these lists.
Comment 3 David Konecny 2010-02-23 21:12:06 UTC
fixed in all EE project types
fd757e6fa4c1
Comment 4 Quality Engineering 2010-02-25 22:15:28 UTC
Integrated into 'main-golden', will be available in build *201002260200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fd757e6fa4c1
User: David Konecny <dkonecny@netbeans.org>
Log: #180818 -  Support top level directory import (as supported in Eclipse, JDeveloper)