Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Linking to external resources
Linking to external resources [message #483785] Thu, 03 September 2009 00:50
Amit Mookerjee is currently offline Amit MookerjeeFriend
Messages: 47
Registered: July 2009
I am trying to develop an error parser that can parse the build outputs
and if errors are detected show them up in the problems view.
Doubleclicking on a marker in the problems view typically takes you to the
resource where the problem has been detected. This works quite well for
files which are part of the project. However, our build tools leverage
javascript code that are shipped with the tool itself. In case of an error
we get a javascript stack trace in the build console. However, since the
javascript files are not part of the project itself, I cannot get an
IResource handle.

An example to illustrate the problem

I get the following build output in the console

js: "C:/work/temp2/t_configuration/common.cfg", line 16: xdc.PACKAGE_NOT_FOUND: can't locate the
package 'ti.sysbios' along the path:
'C:/PROGRA~1/TEXASI~1/CCSTUD~4/ipc_1_00_01_48/packages;C:/PR OGRA~1/TEXASI~1/CCSTUD~4/xdais_6_23/packages;C:/PROGRA~1/TEX ASI~1/CCSTUD~4/xdais_6_23/examples;C:/PROGRA~1/TEXASI~1/xdct ools/xdctools_3_16_00_07_eng/packages;..;'.
Ensure that the package path is set correctly.
"./package/cfg/common_x674.cfg", line 781
"./package/cfg/common_x674.cfg", line 736
gmake.exe: *** [package/cfg/common_x674.c] Error 1
js: "C:/Program Files/Texas
Instruments/xdctools/xdctools_3_16_00_07_eng/packages/xdc/to ols/Cmdr.xs ",
line 51: Error: configuration failed due to earlier
errors (status = 2); 'linker.cmd' deleted.

In this case I can get IResource handles to "package/cfg/common_x674.cfg"
and "C:/work/temp2/t_configuration/common.cfg" since they are part of the

The question is how do I create an IResource handle to "C:/Program
Instruments/xdctools/xdctools_3_16_00_07_eng/packages/xdc/to ols/Cmdr.xs "
since it does not exist in the workspace. There is a "createLink" method
of IFile but that does not seem to work either. In summary I would like to
have a problem view marker that points to a resource existing on the
filesystem. When a user doubleclicks on the marker the file should come up
in an editor.

Any guidance on this issue will be appreciated.

Previous Topic:Context menu actions in Common Navigator
Next Topic:Representing toggle state in action bar
Goto Forum:

Current Time: Sun Apr 22 05:21:02 GMT 2018

Powered by FUDForum. Page generated in 0.01825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software