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

Bug 324806

Summary: Add API to detect if ITransportChannel is open
Product: [Tools] CDT Reporter: Ed Swartz <ed.swartz>
Component: cdt-debug-edcAssignee: Ken Ryall <ken.ryall>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3 Flags: ed.swartz: review? (ken.ryall)
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ed Swartz CLA 2010-09-08 19:25:11 EDT
The ITransportChannel API consists only of "doer" methods that throw exceptions.

In practice, implementations of these methods will throw if the channel is not open -- and #open will throw if the channel *is* open.  

For my purposes, I need to keep a singleton transport channel, so I need to know if it's open or not without parsing exceptions, hence this API.  It seems generally saner to require an #isOpen() method in all cases.
Comment 1 Ed Swartz CLA 2010-09-08 19:31:01 EDT
Fixed on EDC HEAD.