[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.dsdp.tm] Adding a new connector (TerminalConnectorImpl)

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().