Thanks,
Martin
--
Martin Oberhuber, SMTS /
Product Architect – Development Tools, Wind River
direct +43.662.457915.85 fax +43.662.457915.6
From: forums-noreply@xxxxxxxxxxx [mailto:forums-noreply@xxxxxxxxxxx]
Sent: Thursday, October 31, 2013 6:26 PM
To: Oberhuber, Martin
Subject: New topic in forum Target Management, called Where are the connections stored?, by Martin Tauber
Subject: Where are the connections
stored?
|
Author: Martin Tauber
|
Date: Thu, 31 October 2013
13:23
|
I have a strange problem ...
The application I wrote works fine when called from eclipse. I then
exported it, lauchned it and added a cnnection. When I then relaunch the
app the connection is lost.
The code I used to create the connection is here:
ISystemRegistry registry = RSECorePlugin.getDefault().getSystemRegistry();
ISystemProfile profile = "">
registry.getSystemProfileManager().getDefaultPrivateSystemProfile();
IHost host = registry.getHost(profile, hostFieldValue);
if (host == null) {
try {
host =
registry.createHost(RSECorePlugin.getTheCoreRegistry().getSystemTypeById(IRSESystemType.SYSTEMTYPE_SSH_ONLY_ID),
hostFieldValue, hostFieldValue, "Connection to " + hostFieldValue);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
When I launch the app and create the connection via the remote systems
view, the connection survives the app restart ...
Any ideas?
|
[
Reply ][
Quote ][ View Topic/Message ][
Unsubscribe from this forum ]
|
|
|