how to sync editor in OpenEdge Architect??

I am trying to integrate Prolint in OpenEdge Architect (=Eclipse). I have made a new results view (programmed in ABL, not in Java) and it docks nicely in Eclipse as a tab next to the existing Console, Tasks and Problems views.
This new view has a browse widget that shows the warnings that Prolint has found.
For each line in the browse widget we know the sourcefile and line-number.

So the next step is: when user selects a line in the browse then automatically sync the editor to that file/line location. Like what the standard "Problems" view does. But I have no clue how to do that. Suggestions?

Thanks,
Jurjen

PS I am using OpenEdge 10.1C


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jurjen's picture

Tracing back through source

Tracing back through source code I found that, when the Appbuilder is embedded in OpenEdge Architect, progress ABL sends "IDE findAndSelect" messages to the Eclipse plugin via a socket connection (this is implemented in adecomm/oeideservice.p). The effect is that the line "ANALYZE SUSPEND blahblah" is found and selected when you want to see trigger code.

My guess (and hope) is that a similar message exists like "IDE gotoLine" to find and select a specific line number. But can't find any such messages. Help!!! Is there a way to see what happens in a Java jar file? Or better: is the OpenEdge Architect plugin opensource?

So far I have a Prolint Results window that embeds in Eclipse, and a "run Prolint" button in the toolbar that lints the file or directory that is selected in the treeview. Resize of the window sucks as usual, but still, using Prolint has never been easier. I'd really like to give it the "open this file at line in editor" functionality.


tamhas's picture

Have you tried strings to

Have you tried strings to see if you can get a hint on other messages? Should there be some use of reflection that would help?


jurjen's picture

strings? refelection?

I remember strings, it's a unix tool right? I don't think it's going to help because even if it outputs "gotoLine" then I still would not know the arguments and context.
Reflection: I truly don't know because I have no Java tools (or more important: no Java skills).


tamhas's picture

Yes, strings is a Unix tool,

Yes, strings is a Unix tool, but you could either get the file on Unix or get a Windows version of strings.

I know it won't tell you everything, but I thought it might at least give you the right name to google with.

And yes, I don't have those Java skills either ... I just know the name for what it is that I don't know! :)