Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324806 - Add API to detect if ITransportChannel is open
Summary: Add API to detect if ITransportChannel is open
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-edc (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ken Ryall CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 19:25 EDT by Ed Swartz CLA
Modified: 2010-09-08 20:23 EDT (History)
0 users

See Also:
ed.swartz: review? (ken.ryall)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.