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

List:       jedit-cvs
Subject:    [ jEdit-CVS ] plugins/XSearch/xsearch XSearchPanel.java,1.27,1.28
From:       Alan Ezust <ezust () users ! sourceforge ! net>
Date:       2006-06-30 21:22:38
Message-ID: E1FwQRj-0004vf-AM () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/jedit/plugins/XSearch/xsearch
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv7276/xsearch

Modified Files:
	XSearchPanel.java 
Log Message:
Same fix with XSearch...



Index: XSearchPanel.java
===================================================================
RCS file: /cvsroot/jedit/plugins/XSearch/xsearch/XSearchPanel.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- XSearchPanel.java	30 Jun 2006 18:32:41 -0000	1.27
+++ XSearchPanel.java	30 Jun 2006 21:22:36 -0000	1.28
@@ -481,19 +481,27 @@
 		revalidatePanels();
 	} // }}}
 
-	/**
-	 * Also sets the parent frame if it's a floating dockwindow
-	 */
+
 	public void setVisible(boolean isVisible)
 	{
-		JFrame frame = getFrame();
-		if (frame != null)
-		{
-			frame.setVisible(isVisible);
-			if (isVisible)
-				frame.pack();
+		DockableWindowManager dwm = jEdit.getActiveView().getDockableWindowManager();
+		if (dwm == null) {
+			JFrame frame = getFrame();
+			if (frame != null)
+			{
+				frame.setVisible(isVisible);
+				if (isVisible)
+					frame.pack();
+			}
+			super.setVisible(isVisible);
+		}
+		else {
+			if (isVisible) {
+				dwm.getDockable("xsearch-dockable");
+				dwm.showDockableWindow("xsearch-dockable");
+			}
+			else dwm.hideDockableWindow("xsearch-dockable");
 		}
-		super.setVisible(isVisible);
 	}
 
 	// {{{ ok() method


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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