Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Adding a new connector (TerminalConnectorImpl)
Adding a new connector (TerminalConnectorImpl) [message #481892] Mon, 24 August 2009 12:02
John Moule is currently offline John Moule
Messages: 13
Registered: July 2009
Junior Member
Hi,

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:

<extension
point="org.eclipse.tm.terminal.terminalConnectors">
<connector
class="com.st.serialrelay.STMC2SerialRelayConnector"
id="com.st.serialrelay.connector1"
name="STMC2 Serial Relay">
</connector>
</extension>

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
label.
2) change Telnet Settings Page networkport combo to a single, hardcoded,
readonly value.
3) add some extra processing inside TerminalConnectorImpl.connect().
Previous Topic:Adding a new connector (TerminalConnectorImpl)
Next Topic:TM3.1 Problem with "Export to Remote File System"
Goto Forum:
  


Current Time: Tue Jul 29 11:05:27 EDT 2014

Powered by FUDForum. Page generated in 0.01527 seconds