From: <sh...@us...> - 2009-08-02 17:55:09
|
Revision: 15844 http://jedit.svn.sourceforge.net/jedit/?rev=15844&view=rev Author: shlomy Date: 2009-08-02 17:55:03 +0000 (Sun, 02 Aug 2009) Log Message: ----------- Get rid of class cast exceptions. Modified Paths: -------------- plugins/DockingFramesPlugin/trunk/src/dockingFrames/DfWindowManager.java Modified: plugins/DockingFramesPlugin/trunk/src/dockingFrames/DfWindowManager.java =================================================================== --- plugins/DockingFramesPlugin/trunk/src/dockingFrames/DfWindowManager.java 2009-08-02 16:34:24 UTC (rev 15843) +++ plugins/DockingFramesPlugin/trunk/src/dockingFrames/DfWindowManager.java 2009-08-02 17:55:03 UTC (rev 15844) @@ -587,7 +587,12 @@ private JEditDockable getJEditDockable(Dockable d) { if (d instanceof CommonDockable) - return (JEditDockable) (((CommonDockable) d).getDockable()); + { + CommonDockable commonDockable = (CommonDockable) d; + CDockable cDockable = commonDockable.getDockable(); + if (cDockable instanceof JEditDockable) + return (JEditDockable) cDockable; + } return null; } public void dockableAdded(DockStation station, Dockable dockable) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |