Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 226933

Summary: Generate Deployment Descriptor Stub on Deployment Descriptor Node
Product: [WebTools] WTP Java EE Tools Reporter: Dimitar Giormov <dimitar.giormov>
Component: jst.j2eeAssignee: Dimitar Giormov <dimitar.giormov>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: enhancement    
Priority: P3 CC: cbridgha, kaloyan
Version: 3.0Keywords: plan
Target Milestone: 3.1 M4Flags: cbridgha: review+
Hardware: PC   
OS: Windows XP   
Whiteboard: EaseOfUse
Bug Depends on: 226527, 226583    
Bug Blocks:    
Attachments:
Description Flags
enables generate deployment descriptor stub on deployment descriptor node for Java EE 5 projects
none
fixed wih chucks recomendations none

Description Dimitar Giormov CLA 2008-04-14 09:56:25 EDT
Build ID: I20080330-1350

Steps To Reproduce:
It will be really useful if Generate Deployment Descriptor Stub is present on the Deployment Descriptor Node. 
I think that this is natural place for the action.

One way is to have the Generate Deployment Descriptor Stub action available when there is no xml file, and to have open when there is a xml file.

Or to have the same behavior like in the context menu on project level (Java EE Tools menu).
Comment 1 Dimitar Giormov CLA 2008-04-16 02:56:16 EDT
Created attachment 96201 [details]
enables generate deployment descriptor stub on deployment descriptor node for Java EE 5 projects
Comment 2 Kaloyan Raev CLA 2008-04-16 03:02:38 EDT
Chuck, this could be considered as an UI change. I think, if review is OK, it should be also nominated for PMC review. 
Comment 3 Chuck Bridgham CLA 2008-04-18 12:02:05 EDT
Have you tried to use ProjectUtilities.getProject(Object)
rather than your getProjectFromSelection method?

You will notice that "IAdaptable" is a supported interface, and 
a call to ((IAdaptable) object).getAdapter(IProject.class) could return a project in the case of these Group nodes.

Its a little cleaner, and because this interface is supported, more actions can be used with these nodes.
Comment 4 Kaloyan Raev CLA 2008-05-12 04:09:15 EDT
deferring for next release
Comment 5 Dimitar Giormov CLA 2008-12-11 03:44:47 EST
Created attachment 120164 [details]
fixed wih chucks recomendations
Comment 6 Dimitar Giormov CLA 2008-12-11 04:01:17 EST
committed and released.