Community
Participate
Working Groups
While implementing AbstractCharacterPairInserter for script regions in HTML and JSP documents for Bug 276702 I have discovered a need to change the IExitPolicy that is used. The specific case is for the {|} case where the user after entering { then presses enter. With the provided exit policy the cursor then moves to the exit point so the end result is {}| but really the user wanted { | } This can easily be accomplished if the exit policy can be changed by extenders of the AbstractCharacterPairInserter. Suggested patch to follow.
Created attachment 171399 [details] Patch Patch adds a protected getExitPolicy method to AbstractCharacterPairInserter allowing extenders to implement their own exit policy if they so choose.
Patch looks good.
Nitin, could you please review for 3.2.1?
Released to Maintenance and HEAD.