Bug 235711 - Validate and import links don't work if editing external SML-IF document
Summary: Validate and import links don't work if editing external SML-IF document
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: David Whiteman CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-04 16:43 EDT by David Whiteman CLA
Modified: 2012-01-03 13:54 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Whiteman CLA 2008-06-04 16:43:40 EDT
1. File > Open File..., choose an SML-IF file
2. Click on "validate" or "import" links on first page of editor

You see an hourglass for a few seconds, and nothing happens.  This works fine if the SML-IF file is already a workspace file.

I suspect this is a case where we aren't handling a URI file since that is what Eclipse gives the editor.  So we need to tease out the actual file name from that object just like we do in the init() method of the editor.
Comment 1 David Whiteman CLA 2008-06-05 18:22:49 EDT
This has been partially fixed, but needs more work.  The import link works from the editor, but the validator link does not show validation results at the end.  ValidateResourceAction and its parent need to be redesigned because they currently depend on IResource, and this is not usable when the file to be validated is external.  

Also, I am not sure when validating a single SML-IF file why we need a repository just to get the operation; since this is a standalone file, there should not be a dependency on a repository.

I checked in the code that makes this work better, but am leaving it open for another time to fix the validation piece.