Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Interactive Tcl Console in RCP
Interactive Tcl Console in RCP [message #36213] Thu, 05 March 2009 10:49 Go to next message
Mohamed Hussein is currently offline Mohamed HusseinFriend
Messages: 76
Registered: July 2009
Member
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.


Best Regards,
Mohamed.
Re: Interactive Tcl Console in RCP [message #36247 is a reply to message #36213] Wed, 11 March 2009 12:47 Go to previous message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
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.
>
Previous Topic:Debugging Engine is not properly configured for Tcl
Next Topic:Code assist/completion for all DLTK or even all Eclipse editors?
Goto Forum:
  


Current Time: Fri Apr 19 07:44:13 GMT 2024

Powered by FUDForum. Page generated in 0.01498 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top