| Summary: | SapphireDiagramEditor does not work on non-workspace files | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Greg Amerson <gregory.amerson> |
| Component: | Sapphire | Assignee: | Shenxue Zhou <shenxue.zhou> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | konstantin |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Greg Amerson
Please take a look. The diagram editor should work with any editor input (whether in workspace or not). I am guessing that we need to devise a strategy for storing the geometry information for files outside of projects. I also have a scenario in my product where I want to be able to open an editor on a input that the contents are loaded from a URL connection, so the editor input is not store on any file whatsoever, whether in workspace or outside. In my case I could actually see a need to serialize geometry information in the XML content itself, so it would be great if the diagram editor had API for letting adopters provider and store geometry information inside the "editor file" instead of outside, but I guess this should be a separate bug? (In reply to comment #2) > I also have a scenario in my product where I want to be able to open an editor > on a input that the contents are loaded from a URL connection, so the editor > input is not store on any file whatsoever, whether in workspace or outside. > In my case I could actually see a need to serialize geometry information in the > XML content itself, so it would be great if the diagram editor had API for > letting adopters provider and store geometry information inside the "editor > file" instead of outside, but I guess this should be a separate bug? Diagram page def has a property "SideBySideLayoutStorage" which I interpreted as putting the layout file at the same directory as the editor xml file. Now I think about it, it should be interpreted as saving the diagram geometry info in the same editor content xml file. Could you open a new bug for that? Thanks! Now the diagram editor should be able to handle external files. See the updated MapEditor.java, where the diagram editor input is created by using a new API on SapphireDiagramEditorFactory: public static SapphireDiagramEditorInput createEditorInput(IEditorInput input) Thanks, I'll test this out today. FYI, I entered bug 371558 for the storing geometry in same XML as the source. FYI, I've added bug 371576 to track that enhancement to allow non-local files to be opened. Also I can verify that this now works with local files that are not in the workspace. Closing based on Greg's verification. |