[Jreepad-CVS] jreepad/src/jreepad JreepadView.java,1.40,1.41
Brought to you by:
danstowell
From: PeWu <pe...@us...> - 2007-02-07 20:36:51
|
Update of /cvsroot/jreepad/jreepad/src/jreepad In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv25085/src/jreepad Modified Files: JreepadView.java Log Message: refactoring: Started new ArticleView interface. Moved PlainTextEditor to new interface Index: JreepadView.java =================================================================== RCS file: /cvsroot/jreepad/jreepad/src/jreepad/JreepadView.java,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** JreepadView.java 7 Feb 2007 17:39:16 -0000 1.40 --- JreepadView.java 7 Feb 2007 20:16:20 -0000 1.41 *************** *** 40,44 **** import javax.swing.event.TreeSelectionEvent; import javax.swing.event.TreeSelectionListener; - import javax.swing.text.BadLocationException; import javax.swing.tree.TreePath; --- 40,43 ---- *************** *** 996,1000 **** if(currentNode==null) { ! currentArticleView = editorPanePlainText; return currentArticleView; // This is a bit of a hack - it shouldn't really even be called to act on null } --- 995,999 ---- if(currentNode==null) { ! currentArticleView = editorPanePlainText.getComponent(); return currentArticleView; // This is a bit of a hack - it shouldn't really even be called to act on null } *************** *** 1003,1007 **** { case JreepadArticle.ARTICLEMODE_ORDINARY: ! currentArticleView = editorPanePlainText; break; case JreepadArticle.ARTICLEMODE_HTML: --- 1002,1006 ---- { case JreepadArticle.ARTICLEMODE_ORDINARY: ! currentArticleView = editorPanePlainText.getComponent(); break; case JreepadArticle.ARTICLEMODE_HTML: |