× 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.



Hi (IBM),

I already managed adding a menu entry to the popup menu of the "Debug" view in order to start the "iSphere Job Log Explorer", when the debugger stops at a service entry point:

targetID="org.eclipse.debug.ui.DebugView"
id="org.eclipse.debug.ui.debugview.popupMenu">

I also could retrieve the qualified job number from the IProcess selected object (Last entry in den Debug view, e.g. "Process: 403007/QUSER/QZRCSRVS Program SPLF").

Hence I now have 1 out of 2 parameters that I need to open the Job Log Explorer. The missing parameter is the connection name.

I can see, that IProcess is a DebuggeeProcess and that DebuggeeProcess has an "fTarget" attribute. fTarget is a PICLDebugTarget class and has an "fConnectionLabel" attribute. So that is close to the connection name that I need.

Sadly I am stuck here. The problems I could not yet solve are:

a) com.ibm.debug.pdt.internal.core.model.DebuggeeProcess is not exported and hence cannot be imported to the iSphere project.

b) The same thing applies to com.ibm.debug.internal.pdt.PICLDebugTarget

c) Retrieving the connection name.

So the question is, how can I get the connection name at this point (???):

public class OpenJobLogDebugPopupAction implements IViewActionDelegate {

private static final String PATTERN = "\\S*\\s+((\\d{6})/(.{1,10})/(.{1,10}))\\s+.*";

private Object shell;
private IStructuredSelection structuredSelection;

public void run(IAction arg0) {
Object selectedObject = structuredSelection.getFirstElement();
if (selectedObject instanceof IDebugElement) {
IDebugElement debugElement = (IDebugElement)selectedObject;
if (selectedObject instanceof IProcess) {
IProcess process = (IProcess)debugElement;
String connectionName = ???;
String qualifiedJobName = getQualifiedJobName(process);
if (!StringHelper.isNullOrEmpty(qualifiedJobName)) {
LoadRemoteJobLogJob job = new LoadRemoteJobLogJob("iSphere", qualifiedJobName);
job.run();
}
}
}
}

(The example above uses hard coded connection "iSphere".)

Regards,

Thomas.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2024 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.