Skip to content

Change CodeBrowser Listing Cursor Color Highlight for a Specific Address #7905

Answered by VincentDary
VincentDary asked this question in Q&A
Discussion options

You must be logged in to vote

Found !

It is possible to add a PluginEventListener to the CodeBrowser tool via PluginTool.addListenerForAllPluginEvents(), when the listing cursor location change a ProgramLocationPluginEvent is generated and provide the getLocation() method to retrieve the new location of the cursor, next a call to CodeBrowserPlugin.optionsChanged() ( see previous answer ) allows to set the cursor color according the new location address value.

@dragonmacher, a last question in this feed, using CodeBrowserPlugin.optionsChanged() to change the cursor color is not too dirty ? Maybe a better way exist ?

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@VincentDary
Comment options

Comment options

You must be logged in to vote
1 reply
@VincentDary
Comment options

Answer selected by VincentDary
Comment options

You must be logged in to vote
1 reply
@VincentDary
Comment options

Comment options

You must be logged in to vote
1 reply
@VincentDary
Comment options

Comment options

You must be logged in to vote
1 reply
@VincentDary
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants