[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-cvs
Subject:    [ jEdit-commits ] SF.net SVN: jedit:[14259]
From:       shlomy () users ! sourceforge ! net
Date:       2008-12-30 21:49:52
Message-ID: E1LHmTI-0007in-Bx () bj8yhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 14259
          http://jedit.svn.sourceforge.net/jedit/?rev=14259&view=rev
Author:   shlomy
Date:     2008-12-30 21:49:52 +0000 (Tue, 30 Dec 2008)

Log Message:
-----------
The dummy base method "createPopupMenu" (overridden by all subclasses of TextArea) \
should only create a new popup menu if one was not set before. Otherwise, the \
"setRightClickPopup" has no effect...

Modified Paths:
--------------
    jEdit/trunk/org/gjt/sp/jedit/textarea/TextArea.java

Modified: jEdit/trunk/org/gjt/sp/jedit/textarea/TextArea.java
===================================================================
--- jEdit/trunk/org/gjt/sp/jedit/textarea/TextArea.java	2008-12-30 21:48:26 UTC (rev \
                14258)
+++ jEdit/trunk/org/gjt/sp/jedit/textarea/TextArea.java	2008-12-30 21:49:52 UTC (rev \
14259) @@ -5939,7 +5939,8 @@
 	 */
 	public void createPopupMenu(MouseEvent evt)
 	{
-		popup = new JPopupMenu();
+		if (popup == null)
+			popup = new JPopupMenu();
 	} //}}}
 
 	//{{{ showPopupMenu() method


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic