Interactive Tcl Console in RCP [message #36213] |
Thu, 05 March 2009 05:49  |
Eclipse User |
|
|
|
Hello,
I want to create an RCP application that provides tcl APIs to the user.
It would be very nice if I can create an interactive tcl console that
allows the user to enter those command in the gui, not just in batch mode.
My original plan was to use the IOConsole with Jacl interpreter, but I
think it will be better if I can reuse the interactive console in dltk.
Is it possible to reuse the Tcl console?
If not, can you please guide me to any documentation that will help me
create what I want?
Thanks in advance,
Mamado.
|
|
|
Re: Interactive Tcl Console in RCP [message #36247 is a reply to message #36213] |
Wed, 11 March 2009 08:47  |
Eclipse User |
|
|
|
Hi Mamado,
DLTK Script console could be reused if it fits your goals.
I will describe how it is used in DLTK, so you can choose what suits
your best.
a) as part of the Console view
You should implement org.eclipse.ui.console.IConsoleFactory interface
and contribute it to the
<extension point="org.eclipse.ui.console.consoleFactories">
Console could be opened using menu in the Console view.
Tcl implementation is located in the
org.eclipse.dltk.tcl.internal.console.ui.TclConsoleFactory class and it
relies upon the rest of the DLTK frameworks. The commands to be executed
are sent over socket connection to the tcl proxy script
(org.eclipse.dltk.tcl.launching/console/ConsoleProxy.tcl) started with
the tcl interpreter.
b) standalone view
It is used in the debug Interactive Console.
You can find implementation in the org.eclipse.dltk.debug.ui.display
package of the org.eclipse.dltk.debug.ui plugin. The commands to be
executed are sent over the DBGP socket connection to the debugger engine.
Regards,
Alex
Mamado wrote:
> Hello,
>
> I want to create an RCP application that provides tcl APIs to the user.
>
> It would be very nice if I can create an interactive tcl console that
> allows the user to enter those command in the gui, not just in batch mode.
>
> My original plan was to use the IOConsole with Jacl interpreter, but I
> think it will be better if I can reuse the interactive console in dltk.
>
> Is it possible to reuse the Tcl console?
>
> If not, can you please guide me to any documentation that will help me
> create what I want?
>
> Thanks in advance,
> Mamado.
>
|
|
|
Powered by
FUDForum. Page generated in 0.08728 seconds