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

Bug 322278

Summary: WSDLEditorUtil does not compile against Eclipse 4
Product: [WebTools] WTP Webservices Reporter: Valentin Baciu <valentinbaciu>
Component: wst.wsdlAssignee: Valentin Baciu <valentinbaciu>
Status: VERIFIED FIXED QA Contact: Keith Chong <keith.chong.ca>
Severity: normal    
Priority: P3 CC: david_williams
Version: 3.2.1   
Target Milestone: 3.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Valentin Baciu CLA 2010-08-10 15:30:48 EDT
Description	Resource	Path	Location	Type
The method getDefaultOrientation() is undefined for the type WorkbenchWindow	WSDLEditorUtil.java	/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util	line 185	Java Problem
Comment 1 Valentin Baciu CLA 2010-08-10 15:31:30 EDT
WSDLEditorUtil uses WorkbenchWindow#getDefaultOrientation() to determine the default window orientation. In Eclipse 4, WorkbenchWindow does not extend Window anymore and thus lacks said method.

It appears that Window#getDefaultOrientation is actually a static method and thus can and should be called directly.
Comment 2 Valentin Baciu CLA 2010-08-10 15:34:09 EDT
Created attachment 176271 [details]
Patch
Comment 3 Valentin Baciu CLA 2010-08-10 15:47:08 EDT
Fix committed and released to WTP 3.3 builds > v201008101945 UTC. wtpe4 builds should also pick up this fix because they compile against HEAD.
Comment 4 David Williams CLA 2010-08-10 15:54:25 EDT
Thanks very much! I hop all our incompatibilities are this easy!
Comment 5 Valentin Baciu CLA 2010-08-20 14:17:12 EDT
Closing.