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] Wed, 02 September 2009 20:50
Amit Mookerjee is currently offline Amit Mookerjee
Messages: 47
Registered: July 2009
Member
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.services.global.XDCException: 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: xdc.tools.configuro: 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
project.

The question is how do I create an IResource handle to "C:/Program
Files/Texas
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.

Regards
Amit
Previous Topic:Can I use a command parameter in its handler's enabledWhen?
Next Topic:TreeView updating code doesn't work with Eclipse 3.5
Goto Forum:
  


Current Time: Fri Aug 01 10:05:43 EDT 2014

Powered by FUDForum. Page generated in 0.02271 seconds