Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to delete "*" from editor's title?
How to delete "*" from editor's title? [message #319058] Fri, 10 August 2007 09:47 Go to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Hi

I have a "save" and a "save as" button to save figures from my editor in a xml file.

When I click "save as" button it saves it and changes the editor's title to the one I gave it. But it puts an asterisc beind it! If I make editor.getTitle() it only gives me the title without the *.

I think is because it was that * that when I close editor, although it is saved, it pops up a message asking if I want to save it...
Do you know how to fix this?
Thanks
Re: How to delete "*" from editor's title? [message #319060 is a reply to message #319058] Fri, 10 August 2007 10:01 Go to previous messageGo to next message
Eclipse UserFriend
The "*" is coming from the presentation. It seems that you Editor/View
is returning true in isDirty().

Tom

Nelia Santos schrieb:
> Hi
>
> I have a "save" and a "save as" button to save figures from my editor in a xml file.
>
> When I click "save as" button it saves it and changes the editor's title to the one I gave it. But it puts an asterisc beind it! If I make editor.getTitle() it only gives me the title without the *.
>
> I think is because it was that * that when I close editor, although it is saved, it pops up a message asking if I want to save it...
> Do you know how to fix this?
> Thanks


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: How to delete "*" from editor's title? [message #319076 is a reply to message #319058] Fri, 10 August 2007 13:13 Go to previous message
Eclipse UserFriend
Don't forget when you change your isDirty() state to fire the PROP_DIRTY
change event.

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
Previous Topic:–Xms1024m -Xmx1024m
Next Topic:Question about checkbox context menu
Goto Forum:
  


Current Time: Tue Jul 15 09:38:54 EDT 2025

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

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

Back to the top