Paul,
I haven't looked into this much but I think that with the parser object you
could try to cast it to one of the ISeriesEditor parsers. Those parsers
provide a getISeriesConnection() method. So, this would not work in all
cases because not all parsers are ISeriesEditor parsers. Otherwise, you
can query the 'name' parameter and parse out the connection name from that.
Then I think you might be able to use the SystemRegistry class to get the
connection object.
Hope this helps,
Eric
Eric Simpson
Rational Developer for System i and Rational HATS
IBM Toronto Lab
905-413-3226 (T/L 313)
esimpson@xxxxxxxxxx
"Bailey Paul"
<paul.bailey@volv
o.com> To
Sent by: "WDSC Plugin Developers"
wdsc-plugin-dev-b <wdsc-plugin-dev@xxxxxxxxxxxx>
ounces@xxxxxxxxxx cc
om
Subject
Re: [Wdsc-Plugin-Dev] RSE
04/16/2008 04:26 Connection name
AM
Please respond to
WDSC Plugin
Developers
<wdsc-plugin-dev@
midrange.com>
Hi David,
No, unfortunately all I have access to from my UserProfile plugin is the
LpexView and associated LpexWindow and LpexParser objects. I have
checked the documentation and there is no mention of any other attached
objects.
I can get the source member name very easily from the "sourceName"
editor parameter, but it seems to be impossible to get to the iSeries
connection (or at least, its name) as well.
Paul.
-----Original Message-----
From: wdsc-plugin-dev-bounces@xxxxxxxxxxxx
[mailto:wdsc-plugin-dev-bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs
Sent: 15 April 2008 18:30
To: WDSC Plugin Developers
Subject: Re: [Wdsc-Plugin-Dev] RSE Connection name
Bailey Paul wrote:
I want to access the RSE Connection that was used to load a source
member into lpex, preferably from an editor action or command, or from
an lpex extension point. I would like to display the connection name
somewhere and I would also like to keep a member filter up to date
with
the currently open source members.
Paul:
What objects do you have at hand to base derive the information from?
Do you have a ISeriesEditableSrcPhysicalFileMember object?
If so, you could probably use the getISeriesConnection() method and then
getSubSystems() on the connection object.
david
--
IBM System i - For when you can't afford to be out of business
--
This is the WDSC Plugin Developers (Wdsc-Plugin-Dev) mailing list
To post a message email: Wdsc-Plugin-Dev@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsc-plugin-dev
or email: Wdsc-Plugin-Dev-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/wdsc-plugin-dev.
--
This is the WDSC Plugin Developers (Wdsc-Plugin-Dev) mailing list
To post a message email: Wdsc-Plugin-Dev@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsc-plugin-dev
or email: Wdsc-Plugin-Dev-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/wdsc-plugin-dev.
As an Amazon Associate we earn from qualifying purchases.