[
http://jira.jboss.com/jira/browse/JBIDE-1294?page=comments#action_12387575 ]
Andy Gibson commented on JBIDE-1294:
------------------------------------
Ok, I create a new eclipse from scratch, new project from scratch, and didn't quite
get the problem. I did get a similar problem in that creating a new folder in the
webcontent folder makes the IDE jump to the test project, in the referenced libraries
section where it contains the webcontent folder, it shows folders with package icons.
This problem appears in both ear and war projects.
I've included my complete test script below :
Unzip IDE files into a directory (c:\dev\demo) in this order :
eclipse-SDK-3.3.1.1-win32.zip
dtp-sdk_1.5.1.zip
emf-sdo-xsd-SDK-2.3.1.zip
GEF-SDK-3.3.1.zip
wtp-sdk-R-2.0.1-20070926042742.zip
JBossTools-200711120813-nightly-ALL-win32.zip
Create shortcut with args :
-clean -vmargs -Xmx512M -Xms512M -XX:PermSize=256M -XX:MaxPermSize=256M
Unzip jboss-4.2.2.GA.zip into c:\dev\demo
unizip jboss-seam-2.0.0.GA.zip into c:\dev\demo\libs\
Start the IDE
Set the workspace path to c:\dev\demos\projects\
Switch to the Seam view
In the JBoss server tab, click new server
Select JBoss, a division of Red Hat->JBoss AS 4.2
Set home directory to C:\Dev\demo\jboss-4.2.2.GA
Using JRE 1.6.0_02
using Default configuration
Finish
Create new datasource
HSQL 1.8 DB
Add the hsqldb.jar from c:\dev\demo\jboss-4.2.2.GA\server\default\lib\hsqldb.jar
Call it DefaultDS
Click ok,
Finish datasource wizard with defaults
File New->Seam Web Project
call it seamtest
Select target server as JBoss 4.2 Server
Set it as a web project with Seam 2.0
Click next
Add Java Persistence as a facet.
Click Next
Click Next
Add a new seam run time called Seam20 with a home folder of
C:\Dev\demo\libs\jboss-seam-2.0.0.GA, set version to 2.0
Check recreate database tables and data on deploy
Click Finish
I forgot to set this an an ear deployed project so I don't have the 3 projects.
I expand the WebContent folder in the seamtest project, and there are no duplicate
folders.
I right click and add a new folder called 'test' and the package navigator jumps
down to the seamtest-test project with the webContent folder in the referenced libraries
expanded, and there is a test folder inside it, but also the seamtest-test projects
webcontent folder has no regular folder icons, only folders with the package icons (see
screenshot 2). It also created a test folder in there and gave it the package icon.
The seamtest project webcontent folder contains a folder called 'test', and there
are no duplicate folders with package icons.
I'm going to delete this project, and create a new one deployed as an ear and see what
happens then :
Delete the projects, also deleting the contents and create a new Seam Project, follow the
steps above callign it seamtest, adding the JPA facet, and selecting Seam 2.0.
This time select Ear in the "Deploy as:" radio buttons
Click Finish
Expand the seamtest project
navigate to the webcontent folder
No duplicate folders visible
Create a new folder called 'test'
Again, the seamtest webcontent folder is good, but it jumps down to the seamtest-test
projects webcontent folder where it has duplicate folders as packages, and it has a test
folder there. (this I haven't seen before, I rarely create folders). You can see this
in screenshot 2.
Pressed F5 on the seamtest/webcontent folder, no change
Pressed F5 on the seamtest project, no change.
Lets add some code and see what happens.
Add Project Entity class
Check the seamtest/webcontent folder,it looks good
Start the JBoss Server, all is well this time
Add some sql to the importsql, and restart jboss so it processes it
Created a projectList Seam stateless bean with a factory returning all projects
Created a projects folder in my webcontent
Copied the home.xhtml file to the projects directory (saves me creating new from scratch).
Rename as projects.xhtml
Add a data table referencing the projects factory contained in the projectList bean.
Deploy the project, run it, looks fine.
There are no duplicate folders visible anywhere. The only problem is in the test project
which doesn't have duplicates but it does have the wrong icon. I'm going to keep
working on this project to create a demo for some people here, so I'll keep an eye out
for duplicated folders.
Duplicating folders in package explorer
---------------------------------------
Key: JBIDE-1294
URL:
http://jira.jboss.com/jira/browse/JBIDE-1294
Project: JBoss Tools
Issue Type: Bug
Components: UpStream
Environment: JBoss 4.2.2, Eclipse 3.3.1.1, nightly build from 11/11/2007
including the build driver plugins from that build. Windows XP SP2, Application using Seam
2 GA deployed as an Ear, generated in JBoss Tools (using eclipse V 3.3.1).
Reporter: Andy Gibson
Fix For: LATER
Attachments: screenshot-1.jpg
In the package explorer, in my web project, in the web content folder, I get duplicate
folders. Each folder in the dir appears once as with a folder Icon, and again with an
'empty package' icon. Both icons display the warning graphic if the folder content
has warnings. I can use either folder to navigate and open items. It behaves exactly like
a folder, except it treats sub folders like packages in how it displays them (see attached
screenshot for more details).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira