Bug 297960 - Refreshing project closes Web Resources folder in Project Explorer
Summary: Refreshing project closes Web Resources folder in Project Explorer
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.2   Edit
Assignee: Kaloyan Raev CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-16 09:17 EST by Tuukka Mustonen CLA
Modified: 2010-01-26 00:52 EST (History)
2 users (show)

See Also:


Attachments
Shows Web Resources shortcut in Project Explorer (7.84 KB, image/png)
2009-12-18 14:55 EST, Tuukka Mustonen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tuukka Mustonen CLA 2009-12-16 09:17:24 EST
Build Identifier: 20090920-1017

In dynamic web application facets, refreshing project from Project Explorer closes an open Web Resources folder in Project Explorer. It doesn't matter where you click (within the same project or in other project).

Not big of a deal but reduces usability, as the view has be continually reopened or then navigation has to be done via actual folders, effectively eliminating the point of the Web Resources folder.

Reproducible: Always

Steps to Reproduce:
1. Create a dynamic web project (with defaults, for example)
2. Open project and its Web Resources folder in Project Explorer
3. Select any item in Project Explorer
4. Click F5 or select right-click > refresh to refresh

==> Web Resources folder closes
Comment 1 Carl Anderson CLA 2009-12-17 12:25:01 EST
Assigning to Kaloyan for the initial investigation.
Comment 2 Kaloyan Raev CLA 2009-12-18 03:26:37 EST
I cannot reproduce this with Galileo SR1. 
I assume by saying "Web Resource folder" you mean "WebContent folder". Or, may be I am wrong? Do you use pure Eclipse WTP IDE, or you use an adopter's distribution?
Comment 3 Tuukka Mustonen CLA 2009-12-18 14:55:37 EST
Created attachment 154814 [details]
Shows Web Resources shortcut in Project Explorer
Comment 4 Tuukka Mustonen CLA 2009-12-18 14:56:16 EST
No you are not mistaken, I am. I tested this on Java EE dist of Eclipse, 3.5 SR1...

However, now that I installed a clean Java EE distribution, I see the Web Resources folder is not bundled with it. It seems this feature comes with m2eclipse-plugin instead (the part of it that's called 'Maven Integration for WTP'). See attached screenshot for how it looks.

It seems this feature is automatically turned on for every dynamic web project, whether it is using m2eclipse-integration or not. I guess that's why I thought the feature came with WTP.

Conclusions: not a bug in WTP, but a bug in m2eclipse instead. I will open a ticket about this in their issue tracker instead.

Come to think of it, I think this feature _should_ be included in WTP instead. The reason would be the same: if user does not want to create the WebContent-folder directly on the root level but in a sub-folder instead (for example src/main/webapp as is the convention with Maven), it would be nice to have this Web Resources shortcut shown in Package Explorer to directly access that folder.

(see attachment for screen capture of the feature).
Comment 5 Carl Anderson CLA 2009-12-18 15:49:44 EST
catapl3xis, as you determined, the bug you reported is not a WTP bug- it is an m2eclipse one.  But you also mentioned how you would like the same "Web Resources" functionality in WTP.  So, to clarify - are you stating that this bug should become an enhancement request?  Or can we just close it?
Comment 6 Kaloyan Raev CLA 2009-12-19 02:47:05 EST
There is actually a long standing enhancement bug 154251 about Maven2 integration in WTP. I suggest to continue any discussion about Maven and WTP there.
Comment 7 Tuukka Mustonen CLA 2009-12-19 05:45:28 EST
@ Kaloyan: thanks for the link, however, I find that chain of discussion very generic considered to this report. Do you think I should report this issue there?

@ Carl: Yes, I think this feature is key functionality for any WTP developer and not only for those using m2eclipse. Therefore I suggest this feature to be moved directly into WTP. So yes, I am stating that this bug report should be turned into an enhancement request.
Comment 8 Kaloyan Raev CLA 2010-01-12 10:39:49 EST
catapl3xis, for the sake of clarity I would recommend to keep the current bug as a closed bug and not turn it into enhancement. 

Could you check if bug 205408 is what you are asking for enhancement?
If not, please submit new enhancement request.
Comment 9 Tuukka Mustonen CLA 2010-01-26 00:52:13 EST
(In reply to comment #8)
> catapl3xis, for the sake of clarity I would recommend to keep the current bug
> as a closed bug and not turn it into enhancement. 
> 
> Could you check if bug 205408 is what you are asking for enhancement?
> If not, please submit new enhancement request.

Sorry, lost track of this due to my spam filter.

Yes, bug 205408 points to the exactly same functionality so we can leave this ticket as resolved. Thanks.