[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [dsdp-tm-dev] RE: Using the terminal in an RCP
|
Hello Gabe,
based on your information, it is hard to tell what
the problem is. So here is some general advice:
* In order to get started, it might be easier for
you to load the source of the terminal plugins
into your workspace from CVS. This allows
easier debugging. Load the terminal-anonymous.psf
project set from
http://www.eclipse.org/dsdp/tm/development/cvs_setup.php
* Then debug your appliation out of Eclipse PDE.
Choose Run > Java Exception Breakpoint and set a
breakpoint on NullPointerException. You should see
where it actually fails.
* If you don't get any further yourself, you could try
sending the exception backtrace to this list. If you
have a Workspace (don't know if you have), then you
should find it in workspace/.metadata/.log
* I'm not sure if I understand right what you mean by
"created a view extension pointing to". Adding the
Terminal View to your perspective by reference should
suffice.
Cheers,
--
Martin Oberhuber
Wind River Systems, Inc.
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
> -----Original Message-----
> From: dsdp-tm-dev-bounces@xxxxxxxxxxx
> [mailto:dsdp-tm-dev-bounces@xxxxxxxxxxx] On Behalf Of
> Schnaubelt, Gabe T
> Sent: Thursday, April 19, 2007 10:21 PM
> To: Target Management developer discussions
> Subject: RE: [dsdp-tm-dev] RE: Using the terminal in an RCP
>
> Martin, thanks for your help. I need a little more detailed info. I'd
> like to programmatically create the terminal view, rather than have a
> user enable it. In my Eclipse project I added a dependency on
> org.eclipse.tm.terminal, org.eclipse.tm.terminal.view, and
> org.eclipse.tm.terminal.ssh.
>
> I created a view extension pointing to
> org.eclipse.tm.terminal.view.Terminalview.
>
> In my Perspective class I tried to add the view:
> viewFolder.addView("org.eclipse.tm.terminal.View");
>
> The program starts, but when I try to access the view it fails because
> TerminalViewPlugin is null.
>
> Thanks, Gabe
>
> Oberhuber, Martin wrote:
> >
> > Hello Gabe,
> >
> > Perhaps there is no info because it is so simple?
> > Download and install TM-terminal*.zip, it should just work
> in an RCP.
> >
> http://download.eclipse.org/dsdp/tm/downloads/drops/S-2.0M6a-2
> 0070411181
> 8/
> >
> > Choose which connectors you want - we have telnet, ssh and serial
> plugins.
> > Each of them brings its own little UI to select the remote host.
> > Available through
> > Window > Show View > Other > Terminal > Terminal
> > In the Terminal View's view toolbar buttons, press the "Connect
> Options"
> > button
> > Delete those plugins that you do not need.
> > If you do not like our view, you can write your own view and just
> re-use
> > the
> > Terminal emulation widget and the connector widgets.
> >
> > For ssh, if you do not enter a password in the dialog, it will try
> > public key authentication.
> > Authentication options are set through the Preferences > General >
> > Networking > SSH2 Connection.
> > Since Eclipse 3.3M6, there are new plugins for this, which
> you need in
>
> > addition to the core RCP plugins -
> > these plugins are part of eclipse-platform-3.3M6:
> > com.jcraft.jsch
> > org.eclipse.jsch.core
> > org.eclipse.jsch.ui
> > org.eclipse.core.net
> > org.eclipse.ui.net
> >
> > If you prefer using eclipse-3.2.x with RSE-1.0.1, this is also
> possible
> > but it requires
> > the team/cvs stuff from the Platform to set SSH authentication
> options.
> > With 3.3M6, this
> > has been factored out.
> >
> > If you have more questions or suggestions, just let us know.
> >
> > Cheers,
> > Martin
>
> Schnaubelt, Gabe T wrote:
> >
> > How can I use the Terminal in an RCP? Specifically, I'd
> like a user to
>
> > be able to enter a hostname and create an SSH connection to
> that host
> > use public key authentication. Then, allow the user to use the
> > terminal to interact with that host over the connection.
> >
> > If this info is already available somewhere on the web
> please point me
>
> > to it. I was unable to find this myself.
> >
> > Thanks, Gabe
> _______________________________________________
> dsdp-tm-dev mailing list
> dsdp-tm-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
>