Wrong windows handle grabbed for 'Save As' dialog

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
csalsa
Posts: 97
Joined: Tue Apr 22, 2008 9:31 am

Wrong windows handle grabbed for 'Save As' dialog

Post by csalsa » Wed Oct 06, 2010 11:53 am

For OxygenXML running on MS-Windows, consider where the preferences 'Enable automatic save' and 'Format and indent the document on open' has been enabled and where files are opened are read-only.

Upon opening, the read-only, say XML, files, the files are formatted. So far, so good, until OxygenXML automatically save tries to save the file while OxygenXML is in the background. The problem is the 'Save As' dialog pops up 'modal' as well as attaching itself the foreground GUI window instead of the background GUI window of OxygenXML.

The foreground Window is where I am working and the wrong window handle has been grabbed for the 'Save As' dialog. Instead the handle to OxygenXML window should have been used.

Can you please fix this defect.

adrian
Posts: 2679
Joined: Tue May 17, 2005 4:01 pm

Re: Wrong windows handle grabbed for 'Save As' dialog

Post by adrian » Wed Oct 06, 2010 1:56 pm

We are aware of the Open/'Save As' dialogs problem and have it logged to our bug tracking tool. I've increased its priority.

I believe you have also stumbled upon another problem. Read only files shouldn't be attempted to be saved automatically when automatic save is enabled. There's nothing automatic about showing a 'Save As' dialog and waiting for input.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

csalsa
Posts: 97
Joined: Tue Apr 22, 2008 9:31 am

Re: Wrong windows handle grabbed for 'Save As' dialog

Post by csalsa » Thu Oct 07, 2010 12:09 am

Hi Adrian

Thanks for your response. Sounds good. Especially about read-only files should not be attempted to be saved automatically. It could be argued that a read-only XML file that has only been 're-formatted and indented' (OxygenXML option when opening the file) has not really been 'edited'.

We deal with a lot of read-only files as we use a code repository tool and, as expected, it fetches files and puts them on the local hard drive as read-only. We have some 5,100 XML files that we will search across, view, and edit. Almost all are read-only.


As a separate feature, perhaps files that have been changed could have a red color tab. It would be more obvious than the asterisk following the filename on the tab. However, this would not show the state of files that are not visible (too many tabs to draw across the top of the window).

adrian
Posts: 2679
Joined: Tue May 17, 2005 4:01 pm

Re: Wrong windows handle grabbed for 'Save As' dialog

Post by adrian » Fri Oct 08, 2010 2:31 pm

We have fixed the two issues(grabby "Save As" dialog and automatic "Save As" on read-only files) in the current development stream. The bug fixes will be available in the next minor version of Oxygen, v12.1.

Regarding the red color tab for modified files. I'm afraid this is considered too bold of a move and will not be implemented. But we will investigate a way of making the modified file tabs distinctive.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply