Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-core-dev] querstion about IWorkbench::validateEdit


The behaviour in the default case is that all of the files are located on the local filesystem and there is no pre-processing (checkout, etc) of the files necessary, so its ok to go ahead and try and set their contents.

Otherwise, the hook exists for the Team provider to perform any necessary operations before setting the file(s) contents.

Does that clarify things?

                        dj



"Adam Kiezun" <adam.kiezun@xxxxxxx>
Sent by: platform-core-dev-admin@xxxxxxxxxxx

01/29/02 06:56 AM
Please respond to platform-core-dev

       
        To:        <platform-core-dev@xxxxxxxxxxx>
        cc:        
        Subject:        [platform-core-dev] querstion about IWorkbench::validateEdit


hi,
i have a read-only IFile - i'd like to check if it's possible to edit/save
it.
i called IWorkbench::validateEdit
but it returns an OK status - contrary to what i expected (i have no vcm
plugin running).
i expected it to return an error status by default and an OK status only
on vcm systems like ClearCase.

the doc says that "the caller can safely assume that all of the given files
haven been prepared
* for modification and that there is good reason to believe that
<code>IFile.setContents</code>

* (or <code>appendContents</code>) would be successful on any of them

".

this is not what i see, however.

i'm sure i misunderstand something.
thanks
a.

_______________________________________________
platform-core-dev mailing list
platform-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-core-dev



Back to the top