Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321255

Summary: [TS Explorer] Link with editor button doesn't work properly
Product: [Technology] Tigerstripe Reporter: Navid Mehregani <nmehrega>
Component: UIAssignee: Yuri Strot <yuri>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: erdillon
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Navid Mehregani CLA 2010-07-29 13:50:36 EDT
Build Identifier: 

If user opens a file by double clicking on it in Problems view and turns on Link with Editor, the file is not properly selected in TS Explorer as it should be.

Reproducible: Always

Steps to Reproduce:
1. Create a new TS Project with an Entity artifact
2. Open Entity editor and type in an invalid name under 'Extends' field. 
3. Save the file.  There should be an error displayed for the Entity file.
4. Collapse everything in TS Explorer and close all editors
5. Open Problems view > Double click on error > this should open the problematic Entity file 
6. With everything collapsed in TS Explorer, turn on 'Link with editor'.  Notice that the file is not selected in TS Explorer.
Comment 1 Yuri Strot CLA 2010-08-27 11:15:31 EDT
This issue fixed now.
Comment 2 Navid Mehregani CLA 2010-08-27 13:30:30 EDT
Hi Yuri,

This still doesn't seem to be working for diagram files.  It works really well for artifact files, but doesn't work for class and instance diagram files.
Comment 3 Yuri Strot CLA 2010-08-30 10:13:28 EDT
Hi Navid,

You are right. Diagrams wrapped with some special AbstractLogicalExplorerNode in the navigator and require additional support. Now this issue should be fixed.
Comment 4 Navid Mehregani CLA 2010-08-30 11:46:24 EDT
(In reply to comment #3)
> Hi Navid,
> 
> You are right. Diagrams wrapped with some special AbstractLogicalExplorerNode
> in the navigator and require additional support. Now this issue should be
> fixed.

This is still not working as expected.  Try the following:

- Create two separate TS Projects
- Create diagram files under both projects
- Open both diagram files in the editor
- Collapse everything in TS Explorer
- Turn on Link-with-editor and select the first diagram file.  The correct file is selected in TS Explorer.  
- Now select the second diagram file.  Notice that the file is not selected in TS Explorer.
Comment 5 Yuri Strot CLA 2010-09-01 09:54:55 EDT
Hi Navid,

Thank you for detailed instruction. Now it should work properly.
Comment 6 Navid Mehregani CLA 2010-09-01 10:49:23 EDT
(In reply to comment #5)
> Hi Navid,
> 
> Thank you for detailed instruction. Now it should work properly.

Thanks Yuri! It now works great!  Marking as verified.