|
Hi,
here`s a snippet, which checks, if the subsystem exists in a connection.
If not then it will be created programmatically.
ISystemRegistry sr = SystemStartHere.getSystemRegistry();
ISubSystemConfiguration ssc =
sr.getSubSystemConfiguration("de.taskforce.tn5250j.rse.subsystems.TN5250JSub
SystemConfiguration");
ISystemProfile[] sp =
sr.getSystemProfileManager().getSystemProfiles();
for (int idx1 = 0; idx1 < sp.length; idx1 ++) {
IHost[] host = sp[idx1].getHosts();
for (int idx2 = 0; idx2 < host.length; idx2++) {
if
(host[idx2].getSystemType().getId().equals(IRSESystemType.SYSTEMTYPE_ISERIES
_ID)) {
boolean exist = false;
ISubSystem[] ss =
host[idx2].getSubSystems();
for (int idx3 = 0; idx3 < ss.length;
idx3++) {
if
(ss[idx3].getSubSystemConfiguration() == ssc) {
exist = true;
break;
}
}
if (!exist) {
ssc.createSubSystem(host[idx2], true, null);
sr.fireEvent(new
SystemResourceChangeEvent(host[idx2],
ISystemResourceChangeEvents.EVENT_REFRESH, host[idx2]));
host[idx2].commit();
}
}
}
}
-----Ursprüngliche Nachricht-----
Von: wdsc-plugin-dev-bounces@xxxxxxxxxxxx
[mailto:wdsc-plugin-dev-bounces@xxxxxxxxxxxx] Im Auftrag von Doug Davie
Gesendet: Mittwoch, 7. Januar 2009 21:07
An: WDSC Plugin Developers
Betreff: Re: [Wdsc-Plugin-Dev] Problems with
org.eclipse.rse.core.subsystemConfigurations
Frank,
I've noticed the same behavior... Newly defined subsystems only appear in
newly created connections, not in existing connections.
What is your alternative solution?
-doug
On Wed, Jan 7, 2009 at 2:59 PM, Frank Hildebrandt <
frank.hildebrandt@xxxxxxxxxxxxxxx> wrote:
Hi David,been
my subsystem doesn`t depend on preferences. And the workspace has not
migrated.filters.
Perhaps is has something to do, that the subsystem doesn`t support
I don`t know.any
But I have found an alternative solution.
Thanks
Frank
-----Ursprüngliche Nachricht-----
Von: wdsc-plugin-dev-bounces@xxxxxxxxxxxx
[mailto:wdsc-plugin-dev-bounces@xxxxxxxxxxxx] Im Auftrag von David Gibbs
Gesendet: Mittwoch, 7. Januar 2009 20:52
An: WDSC Plugin Developers
Betreff: Re: [Wdsc-Plugin-Dev] Problems with
org.eclipse.rse.core.subsystemConfigurations
Frank Hildebrandt wrote:
When I create a new connection in the RSE View i can see my subsystemunder
the new created connection.
But under the existing connections i cannot see my subsystem.
Does your subsystem depend on any preferences?
When RSE (7.5) migrates preferences of a workspace, it does not migrate
preferences for subsystems that are installed AFTER RDI is installed.--
david
--
IBM i on Power - 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.
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.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.