Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 285714 - [context] SQL files drop out of the context if they are not opened in the editor
Summary: [context] SQL files drop out of the context if they are not opened in the editor
Status: RESOLVED DUPLICATE of bug 268434
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-05 10:49 EDT by Alexander Winter CLA
Modified: 2009-08-06 11:47 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Winter CLA 2009-08-05 10:49:44 EDT
Build ID: M20080221-1800

Steps To Reproduce:
1. Create an SQL file within a task context
2. Right-click the file and execute it (optionally mark it as landmark)
3. Work on some different files - the SQL file should vanish after severla clicks from the context.

More information:
I found that Mylyn removes files from the context if they are not opened in an editor. This makes handling more difficult (in my case, it was an SQL file I had to execute regularly while working on a task - I had to Alt-Click the navigator to make the file visible again and then could choose "Execute" from the context menu). Even marking the element as a landmark doesn't seem to help (I see the element in bold after making it visible, but its still taken out again).
Comment 1 Steffen Pingel CLA 2009-08-05 14:22:41 EDT
Shawn, do you have any thoughts?
Comment 2 Shawn Minto CLA 2009-08-05 19:09:41 EDT
Interest should be tracked the same between all file types and opening a file or selecting it in a navigation view should be the same (or very similar) operations.  Alexander, can you try to reproduce this with a different file as the landmark that you add (i.e. a java file)?  Does the execution of the sql file generate files within a project that are added to your context?  
Comment 3 Alexander Winter CLA 2009-08-06 08:09:12 EDT
(In reply to comment #2)
> Interest should be tracked the same between all file types and opening a file
> or selecting it in a navigation view should be the same (or very similar)
> operations.  Alexander, can you try to reproduce this with a different file as
> the landmark that you add (i.e. a java file)?  Does the execution of the sql
> file generate files within a project that are added to your context?  
> 

Shawn, I will try to reproduce it with other files. So far, the SQL files do not get any visible result in the working space, as I use them only to update a database. 

Comment 4 Alexander Winter CLA 2009-08-06 09:34:34 EDT
So far I am not sure what is the cause for this behaviour, but executing an AspectJ application worked, whereas opening an Excel Sheet removed the element from the navigator view as soon as I clicked into the Java editor (the element was still shown in bold after marking it as a landmark and making it visible again).
Comment 5 Steffen Pingel CLA 2009-08-06 11:25:42 EDT
Which version of Mylyn are you using Alexander?
Comment 6 Alexander Winter CLA 2009-08-06 11:29:59 EDT
(In reply to comment #5)
> Which version of Mylyn are you using Alexander?
> 

Steffen, I use 2.3.0. Isn't that the purpose of the version field above? ;-) If it is fixed in a later version, let me know (so far, I could not find any update for my Eclipse version, which still is 3.3.2, so I may have to switch to 3.4/3.5 then).
Comment 7 Steffen Pingel CLA 2009-08-06 11:47:43 EDT
Thanks. I wasn't sure if the version field was set correctly since 2.3 is fairly old. Would you be able to update to the latest 3.2.0 release which supports Eclipse 3.3 and retry your steps with a fresh context (use clear context or create a new task)? 

Please reopen this bug if the error persists with the latest version.

*** This bug has been marked as a duplicate of bug 268434 ***