Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Prompt to Save Editor prior to Rename in View(Prompt to Save Editor prior to Rename in View)
Prompt to Save Editor prior to Rename in View [message #514624] Mon, 15 February 2010 23:48 Go to next message
Eclipse UserFriend
I have a view and an editor. When I make a change to the editor, it is marked as dirty (e.g., there is an "*" in the title bar), yet when I try to Rename its associated resource in the view, it does not prompt me to Save changes if the editor is dirty. When performing a Rename in the View, how can I get the View to first prompt me to save changes if its associated editor is dirty?
Re: Prompt to Save Editor prior to Rename in View [message #514635 is a reply to message #514624] Tue, 16 February 2010 02:53 Go to previous messageGo to next message
Eclipse UserFriend
Melanie wrote:
> I have a view and an editor. When I make a change to the editor, it
> is marked as dirty (e.g., there is an "*" in the title bar), yet when
> I try to Rename its associated resource in the view, it does not
> prompt me to Save changes if the editor is dirty. When performing a
> Rename in the View, how can I get the View to first prompt me to save
> changes if its associated editor is dirty?
What element do you rename?

Dani
Re: Prompt to Save Editor prior to Rename in View [message #514736 is a reply to message #514635] Tue, 16 February 2010 09:08 Go to previous messageGo to next message
Eclipse UserFriend
I'm renaming the name of the resource in the view, using the built-in Rename functionality. The Rename should fail because its corresponding editor is dirty (there is a "*" indicating that is the case, and if I close the editor, it does prompt me to save changes), yet, the Rename from the proceeds. The view does not seem to recognize the fact that the resource is dirty.
Re: Prompt to Save Editor prior to Rename in View [message #514740 is a reply to message #514736] Tue, 16 February 2010 04:14 Go to previous messageGo to next message
Eclipse UserFriend
Melanie wrote:
> I'm renaming the name of the resource in the view, using the built-in
> Rename functionality. The Rename should fail because its
> corresponding editor is dirty (there is a "*" indicating that is the
> case, and if I close the editor, it does prompt me to save changes),
> yet, the Rename from the proceeds. The view does not seem to
> recognize the fact that the resource is dirty.
This works fine for me. What editor are you talking about?

Dani
Re: Prompt to Save Editor prior to Rename in View [message #514774 is a reply to message #514740] Tue, 16 February 2010 10:36 Go to previous message
Eclipse UserFriend
If I try the rename in the Project Explorer in the Eclipse development environment, it works properly. However, I have a custom view and a custom editor that work off of the same resource. I make a change to a field in the custom editor and it is marked as dirty, yet when I go to perform a rename of the resource in the project explorer, it doesn't recognize it as dirty and proceeds with the rename.
Previous Topic:Problems with Extending Ant Build Run with Ant tasks extensions
Next Topic:Best way to add drop support
Goto Forum:
  


Current Time: Wed Jul 23 19:15:45 EDT 2025

Powered by FUDForum. Page generated in 0.03538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top