× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Frank,
Where did you put this code?
Is it part of the plugin Activator? Or part of the subsystem extension
element class?
(just looking for suggestions on the best location for it)
Thanks
-doug

On Wed, Jan 7, 2009 at 4:48 PM, Frank Hildebrandt <
frank.hildebrandt@xxxxxxxxxxxxxxx> wrote:

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,

my subsystem doesn`t depend on preferences. And the workspace has not
been
migrated.
Perhaps is has something to do, that the subsystem doesn`t support
filters.
I don`t know.
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 subsystem
under
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
any
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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.