From: SourceForge.net <no...@so...> - 2008-09-06 10:04:17
|
Patches item #2096752, was opened at 2008-09-06 15:32 Message generated for change (Comment added) made by kdmurthy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300588&aid=2096752&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Dakshinamurthy Karra (kdmurthy) Assigned to: Nobody/Anonymous (nobody) Summary: Embeddable text area Initial Comment: The attached patch fixes some bugs and makes it easier to embed a text area into an application. I tried to follow the same conventions as the other sources. I hope I did a decent job ;-). I also tried to avoid breaking public API from the classes - except in the obvious cases. Note that the patch for build.xml is being added another tracker item, since SF does not allow attaching multiple files and eclipse does not allow creating a patch using a dir & file. Detailed changes are as follows: 1. actions.xml Changed call to Registers.getRegisterStatusPrompt to jEdit.getRegisterStatusPrompt 2. JEditBuffer.java added a setUndoLimit() method. 3. jEdit.java changed createTextArea() to use the new constructor from text area added getRegisterStatusPrompt() method used from actions.xml 4. Registers.java moved getRegisterStatusPrompt() to jEdit 5. ModelProvider.java loadMode() changed to get the contents from resource if looking for a file fails. This is done so that the standalone jedit-textarea.jar can be used as it is. 6. JEditTextArea.java pulled-up popup related functions to TextArea 7. Added StandaloneTextArea.java - a subclass of TextArea 8. textarea.actions.xml Cleaned up. Removed jEditpane calls and calls specific to JEditTextArea (like showLineNumberDialog). 9. TextArea.java Removed the constructor that accepts insideJEdit parameter Created initInputHandler() to initialize the input handler from outside. (used in JEdit#createTextArea) Added popup menu code from JEditTextArea (pulled up) Moved main() function to StandaloneTextArea 10. TextAreaMouseHandler.java Added the code to call handlePopupTrigger 11. TextAreaPainer.java Removed the call to textArea.propertiesChanged in setFont(). 12. JEditBuffer 13. build.xml Added modes/*.xml, Registers.java, HistoryModel.java, HistoryModelSaver.java to textarea/src Changed Main-Class to StandaloneTextArea ---------------------------------------------------------------------- >Comment By: Dakshinamurthy Karra (kdmurthy) Date: 2008-09-06 15:34 Message: Logged In: YES user_id=156777 Originator: YES File Added: patch-build.txt ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300588&aid=2096752&group_id=588 |