Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 168475 - [context] interest is not captured for XML edit when done with WTP editor and Spring IDE
Summary: [context] interest is not captured for XML edit when done with WTP editor and...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 1.0   Edit
Hardware: All Linux-GTK
: P1 normal with 3 votes (vote)
Target Milestone: 3.2   Edit
Assignee: Shawn Minto CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 183106 251545 264593 265280 271117 271353 (view as bug list)
Depends on:
Blocks: 213661
  Show dependency tree
 
Reported: 2006-12-18 17:48 EST by Jimisola Laursen CLA
Modified: 2011-06-23 18:45 EDT (History)
11 users (show)

See Also:


Attachments
screen shoot showing the bug/problem (188.45 KB, image/jpeg)
2006-12-18 17:58 EST, Jimisola Laursen CLA
no flags Details
Test project (1.98 KB, application/zip)
2008-05-26 10:34 EDT, Dan Berindei CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jimisola Laursen CLA 2006-12-18 17:48:48 EST
Build ID: M20060629-1905

Steps To Reproduce:
1. Activate Mylar in Package Explorer
2. Open a resource file (this on is not under the src folder, but a resource folder - using Maven Std Directory Structure)
3. Edit the resource file
4. Notice that the Package Explorer is not updated to show the xml file
Comment 1 Jimisola Laursen CLA 2006-12-18 17:58:37 EST
Created attachment 55877 [details]
screen shoot showing the bug/problem

screen shoot showing the bug/problem
Comment 2 Mik Kersten CLA 2006-12-21 12:50:05 EST
I can not reproduce with the default XML editor in the Eclipse SDK, so please try this to figure out if the problem is the particular XML editor (btw, which editor is it?):
* Deactivate task
* Open the XML file with the "Text Editor"
* Activate a new task
* Do the Ctrl+Shift+R way of opening and see if it shows up.
Comment 3 Jimisola Laursen CLA 2006-12-26 17:10:44 EST
Mik,

I believe I'm using the standard XML Editor that comes with Eclipse SDK (Open With context menu only says "XML Editor").

I tried the steps with Text Editor, the file opened up in the text editor when the task was active but it was not added to the task context.

Where do you want me to go next? I really hope that this is a bug, so that I'm not taking your time...
Comment 4 Eugene Kuleshov CLA 2006-12-26 21:47:05 EST
There is no XML editor in Eclipse SDK. You must be using something else, like XML editor from the WTP.
Comment 5 Jimisola Laursen CLA 2006-12-27 04:27:28 EST
Eugene, that is correct. I use the XML editor that comes with WTP.
Comment 6 Mik Kersten CLA 2007-02-16 21:11:09 EST
Jimisola: just fyi, it's not likely that we can look at WTP-specific integration problems until after Eclipse 3.3M6 and the corresponding WTP release go out.  But if you're interested in looking into this we could take a patch.
Comment 7 Mik Kersten CLA 2007-06-26 20:52:57 EDT
Will investigate further post 2.0.
Comment 8 Mik Kersten CLA 2007-07-23 13:46:03 EDT
I cannot reproduce this with Mylyn 2.0 and the Europa version of the WTP XML editor.  I don't have all of WTP installed but I am using the XML editor.  Please reopen if this is still happening with the latest.
Comment 9 Dan Berindei CLA 2008-05-26 10:34:29 EDT
Created attachment 101984 [details]
Test project

I have managed to reproduce the issue with the Ganymede M7 packages and Spring IDE installed (2.0.4.v20080311444).

These steps work for me:
1. Create a new workspace
2. Import the project in the workspace
3. Switch to Java perspective
4. Create a new local task
5. Open the spring.xml file with Ctrl+Shift+R
6. Notice how the file doesn't appear in the Package Explorer view
Comment 10 Dan Berindei CLA 2008-05-26 10:53:26 EDT
One small correction: step 4 should be "4. Create a new local task and activate it".

I also tested with Spring IDE 2.0.5.v200805121800 and I can still reproduce it.

I should mention that the file appears in the package explorer unless it is listed in Project properties -> Spring -> Beans support.
Comment 11 Mik Kersten CLA 2008-05-27 11:45:55 EDT
Reopening to investigate.
Comment 12 Mik Kersten CLA 2008-06-13 21:57:36 EDT
I can't reproduce this with the Mylyn 3.0 RCs.  Are you using the Spring IDE Mylyn integration?
Comment 13 Dan Berindei CLA 2008-06-16 03:29:22 EDT
Yes, I am using the Spring IDE Mylyn integration.
Comment 14 Mik Kersten CLA 2008-06-18 19:03:16 EDT
Steffen: please investigate.
Comment 15 Mik Kersten CLA 2008-06-23 16:22:16 EDT
It looks like the underlying problem here is that the element becomes interesting in one model (i.e., the Spring structure model) so it fails to become interesting in another model (i.e., the resource model).  This is another manifestation of bug 213661.  Note that with an empty context, you should be able to Alt+click to the spring.xml file in the Package Explorer and have it appear that way.  In other words, which ever model you select it first in, it will be stuck using.  I'll investigate either handling adaptation to resources better, or supporting multiple models in this way, for 3.0.1, or if it's too big a change for 3.1.  Marking as P2 since this is pretty confusing.
Comment 16 Steffen Pingel CLA 2009-03-02 15:39:00 EST
*** Bug 265280 has been marked as a duplicate of this bug. ***
Comment 17 Steffen Pingel CLA 2009-04-06 05:06:32 EDT
*** Bug 271117 has been marked as a duplicate of this bug. ***
Comment 18 Steffen Pingel CLA 2009-04-08 19:33:02 EDT
*** Bug 271353 has been marked as a duplicate of this bug. ***
Comment 19 Eugene Kuleshov CLA 2009-04-09 00:41:50 EDT
This issue been reported two years ago and has 3 duplicates. Is there are plans to fix this very distracting issue?
Comment 20 Steffen Pingel CLA 2009-04-09 11:57:25 EDT
We'll take a pass through milestone planning this week and take the number of votes and duplicates into account when prioritizing.
Comment 21 Chris Beams CLA 2009-04-22 16:18:30 EDT
(In reply to comment #20)
> We'll take a pass through milestone planning this week and take the number of
> votes and duplicates into account when prioritizing.
> 

Steffen, all: I'm very glad to hear this is getting looked at once again.  I encounter this problem frequently and it is quite a distraction.  Let me know if there's any info I can contribute to help resolution.
Comment 22 Steffen Pingel CLA 2009-04-22 16:46:08 EDT
Thanks Chris. Shawn was just recently promoted to committer status and is planning to take a closer look at this problem as part of the current release cycle.
Comment 23 Chris Beams CLA 2009-04-22 16:52:54 EDT
(In reply to comment #22)
> Thanks Chris. Shawn was just recently promoted to committer status and is
> planning to take a closer look at this problem as part of the current release
> cycle.
> 

Nice. Here's another repro detail (not sure if anyone has mentioned it yet in the thread above):

Environment: STS 2.0.1 with latest Mylyn weekly updates.

Scenario one:

1. create a spring config file in an existing project
2. register that file as a spring bean definition.
3. activate a task context
4. ctrl-shift-r to open the new spring config file
5. notice that the file opens in the editor, but does not show up in the package explorer (i.e.: is not part of the active mylyn context)

Scenario two:

1. Repeat steps 1-3 above
2. Navigate to the new spring config file using the package explorer
3. Double-click on the spring config file to open it.
4. Notice that the file opens in the editor as expected, and *is* added to the mylyn context appropriately (i.e.: shows up in the package explorer, etc.)

HTH,

- Chris
Comment 24 Shawn Minto CLA 2009-05-21 12:32:49 EDT
The current release that is available from the weekly site includes the fix for this problem.  Please try it out and let us know if there are any problems.
Comment 25 Shawn Minto CLA 2009-05-27 14:00:09 EDT
Marking this resolved.  Please re-open this bug if you still have problems after installing the latest weekly build of Mylyn.
Comment 26 Eugene Kuleshov CLA 2009-05-27 14:32:58 EDT
There is a problem with a popup. Submission may take some time and I often switch to some other editor and start typing something, so any popup that jump out would break my typing.

I wonder if it is better to show info in the editor title area, maybe a link for opening info dialog or a tooltip.
Comment 27 Shawn Minto CLA 2009-05-27 14:38:47 EDT
(In reply to comment #26)
> There is a problem with a popup. Submission may take some time and I often
> switch to some other editor and start typing something, so any popup that jump
> out would break my typing.
> 
> I wonder if it is better to show info in the editor title area, maybe a link for
> opening info dialog or a tooltip.
Eugene, what popup are you talking about or was this comment intended for another bug?
Comment 28 Eugene Kuleshov CLA 2009-05-27 15:00:26 EDT
(In reply to comment #27)
> Eugene, what popup are you talking about or was this comment intended for
> another bug?

Sorry about this, the comment was for another bug indeed. 

Comment 29 Steffen Pingel CLA 2009-08-12 23:54:08 EDT
*** Bug 251545 has been marked as a duplicate of this bug. ***
Comment 30 Steffen Pingel CLA 2009-08-13 00:55:26 EDT
*** Bug 183106 has been marked as a duplicate of this bug. ***
Comment 31 Steffen Pingel CLA 2009-11-05 09:18:45 EST
*** Bug 264593 has been marked as a duplicate of this bug. ***
Comment 32 Eugene Kuleshov CLA 2011-06-23 15:39:41 EDT
Reopening as requested. I still seeing spring context files disappearing from the Package Explorer view even when they are marked as landmark.
Comment 33 Steffen Pingel CLA 2011-06-23 18:45:40 EDT
Since this is now almost two year old and significant changes have been made, please open a new bug to describe the problem you are experiencing and provide steps to reproduce. It helps us track changes made for a particular release. Thanks and sorry for the inconvenience.