Jump to content
sakura

Open Tools API - Mark Module as not Modified

Recommended Posts

Hi,

 

I have a IDE plug-in which acts upon an opened file in the IDE (IOTAIDENotifier.FileNotification - aNotifyCode = ofnFileOpened).

It loads the corresponding IOTAModule and the IOTAEditorContent for the PAS-File

Before displaying, I want to do some formating for the viewer and set the content through the IOTAEditorContent interface.

 

Nicely, as I do not call MarkModified, the editor view acts like the content has not been modified. However, the IOTAModule believes that the module has been modified and asks, whether the changes shall be saved (which I do not desire, when just viewing).

 

Is there a way, to inform the IDE, that at this point, no changes have occurred. The question to save changes should not appear, when the user did not actually change anything 😉

 

Thanks,
Daniel

Edited by sakura

Share this post


Link to post

Have you tried IOTAEditorContent.ResetDiskAge after setting the content?

Edited by Uwe Raabe

Share this post


Link to post

Yes, no change, the IOTAEditorContent object itself is not even marked as modified, it's the module, which is "knowing" that something has happened. 😐

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×