Hi All,

I am trying to add "compare with clipboard" functionality in netbeans.
On a high level, this will do the following -
1. either compare clipboard text to opened file
2. or compare clipboard text to selected text in file.

I have got the functionality working in similar way as following tutorial -
http://netbeans.apache.org/wiki/DevFaqEditorHowToAddDiffView.asciidoc

I have now the following questions -
1. Do we already have something similar to *EditableStreamSource*, which we
can reuse?
2. How do I write unit tests for this functionality? At the very least I
need to be able to mock FileObject, Clipboard, EditorRegistry and
DiffController.

Please help me over here.

Thanks and regards,
Rahul Khandelwal

Reply via email to