Question proparse propath problems.

benji00

New Member
Hi,
not a java expert, but attempting to use proparse.net.dll to parse existing codebase, and use one of the subsequent tools to generate html cross-reference of .i's and .p's (smartdox or autodox etc).

I have followed install instructions and have an OE development environment with access to databases and propath within the Appbuilder 10.2A.02.

when i run the following OE example code which attempts to parse itself, it cannot find test.p.
test.p is saved in a directory which is on the propath within the appbuilder.

Question is, how do I tell proparse what project settings to use ???
those being the db's connected, propath ...
The message I get is "Could not find file: test.p"

Code:
using org.prorefactor.refactor.* from assembly.
using org.prorefactor.treeparser.* from assembly.
using org.prorefactor.core.* from assembly.
def var filename as char init "test.p".
def var indent as int no-undo.
def var outed as char view-as editor large scrollbar-vertical size 78 by 22.
display outed with frame f1 no-box no-labels.
def var prsession as class org.prorefactor.refactor.RefactorSession.
prsession = org.prorefactor.refactor.RefactorSession:getInstance().
def var javafile as class java.io.File.
javafile = NEW java.io.File(filename).
if (not javafile:exists()) then do:
  message "Could not find file: " + fileName view-as alert-box.
  return.
end.
def var pu as class org.prorefactor.treeparser.ParseUnit.
pu = new ParseUnit(javafile).
pu:treeParser01().
run walker(pu:getTopNode()).
enable outed with frame f1.
wait-for "endkey" of default-window.
procedure walker:
  def input param node as class JPNode.
  if (node eq ?) then
  return.
  outed:insert-string(fill("  ", indent) + node:ToString() + "~r~n") in frame f1.
  indent = indent + 1.
  run walker(node:firstChild()).
  indent = indent - 1.
  run walker(node:nextSibling()).
end procedure.
 
Last edited by a moderator:

benji00

New Member
Maybe if I approach in a different way....
Does anyone know where I can svn the original proparse API written in openedge ?
Can't locate on oehive, all are references to .net and java.

I've used the API versions n a previous company with some success.
 

LarryD

Active Member
A simple url shortening goes to here:

http://www.joanju.com/dist/

And at the bottom is the source files manifest, where you could very easily right click/save as in appropriate directories. Would likely take maybe a minute?

Otherwise I'd suggest using google to see if you can find a nicely packaged download you can extract from.
 
Top