From: <sh...@us...> - 2009-12-22 20:33:45
|
Revision: 16705 http://jedit.svn.sourceforge.net/jedit/?rev=16705&view=rev Author: shlomy Date: 2009-12-22 20:33:38 +0000 (Tue, 22 Dec 2009) Log Message: ----------- Fixed an issue in the transformation to the new annotated edit bus message handlers. Modified Paths: -------------- plugins/SideKick/trunk/sidekick/SideKick.java plugins/SideKick/trunk/sidekick/enhanced/SourceTree.java Modified: plugins/SideKick/trunk/sidekick/SideKick.java =================================================================== --- plugins/SideKick/trunk/sidekick/SideKick.java 2009-12-22 20:13:54 UTC (rev 16704) +++ plugins/SideKick/trunk/sidekick/SideKick.java 2009-12-22 20:33:38 UTC (rev 16705) @@ -57,7 +57,7 @@ * It happens to be sidekick.enhanced.SourceTree. * */ -class SideKick +public class SideKick { //{{{ static members public static final String BUFFER_CHANGE = "sidekick.buffer-change-parse"; Modified: plugins/SideKick/trunk/sidekick/enhanced/SourceTree.java =================================================================== --- plugins/SideKick/trunk/sidekick/enhanced/SourceTree.java 2009-12-22 20:13:54 UTC (rev 16704) +++ plugins/SideKick/trunk/sidekick/enhanced/SourceTree.java 2009-12-22 20:33:38 UTC (rev 16705) @@ -43,11 +43,11 @@ import javax.swing.tree.TreeNode; import javax.swing.tree.TreePath; -import org.gjt.sp.jedit.EBMessage; import org.gjt.sp.jedit.GUIUtilities; import org.gjt.sp.jedit.Mode; import org.gjt.sp.jedit.View; import org.gjt.sp.jedit.jEdit; +import org.gjt.sp.jedit.EditBus.EBHandler; import org.gjt.sp.jedit.gui.DockableWindowFactory; import org.gjt.sp.jedit.gui.KeyEventTranslator; import org.gjt.sp.jedit.msg.BufferUpdate; @@ -142,15 +142,12 @@ return _showMarkers; } //}}} - public void handleMessage( EBMessage msg ) { - //{{{ handleMessage() method + @EBHandler + public void handleBufferUpdate( BufferUpdate upd ) { + //{{{ handleBufferUpdate() method // react to marker changes immediately - super.handleMessage( msg ); - if ( msg instanceof BufferUpdate ) { - BufferUpdate upd = ( BufferUpdate ) msg; - if ( upd.getWhat() == BufferUpdate.MARKERS_CHANGED ) - update(); - } + if ( upd.getWhat() == BufferUpdate.MARKERS_CHANGED ) + update(); } //}}} public void handleKey( KeyEvent evt ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |