Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problems updating editor title
Problems updating editor title [message #436242] Sat, 03 September 2005 17:32 Go to next message
Martín Pérez Mariñán is currently offline Martín Pérez MariñánFriend
Messages: 62
Registered: July 2009
Member
As Cristofer in the previous post, I'm also having problems with editors
and titles.

I have a custom editor, and I want that when a change is performed the
dirty * symbol to appear.

So I have a getPartName() method that returns the title or "*"+title
depending on the editor's model state. When a change is done, I call
dirtyStateChangedMethod. The editor is marked dirty successfully, because
when the user want to close it, he is asked to save the changes.

But the problem is that the title does not change! I have debugged all the
code, and it seems that all is fine. Even calls to setPartName method at
EditorPart class are ok. So I'm very confused about this topic. Maybe I'm
missing something.

Thanks for your time.

Martin
Re: Problems updating editor title [message #436269 is a reply to message #436242] Mon, 05 September 2005 00:15 Go to previous message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
for dirty editor * symbol , you have to override isDirty method and call
firePropertyChange(PROP_DIRTY) when dirty property change

Peco
martin wrote:

> As Cristofer in the previous post, I'm also having problems with editors
> and titles.
>
> I have a custom editor, and I want that when a change is performed the
> dirty * symbol to appear.
>
> So I have a getPartName() method that returns the title or "*"+title
> depending on the editor's model state. When a change is done, I call
> dirtyStateChangedMethod. The editor is marked dirty successfully, because
> when the user want to close it, he is asked to save the changes.
>
> But the problem is that the title does not change! I have debugged all the
> code, and it seems that all is fine. Even calls to setPartName method at
> EditorPart class are ok. So I'm very confused about this topic. Maybe I'm
> missing something.
>
> Thanks for your time.
>
> Martin
Previous Topic:Initiating a Move View Action
Next Topic:Short cut key is not working in resource navigator view
Goto Forum:
  


Current Time: Thu Dec 05 17:29:35 GMT 2024

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

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

Back to the top