Basic scenarios
Since:
Last Modified: $Date: 2007/05/18 13:54:37 $
To setup, goto the CVS preference page and enable watch edit for
all projects checked out from CVS. And then set the prompt option to
always prompt.
- Check out a project from CVS and verify that the files are
marked as read-only.
- Open a file and edit it. You should be prompted to edit it.
Say yes. There should be a brief pause, then you can edit the file.
- Open another file and start editing it. You should be prompted
to edit it. Say no. The file will remain read-only and you won't be
allowed to edit it.
- Open a file and edit it. Say yes to the prompt. commit the
file and edit again. You should be prompted a second time.
- Open a file and edit it. Say yes to the prompt. Replace the
file from the repository and edit again. You should be prompted to edit
again.
- Open a file and edit it. Un-plug your network connection. Say
yes to the prompt to send a notification. There should be a pause, then
the file should be editable.
- Checkout another copy of the project. Edit a file, then try to
edit the same file in the another project copy. You should be notified
that the file is currently being edited by someone else.
Saving files - setup is the same as previous
- Check out a project from CVS and verify that the files are
marked as read-only.
- Open a file and edit it. You should be prompted to edit it.
Say yes. There should be a brief pause, then you can edit the file.
- Edit the file but don't save it.
- Edit the file in a system editor outside of Eclipse, then in
the resource navigator, commit the file. The resource's decorator will
change. Ignore all the prompts about saving the un-saved file.
- Return to the unsaved editor and try typing. You should be
prompted to call validate edit again.
validateEdit fails
- Check out a project from CVS and verify that the files are
marked as read-only.
- Disconnect from network so that the validateEdit would fail.
- Open a file and edit it. You should be prompted to edit it.
Say yes. There should be a pause then the error should be reported in
the editor pane showing the exception that occurred.
Refactoring
- Check out a project from CVS and verify that the files are
marked as read-only.