Custom filename validation after copy paste into same directory [message #1249998] |
Tue, 18 February 2014 21:18 |
|
In my RCP certain file names have to conform to defined rules. With the refectoring environment and an RenameParticipant I was able to correctly handle this situation for file renames in a CNF based view.
However my problem now is that if I peform copy paste in this CNF view and I paste into the same directory (i.e. file name exists there already) I'm prompted with a different rename dialog with the clasical "copy of filename" already filled in.
SO I thought may be the CopyParticipant could solve this now, but that was not the case. Also stepping throught he code of the dialog and sourounding classes did not give my an hint how I could plugin some filename validation code.
My question now is is there an option for adding some fileanme validation code?
Is there also an option for defining what the default new filename should be (i.e., instead of "copy of filename")?
Thanks in advance,
Alois
|
|
|
|
Powered by
FUDForum. Page generated in 0.02308 seconds