PersistAndSplitListUI.diff patch does UI related things for working with custom rules. (I'll look at setting ExampleList's editor read-only when I get some time).
The patch from issue 14 should be applied first
** add splitter for list and editor pieces
** persist size/location/split-divider
** persist knownPattern or customPattern selected
I introduced a package private version of
"setPattern" with a "overrideSettings" argument
** Use JEditorPane (not JTextArea) and do setContentType
ExamplesList uses JEditorPane; FindDuplicatesRefactoringPanel uses
JTextArea. I had to make FindDup... a JEditorPane (to avoid Exception
about needed StyledEditorKit) so I could do setContentType to get some
jVi functionality. In ExamplesList there is
which seems strange to me (out of a bundle). I used
where getMyTextContentType is a static method that could be shared.
BTW, I ended up editting the .form and guarded area to change JTextPane
to JEditorPane because I couldn't figure out how to replace the text
component in the scroll pane without blowing away layout related.