Community
Participate
Working Groups
S-3.0M4-20071229165007 If I try to open a catalog file (should there be naming constraints?) created by exporting my user catalog entries into the workspace, the Text Editor complains that it's out of sync with the filesystem.
Yikes, it may not even support projects not directly under the workspace folder.
May need to force a workspace refresh. I'll take a look and see what I can come up with.
Hmm....I tried to duplicate this on linux, with the current org.eclipse.wst.xml.ui plugin and couldn't do it. Here are the steps I followed: 1. Added a file to the Catalog. 2. Launched the Export Wizard by going to File->Export->XML->XML Catalog 3. Selected the Project to export to. 4. Gave it a file name. 5. Hit finish. 6. Navigated to where the file was saved, and opened it with the XML editor. File opened correctly and with out error. I also tried it using the Text Editor and it worked as well. As for if there should be restrictions on the name, I don't think so. As People should be able to name them what they want. Standandard may be .xml, but catalogs don't have to have a .xml extension.
(In reply to comment #1) > Yikes, it may not even support projects not directly under the workspace > folder. > Correct the current export only exports to the current workspaces... It needs to be enhanced to export outside of the workspace. I'll take a look at how the Export Archive works and see if I can come up with some there.
Okay, I was finally able to duplicate this. The odd thing is, that it doesn't happen when you are in development mode and have launched the application from PDE. Hitting F5 on the workspace will force a refresh of the file contents. Also, if the Workspace preference, Refresh Automatically is checked, the problem doesn't exist.
I'm guessing it's related to ICatalog using filesystem locations and not an in-workspace path during export.
Created attachment 112664 [details] Patch Manually synchronize the exported XML Catalog file via a call to iFile.refreshLocal after the file is created in the XML Catalog Wizard.
Amy, please review and commit the fix from Steven.
Comment on attachment 112664 [details] Patch This patch is contributed.
fix looks good. released for wtp 3.1 m3 builds > 200810082210
Verified with S-3.1M4-20081215095735, on OSX and Windows XP.
Closing.