|Adding a new connector (TerminalConnectorImpl) [message #582209]
||Mon, 24 August 2009 12:02
| John Moule
Registered: July 2009
I'm using the org.eclipse.tm.terminal.terminalConnectors extension point
to add my own connector type, which is basically a superset* of a telnet
connector. So I would like to use all the existing telnet implementation
with my own small modifications to it. Here is what I've done so far.
I declare the extension point in my own plugin thus:
name="STMC2 Serial Relay">
And have extended TerminalConnectorImpl with my own connector type
(STMC2SerialRelayConnector). I've got my own implementation of
ITelnetSettings and ISettingsPage. All of these are basically copies of
TelnetConnector, TelnetSettings and TelnetSettingsPage respectively with
slight modifications. But I'm having trouble completing my connector
because of visiblity issues with TelnetConnectWorker because it doesn't
have a public constructor. I'd like to avoid forking the terminal code
anymore if possible? Am I missing something? Do you have a step by step
recipe for adding a connector?
Thanks for any help.
Kind rgds john
*: telnet superset changes:
1) change Telnet Settings Page TelnetMessages.HOST setText label to my own
2) change Telnet Settings Page networkport combo to a single, hardcoded,
3) add some extra processing inside TerminalConnectorImpl.connect().
Powered by FUDForum
. Page generated in 0.01476 seconds